/* ================================
   GLOBAL STYLES
================================ */
:root {
  --bg-dark: rgba(13,10,17,0.78);
  --bg-panel: rgba(16,12,22,0.72);
  --bg-panel-strong: rgba(13,10,17,0.86);
  --gold: #b45de9;
  --gold-soft: #b45de9;
  --text: #f6f2f9;
  --muted: #d8a3ff;
  --border: #51365f;
  --border-soft: rgba(160,100,200,0.25);
  --shadow: 0 0 18px rgba(180,93,233,0.18);
  --shadow-strong: 0 0 24px rgba(180,93,233,0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cinzel", serif;
  background: #18121e;
  background-size: cover;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.8;
  position: relative;
  z-index: 0;
}

/* Dark overlay for readability */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    transparent;
  pointer-events: none;
  z-index: -1;
}

a {
  color: inherit;
}

/* ================================
   HEADER / TOP BAR
================================ */
header {
  display: block;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
  background: rgba(13,10,17,0.72);
  border-bottom: 1px solid rgba(160,100,200,0.18);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.topbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  flex-wrap: nowrap;
}

.brand {
  color: var(--gold);
  text-decoration: none;
  font-weight: 900;
  letter-spacing: 1.5px;
  font-size: 1.1rem;
  white-space: nowrap;
  flex-shrink: 0;
  text-shadow: 0 0 12px rgba(180,93,233,0.35);
}

.top-links {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
}

.top-link {
  color: var(--text);
  text-decoration: none;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: 0.2s ease;
  font-size: 0.88rem;
  white-space: nowrap;
}

.top-link:hover {
  color: var(--gold);
  border-color: rgba(160,100,200,0.28);
  background: rgba(180,93,233,0.08);
  text-decoration: none;
}

/* ================================
   NAV DROPDOWN
================================ */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.dropdown-toggle {
  font-family: "Cinzel", serif;
  cursor: pointer;
  background: transparent;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 230px;
  padding: 10px;
  background: rgba(13,10,17,0.96);
  border: 1px solid rgba(160,100,200,0.22);
  border-radius: 14px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  z-index: 300;
}

.nav-dropdown.open .dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dropdown-link {
  color: var(--text);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.94rem;
  transition: 0.2s ease;
  white-space: nowrap;
}

.dropdown-link:hover {
  color: var(--gold);
  background: rgba(180,93,233,0.08);
  text-decoration: none;
}

.menu-toggle {
  display: none;
  background: rgba(0, 0, 0, 0.34);
  color: var(--gold);
  border: 1px solid rgba(160,100,200,0.38);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.24),
    0 0 0 1px rgba(180,93,233,0.08) inset;
}

.menu-toggle:hover {
  background: rgba(180,93,233,0.08);
}

/* ================================
   MAIN CONTENT
================================ */
main {
  max-width: 1100px;
  margin: 40px auto 70px;
  padding: 0 20px;
}

/* ================================
   HEADINGS
================================ */
h1,
h2,
h3 {
  color: var(--gold);
  font-weight: 900;
  letter-spacing: 2px;
  text-shadow:
    0 0 12px rgba(180,93,233,0.45),
    0 0 22px rgba(180,93,233,0.22),
    -2px -2px 2px rgba(0, 0, 0, 0.9),
    2px 2px 2px rgba(0, 0, 0, 0.9);
  margin-top: 0;
}

h1 {
  font-size: 3.2rem;
}

h2 {
  font-size: 2.3rem;
  margin-bottom: 14px;
}

h3 {
  font-size: 1.45rem;
  margin-bottom: 12px;
}

p {
  margin: 0 0 18px 0;
  color: var(--text);
}

strong {
  color: #d8a3ff;
}

.subtitle {
  font-style: italic;
  margin-bottom: 14px;
  font-size: 1.28rem;
  color: var(--muted);
}

/* ================================
   HERO BANNER
================================ */
.hero-banner {
  width: 100%;
  height: 680px;
  background-image: none;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border-bottom: 3px solid #51365f;
  position: relative;
}

.hero-banner::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 38px;
  background: transparent;
  background-size: contain;
}

/* ================================
   HERO BOX
================================ */
.hero {
  text-align: center;
  padding: 56px 28px;
  background:
    #18121e;
  background-size: cover;
  border: 1px solid rgba(160,100,200,0.22);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-strong);
  position: relative;
  animation: runeGlow 4s ease-in-out infinite;
}

.hero p:last-of-type {
  margin-bottom: 0;
}

@keyframes runeGlow {
  0%   { box-shadow: 0 0 14px rgba(180,93,233,0.2); }
  50%  { box-shadow: 0 0 26px rgba(180,93,233,0.4); }
  100% { box-shadow: 0 0 14px rgba(180,93,233,0.2); }
}

/* ================================
   BUTTONS / CTA
================================ */
.buttons {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.button-row-left {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 14px 22px;
  background: #d8a3ff;
  color: #0d0a11;
  text-decoration: none;
  font-weight: 900;
  font-size: 1rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.35),
    0 0 12px rgba(180,93,233,0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 22px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(180,93,233,0.28);
  filter: brightness(1.03);
  text-decoration: none;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid rgba(160,100,200,0.22);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.24);
}

.button.secondary:hover {
  background: rgba(180,93,233,0.08);
}

/* ================================
   SECTION / CARD STYLES
================================ */
section {
  margin-top: 34px;
}

.card,
.cta-card,
.cta-section {
  background: rgba(13,10,17,0.62);
  border: 1px solid rgba(160,100,200,0.16);
  border-radius: 14px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(4px);
}

.card {
  padding: 28px;
}

.cta-section {
  padding: 30px 26px;
}

.cta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 24px;
}

.cta-card {
  padding: 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 34px 0;
  width: 100%;
}

.card h3 {
  margin: 0 0 12px 0;
  font-weight: 900;
}

.card ul {
  margin-left: 18px;
  padding-left: 0;
  list-style: disc;
  font-size: 1.04rem;
  line-height: 1.7;
}

ul {
  padding-left: 1.2rem;
}

/* ================================
   CONTACT FORM
================================ */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}

.contact-form label {
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 4px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(0, 0, 0, 0.40);
  color: var(--text);
  font-size: 1rem;
  font-family: "Cinzel", serif;
}

.contact-form textarea {
  min-height: 180px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 12px rgba(180,93,233,0.35);
}

.contact-form .button {
  margin-top: 8px;
  align-self: flex-start;
}

/* ================================
   CONTACT PAGE OVERLAY LAYOUT
================================ */
.contact-overlay {
  position: relative;
  max-width: 1400px;
  margin: 60px auto;
}

.raven-bg {
  width: 100%;
  height: 750px;
  object-fit: cover;
  object-position: left top;
  border-radius: 12px;
  clip-path: inset(0 0 120px 0);
  display: block;
}

.contact-panel {
  position: absolute;
  top: 50%;
  right: 60px;
  transform: translateY(-50%);
  width: 38%;
  padding: 32px;
  background: rgba(0, 0, 0, 0.58);
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(6px);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.30);
}

/* ================================
   FOOTER
================================ */
footer {
  text-align: center;
  padding: 28px 20px 36px;
  background: rgba(16,12,22,0.78);
  margin-top: 60px;
  border-top: 1px solid rgba(160,100,200,0.18);
  backdrop-filter: blur(5px);
  font-size: 1.05rem;
}

footer p {
  margin: 8px 0;
}

footer a {
  color: var(--gold);
  text-decoration: none;
}

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

/* ================================
   MOBILE
================================ */
@media (max-width: 768px) {
  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .brand {
    text-align: left;
    font-size: 1rem;
    line-height: 1.2;
  }

  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
  }

  .top-links {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 14px;
    left: 14px;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
    background: rgba(13,10,17,0.96);
    border: 1px solid rgba(160,100,200,0.18);
    border-radius: 14px;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(10px);
    z-index: 200;
  }

  .top-links.open {
    display: flex;
  }

  .top-link {
    display: block;
    width: 100%;
    text-align: center;
    white-space: normal;
    padding: 12px 14px;
    font-size: 1rem;
  }

  .nav-dropdown {
    width: 100%;
    display: block;
  }

  .dropdown-toggle {
    width: 100%;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    margin-top: 8px;
    box-shadow: none;
    background: rgba(0, 0, 0, 0.28);
  }

  .dropdown-link {
    width: 100%;
    text-align: center;
    white-space: normal;
  }

  main {
    margin: 28px auto 50px;
    padding: 0 14px;
  }

  h1 {
    font-size: 2.2rem;
    letter-spacing: 1px;
  }

  h2 {
    font-size: 1.7rem;
    letter-spacing: 1px;
  }

  h3 {
    font-size: 1.2rem;
    letter-spacing: 1px;
  }

  .hero-banner {
    height: 260px;
    background-position: center center;
  }

  .hero-banner::after {
    height: 24px;
    background-size: cover;
  }

  .hero {
    padding: 30px 18px;
  }

  .buttons,
  .button-row-left {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .button.secondary {
    width: 100%;
  }

  .card,
  .cta-card,
  .cta-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cta-grid,
  .card-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .contact-overlay {
    margin: 30px auto;
  }

  .raven-bg {
    height: 320px;
    clip-path: none;
    border-radius: 12px;
  }

  .contact-panel {
    position: static;
    top: auto;
    right: auto;
    transform: none;
    width: 100%;
    margin-top: 20px;
    padding: 22px 18px;
  }

  footer {
    padding: 24px 14px 30px;
    font-size: 0.98rem;
  }
}
