/*
  Knights of Ventrue website modernization
  Existing website update authored by Virgilio Rodriguez Jr.
  Purpose: Main visual theme for the updated site, including preserved dark/goth branding.
*/

/* Brand tokens: colors, surfaces, shadows, and typography used across the site. */
:root {
  --onyx: #111016;
  --vintage-grape: #563e5e;
  --pale-slate: #b4adb5;
  --vintage-lavender: #9a73a0;
  --soft-linen: #f5f1e6;
  --surface: rgba(17, 16, 22, 0.86);
  --surface-strong: rgba(17, 16, 22, 0.95);
  --surface-muted: rgba(86, 62, 94, 0.36);
  --border-soft: rgba(180, 173, 181, 0.32);
  --shadow-violet: rgba(154, 115, 160, 0.56);
  --font-title: "New Rocker", system-ui;
  --font-subtitle: "Cinzel", Georgia, serif;
  --font-body: "Inter", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

/* Anchor targets need room below the fixed navbar so titles remain visible after nav clicks. */
#house-bloodline,
#goth-links,
#contact,
#about,
#teachings {
  scroll-margin-top: 96px;
}

/* Global page shell and preserved original background treatment. */
body {
  min-height: 100vh;
  margin: 0;
  color: var(--soft-linen);
  font-family: var(--font-body);
  background:
    linear-gradient(180deg, rgba(17, 16, 22, 0.72), rgba(17, 16, 22, 0.66) 42%, rgba(17, 16, 22, 0.9)),
    url("../assets/images/original-full/header-wallpaper-full.jpg") center top / 1024px auto repeat fixed,
    var(--onyx);
}

a {
  color: var(--soft-linen);
}

a:hover,
a:focus {
  color: var(--vintage-lavender);
}

.site-shell {
  min-height: 100vh;
}

/* Fixed Bootstrap navigation customized for the Knights of Ventrue brand. */
.navbar {
  background: rgba(17, 16, 22, 0.92);
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(10px);
}

.navbar-brand {
  color: var(--soft-linen);
  font-family: var(--font-title);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0;
}

.navbar-brand:hover,
.nav-link,
.nav-link:focus {
  color: var(--soft-linen);
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
}

.nav-link.active,
.nav-link:hover {
  color: var(--vintage-lavender);
}

/* Home hero: crest, intro copy, and original looping video/media presentation. */
.hero {
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 5rem;
  background:
    linear-gradient(90deg, rgba(17, 16, 22, 0.82), rgba(17, 16, 22, 0.58) 48%, rgba(17, 16, 22, 0.88)),
    url("../assets/images/original-full/purple-fleur-background-full.jpeg") center center / cover;
  border-bottom: 1px solid var(--border-soft);
}

.hero-grid {
  display: flex;
  justify-content: center;
  text-align: center;
}

.hero-content {
  width: min(100%, 860px);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  color: var(--pale-slate);
  font-family: var(--font-subtitle);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.display-title {
  color: var(--soft-linen);
  font-family: var(--font-title);
  font-size: clamp(4rem, 12vw, 9rem);
  line-height: 0.88;
  margin: 0 0 1rem;
  text-shadow: 0 0 34px rgba(17, 16, 22, 0.85);
}

.hero-subtitle {
  max-width: 710px;
  color: var(--pale-slate);
  font-family: var(--font-subtitle);
  font-size: clamp(1.35rem, 3vw, 2.3rem);
  line-height: 1.25;
}

.hero-copy {
  max-width: 720px;
  color: var(--soft-linen);
  font-size: 1.08rem;
  line-height: 1.8;
  margin-inline: auto;
}

.hero-media-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(1rem, 4vw, 2.5rem);
  margin-top: 1.4rem;
}

.hero-video-frame {
  box-sizing: border-box;
  width: min(100%, 320px);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: radial-gradient(circle at center, rgba(86, 62, 94, 0.4), rgba(0, 0, 0, 0.72) 70%);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.hero-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.hero-loop-video {
  width: min(100%, 300px);
  aspect-ratio: 618 / 862;
}

.crest-panel {
  box-sizing: border-box;
  width: min(100%, 300px);
  aspect-ratio: 618 / 862;
  display: grid;
  place-items: center;
  padding: 1.15rem;
  overflow: hidden;
  background: radial-gradient(circle at center, rgba(154, 115, 160, 0.24), rgba(17, 16, 22, 0.74) 68%);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.48);
}

.crest-panel img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.btn-kov {
  --bs-btn-color: var(--soft-linen);
  --bs-btn-bg: var(--vintage-grape);
  --bs-btn-border-color: rgba(245, 241, 230, 0.2);
  --bs-btn-hover-color: var(--onyx);
  --bs-btn-hover-bg: var(--soft-linen);
  --bs-btn-hover-border-color: var(--soft-linen);
  font-weight: 700;
}

/* Shared section spacing and heading styles. */
.section-band {
  padding: 5rem 0;
}

.section-band.alt {
  background: rgba(17, 16, 22, 0.58);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 2rem;
}

.section-kicker {
  color: var(--vintage-lavender);
  font-family: var(--font-subtitle);
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.section-title {
  color: var(--soft-linen);
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.05;
}

.lead-copy {
  color: var(--pale-slate);
  font-size: 1rem;
  line-height: 1.8;
}

.section-subtitle {
  margin: 0.75rem 0 0;
  color: var(--vintage-lavender);
  font-family: var(--font-subtitle);
  font-size: clamp(1.15rem, 2.5vw, 1.65rem);
  font-weight: 700;
}

.content-stack {
  display: grid;
  gap: clamp(4rem, 7vw, 6rem);
}

/* About, Why Choose Us, and House & Bloodline spacing. */
.about-stack {
  display: grid;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.founder-divider-heading {
  margin-top: clamp(1rem, 3vw, 2rem);
  margin-bottom: -0.5rem;
}

.purple-section-divider {
  width: min(100%, 760px);
  height: 1px;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
  background: linear-gradient(90deg, transparent, rgba(154, 115, 160, 0.95), rgba(245, 241, 230, 0.36), rgba(154, 115, 160, 0.95), transparent);
  box-shadow: 0 0 30px rgba(154, 115, 160, 0.68);
}

.purple-section-divider::before,
.purple-section-divider::after {
  content: "";
  display: block;
  width: 42px;
  height: 3px;
  margin: -1px auto 0;
  background: var(--vintage-lavender);
  box-shadow: 0 0 18px rgba(154, 115, 160, 0.9);
}

/* Teachings and Goth Links list layouts. */
.list-grid {
  max-width: 920px;
  margin-inline: auto;
}

.goth-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.goth-category-button {
  min-height: 96px;
}

/* Bootstrap card customization for the goth baseball-card member presentation. */
.kov-card {
  height: 100%;
  color: var(--soft-linen);
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.38), 0 0 34px rgba(154, 115, 160, 0.2);
  backdrop-filter: blur(9px);
}

.person-card {
  max-width: 420px;
  margin-inline: auto;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.founder-card {
  max-width: 1040px;
  margin-inline: auto;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

/* Founder card layout gives Lord Thanatos visual priority over standard member cards. */
.founder-card-inner {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
  min-height: 430px;
}

.founder-media {
  background: rgba(0, 0, 0, 0.34);
  border-right: 2px solid var(--border-soft);
}

.founder-media img {
  width: 100%;
  height: 100%;
  min-height: 430px;
  object-fit: cover;
  display: block;
}

.founder-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(86, 62, 94, 0.24), rgba(17, 16, 22, 0) 48%),
    rgba(17, 16, 22, 0.4);
}

.founder-body .card-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 0.8rem;
}

.founder-body .card-text {
  max-width: 620px;
  margin-top: 1.2rem;
  font-size: 1.02rem;
}

.founder-divider {
  width: 96px;
  height: 2px;
  margin: 1.25rem 0 0;
  background: linear-gradient(90deg, var(--vintage-lavender), transparent);
}

.person-card:hover {
  transform: translateY(-8px) rotateX(1.5deg) rotateY(-1.5deg);
  border-color: rgba(154, 115, 160, 0.94);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.58), 0 0 70px rgba(154, 115, 160, 0.5), 0 0 18px rgba(245, 241, 230, 0.12);
}

.founder-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 115, 160, 1);
  animation: founderGlowPulse 1.65s ease-in-out infinite;
}

@keyframes founderGlowPulse {
  0%,
  100% {
    box-shadow: 0 28px 86px rgba(0, 0, 0, 0.58), 0 0 48px rgba(154, 115, 160, 0.42), inset 0 0 0 rgba(154, 115, 160, 0);
  }

  50% {
    box-shadow: 0 32px 98px rgba(0, 0, 0, 0.64), 0 0 92px rgba(154, 115, 160, 0.78), inset 0 0 34px rgba(154, 115, 160, 0.16);
  }
}

.kov-card .card-title {
  font-family: var(--font-subtitle);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.15;
}

.person-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-bottom: 2px solid var(--border-soft);
  background: var(--onyx);
}

.card-rank {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  color: var(--soft-linen);
  background: rgba(86, 62, 94, 0.72);
  border: 1px solid rgba(245, 241, 230, 0.16);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* House & Bloodline member rows preserve the requested original ranking order. */
.member-layout {
  display: grid;
  gap: 2rem;
}

.member-row {
  display: grid;
  gap: 2rem;
  justify-content: center;
}

.member-row.single {
  grid-template-columns: minmax(280px, 420px);
}

.member-row.double {
  grid-template-columns: repeat(2, minmax(280px, 420px));
}

/* Social icon buttons for member profile links. */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-link {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  color: var(--soft-linen);
  background: rgba(86, 62, 94, 0.72);
  border: 1px solid rgba(245, 241, 230, 0.18);
  border-radius: 50%;
  text-decoration: none;
  transition: transform 160ms ease, background-color 160ms ease, border-color 160ms ease;
}

.social-link:hover {
  color: var(--onyx);
  background: var(--soft-linen);
  border-color: var(--soft-linen);
  transform: translateY(-2px);
}

.social-link svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

@media (max-width: 760px) {
  .member-row.double {
    grid-template-columns: minmax(260px, 420px);
  }

  .founder-card-inner {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .founder-media {
    border-right: 0;
    border-bottom: 2px solid var(--border-soft);
  }

  .founder-media img {
    height: auto;
    min-height: 0;
    aspect-ratio: 3 / 4;
  }
}

.kov-card .card-subtitle {
  color: var(--vintage-lavender);
  font-weight: 700;
}

.kov-card .card-text {
  color: var(--pale-slate);
  line-height: 1.7;
}

/* Reusable button cards for opening Teachings and Goth Links pop-up panels. */
.quick-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  min-height: 88px;
  padding: 1.25rem;
  color: var(--soft-linen);
  font: inherit;
  text-align: left;
  text-decoration: none;
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 14px 42px rgba(0, 0, 0, 0.3), 0 0 26px rgba(154, 115, 160, 0.18);
  cursor: pointer;
}

.quick-link:hover,
.quick-link:focus-visible {
  color: var(--soft-linen);
  border-color: rgba(154, 115, 160, 0.94);
  box-shadow: 0 20px 62px rgba(0, 0, 0, 0.44), 0 0 72px var(--shadow-violet);
  outline: none;
}

.quick-link span {
  color: var(--pale-slate);
}

.quick-link.compact {
  min-height: 58px;
  padding: 0.85rem 1rem;
}

.quick-link.compact strong {
  line-height: 1.25;
}

/* Pop-up panel system used by Teachings and Goth Links. */
.teaching-modal {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 4vw, 2rem);
}

.teaching-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(6px);
}

.teaching-modal-panel {
  position: relative;
  width: min(100%, 940px);
  max-height: min(84vh, 860px);
  color: var(--soft-linen);
  background: var(--surface-strong);
  border: 1px solid rgba(180, 173, 181, 0.34);
  border-radius: 8px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.64);
  overflow: hidden;
}

.teaching-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem);
  border-bottom: 1px solid var(--border-soft);
}

.teaching-modal-header h3 {
  margin: 0;
  font-family: var(--font-subtitle);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 700;
}

.teaching-modal-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  color: var(--soft-linen);
  font-size: 1.7rem;
  line-height: 1;
  background: rgba(245, 241, 230, 0.08);
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.teaching-modal-close:hover,
.teaching-modal-close:focus-visible {
  color: var(--onyx);
  background: var(--soft-linen);
  outline: none;
}

.teaching-modal-body {
  max-height: calc(min(84vh, 860px) - 86px);
  overflow-y: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.teaching-modal-body p {
  margin: 0 0 1.15rem;
  color: var(--pale-slate);
  line-height: 1.8;
  white-space: pre-wrap;
}

.goth-popup-list {
  margin: 0;
  padding-left: 1.5rem;
  color: var(--pale-slate);
}

.goth-popup-list li {
  padding: 0.45rem 0;
  line-height: 1.55;
}

.goth-popup-list a {
  color: var(--soft-linen);
  text-decoration-color: rgba(154, 115, 160, 0.7);
  text-underline-offset: 0.22em;
}

.goth-popup-list a:hover,
.goth-popup-list a:focus-visible {
  color: var(--vintage-lavender);
}

/* Current-member slideshow placed at the bottom of House & Bloodline. */
.original-carousel {
  max-width: 920px;
  margin-inline: auto;
  overflow: hidden;
  background: var(--surface);
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45), 0 0 46px rgba(154, 115, 160, 0.24);
}

.member-gallery {
  margin-top: clamp(3rem, 6vw, 5rem);
}

.original-carousel .carousel-item {
  background: rgba(0, 0, 0, 0.36);
}

.carousel-photo-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(360px, 68vh, 680px);
  padding: clamp(1rem, 3vw, 2rem);
}

.carousel-photo-pair {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.5rem);
  align-items: center;
}

.carousel-photo-frame img {
  max-width: 100%;
  max-height: min(64vh, 640px);
  object-fit: contain;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.carousel-control-prev,
.carousel-control-next {
  width: 12%;
}

.carousel-indicators {
  margin-bottom: 0.35rem;
}

/* Contact form uses Bootstrap structure with custom dark KOV controls. */
.contact-section {
  border-top: 1px solid var(--border-soft);
}

.contact-form {
  max-width: 860px;
  margin-inline: auto;
  padding: clamp(1.25rem, 3vw, 2rem);
}

.contact-form .form-label {
  color: var(--soft-linen);
  font-family: var(--font-subtitle);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-control {
  color: var(--soft-linen);
  background: rgba(17, 16, 22, 0.78);
  border: 2px solid var(--border-soft);
  border-radius: 8px;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.22);
}

.contact-control:focus {
  color: var(--soft-linen);
  background: rgba(17, 16, 22, 0.94);
  border-color: rgba(154, 115, 160, 0.94);
  box-shadow: 0 0 0 0.2rem rgba(154, 115, 160, 0.22), 0 0 36px rgba(154, 115, 160, 0.24);
}

.contact-control::placeholder {
  color: rgba(180, 173, 181, 0.72);
}

.contact-captcha {
  display: flex;
  justify-content: center;
  min-height: 78px;
}

.contact-status {
  margin: 0;
  text-align: center;
  font-weight: 700;
}

.contact-status.success {
  color: var(--soft-linen);
}

.contact-status.error {
  color: #f0a8b8;
}

/* Footer with automatic copyright year from the static page script. */
.footer {
  padding: 2rem 0;
  background: var(--surface-strong);
  border-top: 1px solid var(--border-soft);
}

/* Tablet and small-desktop adjustments. */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
    padding-top: 7rem;
  }

  .hero-media-row {
    flex-direction: column;
  }

  .crest-panel {
    width: min(100%, 240px);
  }

  .hero-loop-video {
    width: min(100%, 240px);
  }

  .goth-category-grid {
    grid-template-columns: 1fr;
  }
}

/* Mobile adjustments for stacked cards, carousel images, and compact navigation spacing. */
@media (max-width: 640px) {
  .carousel-photo-pair {
    grid-template-columns: 1fr;
  }

  .carousel-photo-frame img {
    max-height: min(38vh, 360px);
  }
}
