/* ============================================================
   Wizard and Droid — Stylesheet
   ============================================================ */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: #eae4f4;
  background: #0c0518;
  min-height: 100vh;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ---------- Starfield ---------- */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1px 1px at 28% 62%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(2px 2px at 55% 9%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 72% 38%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.5px 1.5px at 90% 75%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 40% 85%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(2px 2px at 65% 55%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 18% 45%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 85% 22%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 48% 42%, rgba(255, 255, 255, 0.3), transparent);
}

/* ---------- Nebula glow ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 40%, rgba(88, 28, 180, 0.3), transparent),
    radial-gradient(ellipse 60% 40% at 30% 70%, rgba(60, 18, 140, 0.18), transparent),
    radial-gradient(ellipse 60% 40% at 75% 60%, rgba(100, 40, 200, 0.12), transparent);
}

body > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   Navigation Bar — image-based with overlay links
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  /* also acts as positioning context for .nav-links */
}

.navbar-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: left center;
}

.nav-links {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  padding: 0 64px 0 16px; /* Move links further left, add right padding to keep About Us from edge */
}

.nav-links a {
  font-size: 0;
  display: block;
  flex: 1;
  cursor: pointer;
}

/* ============================================================
   Hero Banner
   ============================================================ */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  line-height: 0;
}

.hero-img {
  width: 100%;
  height: auto;
}

/* ============================================================
   Section Headings — decorative ruled lines
   ============================================================ */
.section-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.rule-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(200, 170, 100, 0.55),
    transparent
  );
}

.section-rule h2 {
  font-family: "Cinzel Decorative", "Cinzel", serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  color: #f0e6c8;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   Featured Extensions
   ============================================================ */
.featured {
  max-width: 1200px;
  margin: 0 auto;
  padding: 52px 24px 56px;
}

/* ---------- Card Grid ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2.5vw, 28px);
  align-items: start;
}

.card-link {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  transition: transform 250ms ease, box-shadow 250ms ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}

.card-link:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.5),
    0 0 24px rgba(130, 80, 220, 0.2);
}

.card-link img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border-bottom: 1.5px solid rgba(200, 170, 100, 0.55); /* Thin line at bottom edge for all cards */
}

/* ============================================================
   Generic Page Sections
   ============================================================ */
.page-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 28px;
}

.section-body {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.75;
  color: #c8bfdb;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  max-width: 1200px;
  margin: 48px auto 0;
  padding: 24px 24px 18px;
  text-align: center;
  color: #a99cc4;
  font-size: 0.88rem;
  border-top: 1px solid rgba(180, 155, 100, 0.18);
}

/* ============================================================
   Contact Form
   ============================================================ */
.contact-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  color: #f0e6c8;
}

.form-group input,
.form-group textarea {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 170, 100, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  font-family: "Inter", sans-serif;
  font-size: 1rem;
  color: #eae4f4;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(200, 191, 219, 0.5);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: rgba(200, 170, 100, 0.65);
  box-shadow: 0 0 12px rgba(130, 80, 220, 0.25);
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.form-btn {
  align-self: center;
  background: linear-gradient(135deg, #5a2daa, #7b3fe0);
  color: #f0e6c8;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 36px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.form-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(90, 45, 170, 0.45);
}

.form-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  text-align: center;
  font-size: 0.95rem;
  min-height: 1.4em;
}

.form-status.success {
  color: #7ee87e;
}

.form-status.error {
  color: #f07070;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .card-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
    gap: 28px;
  }
}

@media (max-width: 600px) {
  .featured,
  .page-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .section-rule {
    gap: 10px;
  }

  .section-rule h2 {
    white-space: normal;
    text-align: center;
    font-size: 1.3rem;
  }
}
