/* ============================================================
   LONG ISLAND DUNGEON MASTER — Site Styles
   Theme: Deep Crimson + Parchment + Gothic Blackletter
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300;1,400&family=Merriweather+Sans:wght@400;700&display=swap');

/* Breathe Fire — licensed display font (commercial single license held by Frank Papaleo) */
@font-face {
  font-family: 'Breathe Fire';
  src: url('fonts/BreatheFire.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ===== VARIABLES ===== */
:root {
  --crimson:      #8B0000;
  --crimson-mid:  #6b0000;
  --crimson-dark: #3d0000;
  --crimson-deep: #1a0000;
  --gold:         #c9a84c;
  --gold-light:   #e8d5a0;
  --parchment:    #f2e8d0;
  --parchment-dk: #dfd0a8;
  --ink:          #1a0a00;
  --muted:        #6b5b45;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Merriweather', Georgia, serif;
  background: var(--crimson-deep);
  color: var(--ink);
  margin: 0;
}

/* ===== TYPOGRAPHY ===== */
.gothic {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  letter-spacing: 1px;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather Sans', sans-serif;
}

/* ===== NAVBAR ===== */
#mainNav {
  background: linear-gradient(180deg, rgba(26,0,0,0.98) 0%, rgba(61,0,0,0.92) 100%);
  border-bottom: 2px solid var(--gold);
  transition: padding 0.3s ease;
}

#mainNav.navbar-shrink {
  padding-top: 0.4rem !important;
  padding-bottom: 0.4rem !important;
  box-shadow: 0 3px 15px rgba(0,0,0,0.7);
}

#mainNav .navbar-brand {
  color: var(--gold) !important;
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  font-size: 1.4rem;
  letter-spacing: 1px;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

#mainNav .nav-link {
  color: var(--gold-light) !important;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.8rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: color 0.2s;
}

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

#mainNav .btn-book {
  background: var(--crimson);
  border: 1px solid var(--gold);
  color: var(--gold-light) !important;
  font-size: 0.75rem;
  padding: 0.35rem 1rem;
  border-radius: 2px;
  transition: all 0.2s;
}

#mainNav .btn-book:hover {
  background: var(--gold);
  color: var(--crimson-dark) !important;
  border-color: var(--gold);
}

.brand-img {
  height: 38px;
  filter: drop-shadow(0 0 4px rgba(201,168,76,0.5));
}

/* ===== HERO / MASTHEAD ===== */
.masthead {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background:
    linear-gradient(
      to bottom,
      rgba(26,0,0,0.72) 0%,
      rgba(61,0,0,0.60) 50%,
      rgba(26,0,0,0.85) 100%
    ),
    url('img/bg-masthead.jpg') center center / cover no-repeat;
  /* Fallback when image is absent */
  background-color: var(--crimson-dark);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 2rem;
}

.hero-crest {
  width: 120px;
  height: auto;
  filter: drop-shadow(0 0 12px rgba(201,168,76,0.6));
  margin-bottom: 1.5rem;
}

.hero-title {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  font-size: clamp(2.8rem, 8vw, 6rem);
  color: var(--gold);
  text-shadow:
    2px 2px 0 var(--crimson-dark),
    0 0 30px rgba(201,168,76,0.4);
  line-height: 1.1;
  margin-bottom: 0;
}

.hero-sub-title {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  font-size: clamp(1.2rem, 3vw, 2rem);
  color: var(--gold-light);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
  margin-bottom: 1rem;
}

hr.divider {
  border: none;
  height: 2px;
  width: 5rem;
  margin: 1.25rem auto;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 1;
}

hr.divider-dark {
  border: none;
  height: 2px;
  width: 5rem;
  margin: 1.25rem auto;
  background: linear-gradient(90deg, transparent, var(--crimson), transparent);
  opacity: 1;
}

.hero-tagline {
  color: rgba(255,255,255,0.85);
  font-size: clamp(0.95rem, 2vw, 1.2rem);
  font-weight: 300;
  line-height: 1.8;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.btn-xl {
  padding: 0.85rem 2.2rem;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.9rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.25s;
}

.btn-crimson {
  background: var(--crimson);
  border: 2px solid var(--gold);
  color: var(--gold-light);
}

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

.btn-outline-parchment {
  background: transparent;
  border: 2px solid var(--gold-light);
  color: var(--gold-light);
}

.btn-outline-parchment:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--gold);
  color: var(--gold);
}

/* ===== SCROLL INDICATOR ===== */
.scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold);
  opacity: 0.6;
  animation: bounce 2s infinite;
  font-size: 1.5rem;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ===== ABOUT SECTION ===== */
#about {
  background:
    radial-gradient(ellipse at top, var(--crimson-mid) 0%, var(--crimson-dark) 60%, var(--crimson-deep) 100%);
  padding: 5rem 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

#about h2.section-title {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
  margin-bottom: 0.25rem;
}

.lidm-accordion .accordion-item {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(201,168,76,0.3);
  margin-bottom: 4px;
  border-radius: 0 !important;
}

.vecna-btn {
  background: transparent !important;
  color: var(--gold) !important;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  border: none !important;
  box-shadow: none !important;
  padding: 1rem 1.25rem;
}

.vecna-btn:not(.collapsed) {
  color: var(--gold-light) !important;
}

.vecna-btn::after {
  filter: invert(1) sepia(1) saturate(3) hue-rotate(5deg);
}

.accordion-body {
  background: rgba(0,0,0,0.2);
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.85;
}

.accordion-body strong {
  color: var(--gold-light);
}

.accordion-body a {
  color: var(--gold);
}

.parchment-badge {
  display: inline-block;
  background: var(--parchment);
  color: var(--crimson-dark);
  border: 1px solid var(--gold);
  padding: 0.15rem 0.6rem;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-right: 0.5rem;
  vertical-align: middle;
}

/* ===== MEET THE DM ===== */
#the-dm {
  background: var(--parchment);
  padding: 5rem 0;
  border-top: 3px solid var(--crimson);
  border-bottom: 3px solid var(--crimson);
  position: relative;
}

#the-dm::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(
      0deg, transparent, transparent 28px,
      rgba(139,0,0,0.04) 28px, rgba(139,0,0,0.04) 29px
    );
  pointer-events: none;
}

#the-dm h2 {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  color: var(--crimson-dark);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

#the-dm p {
  color: var(--muted);
}

.dm-picture {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid var(--gold);
  box-shadow:
    0 0 0 6px var(--crimson),
    0 6px 25px rgba(0,0,0,0.4);
}

.dm-stat {
  background: rgba(139,0,0,0.06);
  border: 1px solid rgba(139,0,0,0.2);
  border-radius: 4px;
  padding: 1.5rem 1rem;
  height: 100%;
  transition: transform 0.2s, box-shadow 0.2s;
}

.dm-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(139,0,0,0.15);
}

.dm-stat h3 {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1rem;
  color: var(--crimson-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 0.75rem;
}

.icon {
  width: 56px;
  height: 56px;
  filter: invert(15%) sepia(80%) saturate(600%) hue-rotate(320deg);
}

.icon-sm {
  width: 26px;
  height: 26px;
  vertical-align: middle;
  filter: invert(1);
}

/* ===== CAMPAIGN PORTFOLIO ===== */
#campaigns {
  background: var(--crimson-deep);
}

.campaign-header {
  background:
    linear-gradient(180deg, var(--crimson-dark) 0%, var(--crimson-deep) 100%);
  border-bottom: 2px solid var(--gold);
  padding: 3rem 1rem 2rem;
  text-align: center;
}

.campaign-header h2 {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
  margin-bottom: 0.4rem;
}

.campaign-header p {
  color: rgba(201,168,76,0.65);
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.portfolio-box {
  display: block;
  position: relative;
  overflow: hidden;
}

.portfolio-box img {
  display: block;
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transition: transform 0.45s ease;
  filter: brightness(0.9) saturate(1.1);
}

.portfolio-box:hover img {
  transform: scale(1.08);
  filter: brightness(1) saturate(1.3);
}

.portfolio-caption {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(61,0,0,0.0) 30%,
    rgba(61,0,0,0.92) 100%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 1.2rem;
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.portfolio-box:hover .portfolio-caption {
  opacity: 1;
}

/* ===== GALLERY ===== */
#gallery {
  background: var(--crimson-dark);
  padding: 5rem 0;
  border-top: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

#gallery h2 {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
}

#gallery p a {
  color: var(--gold-light);
}

#gallery p a:hover {
  color: var(--gold);
}

.carousel-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 2px solid rgba(201,168,76,0.3);
  border-radius: 2px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(0.7) sepia(1) saturate(3) hue-rotate(5deg);
  width: 2.5rem;
  height: 2.5rem;
}

/* ===== CONTACT ===== */
#contact {
  background:
    radial-gradient(ellipse at bottom, var(--crimson-mid) 0%, var(--crimson-deep) 100%);
  padding: 5rem 0;
  border-top: 3px solid var(--gold);
}

#contact h2 {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
}

.contact-icon {
  color: var(--gold) !important;
  transition: transform 0.2s;
}

.contact-icon:hover {
  transform: scale(1.1);
}

.contact-label {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-label:hover {
  color: var(--gold);
}

#contact .text-muted {
  color: rgba(255,255,255,0.5) !important;
}

/* ===== FOOTER ===== */
footer {
  background: #000 !important;
  border-top: 1px solid var(--crimson);
}

footer .small {
  color: rgba(201,168,76,0.5);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 1px;
}

/* ===== PARCHMENT CALL-OUT BLOCK ===== */
.parchment-block {
  background: var(--parchment);
  border: 2px solid var(--gold);
  border-radius: 2px;
  padding: 1.5rem 2rem;
  color: var(--ink);
  box-shadow: inset 0 0 30px rgba(139,0,0,0.08);
  font-size: 0.95rem;
  line-height: 1.8;
}

.parchment-block strong {
  color: var(--crimson-dark);
}

/* ===== SHARED SECTION SUBTITLE ===== */
.section-sub {
  color: rgba(255,255,255,0.6);
  font-size: 1rem;
  max-width: 640px;
  margin: 0.5rem auto 0;
}

/* ===== SERVICES ===== */
#services {
  background:
    linear-gradient(180deg, var(--crimson-dark) 0%, var(--crimson-deep) 100%);
  padding: 5rem 0;
  border-top: 3px solid var(--crimson);
  border-bottom: 3px solid var(--gold);
}

#services .section-title {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  color: var(--gold);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
}

.service-card {
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(201,168,76,0.35);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  height: 100%;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: var(--gold);
}

.service-card-feature {
  background: rgba(139,0,0,0.35);
  border-color: var(--gold);
  box-shadow: 0 0 24px rgba(201,168,76,0.15) inset;
}

.service-icon {
  font-size: 2.4rem;
  color: var(--gold);
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.4));
}

.service-card h3 {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1.15rem;
  color: var(--gold-light);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.service-card p {
  color: rgba(255,255,255,0.72);
  font-size: 0.92rem;
  line-height: 1.7;
  flex-grow: 1;
}

.price-pill {
  display: inline-block;
  background: var(--gold);
  color: var(--crimson-dark);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  vertical-align: middle;
}

.service-cta {
  display: inline-block;
  margin-top: 1.25rem;
  color: var(--gold);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.2s, letter-spacing 0.2s;
}

.service-cta:hover {
  color: var(--gold-light);
  letter-spacing: 1px;
}

/* ===== MODERN CATALOG (campaigns) ===== */
.catalog-title {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  color: var(--gold);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  text-shadow: 1px 1px 6px rgba(0,0,0,0.8);
}

.adventure-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  max-width: 980px;
  margin: 0 auto;
}

.adventure-pill {
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(201,168,76,0.3);
  color: rgba(255,255,255,0.82);
  font-size: 0.82rem;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.adventure-pill:hover {
  background: rgba(139,0,0,0.4);
  border-color: var(--gold);
  color: #fff;
}

.adventure-pill-gold {
  background: var(--gold);
  color: var(--crimson-dark);
  border-color: var(--gold);
  font-weight: 700;
}

.adventure-pill-gold:hover {
  background: var(--gold-light);
  color: var(--crimson-dark);
}

/* ===== THE GAME — SKU CRAWLERS ===== */
#the-game {
  background:
    radial-gradient(ellipse at center, #2a0808 0%, #120303 70%, #0a0202 100%);
  padding: 5.5rem 0;
  border-top: 3px solid var(--gold);
  border-bottom: 3px solid var(--gold);
}

.game-eyebrow {
  display: inline-block;
  color: rgba(201,168,76,0.7);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.game-title {
  font-family: 'Breathe Fire', 'UnifrakturMaguntia', cursive;
  color: var(--gold);
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  text-shadow: 2px 2px 0 #000, 0 0 30px rgba(201,168,76,0.4);
  margin-bottom: 0;
  line-height: 1;
}

.game-title sup {
  font-size: 0.3em;
  top: -1.4em;
}

.dev-badge {
  display: inline-block;
  background: rgba(201,168,76,0.15);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0.2rem 0.7rem;
  border-radius: 12px;
  margin-left: 0.4rem;
  white-space: nowrap;
}

.game-copy {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1rem;
}

.game-copy strong { color: var(--gold-light); }

.btn .fa-itch-io, .btn .fa-comment-dots { vertical-align: middle; }

.game-lead {
  font-size: 1.12rem;
  line-height: 1.9;
}

/* Mechanics grid */
.mechanic {
  height: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(201,168,76,0.2);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  padding: 1.4rem 1.4rem;
  transition: background 0.2s, transform 0.2s;
}

.mechanic:hover {
  background: rgba(139,0,0,0.25);
  transform: translateY(-3px);
}

.mechanic i {
  font-size: 1.6rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

.mechanic h4 {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 1.02rem;
  color: var(--gold-light);
  margin-bottom: 0.5rem;
}

.mechanic p {
  color: rgba(255,255,255,0.72);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 0;
}

.mechanic strong { color: var(--gold-light); }

/* Portrait screenshot gallery */
.game-shots {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: center;
}

.game-shot {
  margin: 0;
  width: 190px;
  text-align: center;
}

.game-shot a {
  display: block;
  border: 1px solid rgba(201,168,76,0.4);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(0,0,0,0.4);
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
}

.game-shot img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  object-position: top;
  transition: transform 0.4s ease;
}

.game-shot a:hover img { transform: scale(1.05); }

.game-shot figcaption {
  margin-top: 0.6rem;
  color: var(--gold);
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.trademark-line {
  text-align: center;
  color: rgba(201,168,76,0.45);
  font-size: 0.72rem;
  margin-top: 2.5rem;
  margin-bottom: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  #about, #gallery, #contact, #the-dm, #services, #the-game {
    padding: 3.5rem 0;
  }
  .hero-title {
    font-size: 2.5rem;
  }
  .hero-sub-title {
    font-size: 1.1rem;
  }
  .dev-badge { display: block; width: fit-content; margin: 0.5rem auto 0; }
}
