/* styles.css */

:root {
  --navy:        #0A0E1A;   /* page background */
  --navy-mid:    #14203A;   /* card/section bg */
  --navy-light:  #1A2540;   /* avenue card bg */
  --gold:        #C9A84C;   /* primary accent */
  --gold-bright: #F0C040;   /* headings, highlights */
  --gold-dim:    #EAD89C;   /* subheadings */
  --stone:       #3A3A4A;   /* dividers, borders */
  --parchment:   #F5EDD0;   /* form/modal bg */
  --muted:       #8A97B0;   /* body text on dark */
  --text-dark:   #1A1208;   /* text on parchment */
}

/* Typography & Base */
h1, h2, h3, .royal-text {
  font-family: 'Cinzel', Georgia, serif;
}

body, p, label, input, select, textarea, button {
  font-family: 'Lato', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--navy);
  background-image: url('../assets/royal-bg.png');
  background-repeat: repeat;
  background-attachment: fixed;
  color: var(--muted);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--navy);
}
::-webkit-scrollbar-thumb {
  background: var(--gold);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-bright);
}

::selection {
  background: var(--gold);
  color: var(--navy);
}
::-moz-selection {
  background: var(--gold);
  color: var(--navy);
}

/* Layout Blocks */
section {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.section-container {
  max-width: 1200px;
  width: 90%;
  margin: 0 auto;
  padding: 4rem 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Hero Section (Section 1) */
#hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
}

#hero-particle-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}




.castle-bottom-silhouette {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 20vh;
  z-index: 5;
  pointer-events: none;
}

.hero-main-content {
  z-index: 6;
  max-width: 800px;
  width: 90%;
  padding-bottom: 5vh;
}

.hero-sub-text {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(32px, 6vw, 64px);
  color: var(--gold-bright);
  font-weight: 800;
  letter-spacing: 2px;
  line-height: 1.1;
  text-shadow: 0 0 20px rgba(240, 192, 64, 0.3);
  margin-bottom: 1.5rem;
}

.gold-line-divider {
  width: 200px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1.5rem auto;
}

.hero-status {
  font-size: 13px;
  letter-spacing: 4px;
  color: var(--muted);
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-tagline {
  font-size: 18px;
  color: var(--gold-dim);
  font-style: italic;
  margin-bottom: 3rem;
}

.hero-bottom-info {
  position: absolute;
  bottom: 2rem;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
  z-index: 6;
}



/* Realm Map (Section 2) */
#realm-map {
  background-color: var(--navy);
  display: flex;
  align-items: center;
}

.map-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.map-description {
  display: flex;
  flex-direction: column;
}

.map-label {
  font-size: 13px;
  letter-spacing: 3px;
  color: var(--gold);
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9), 0 0 10px rgba(0, 0, 0, 0.9);
}

.map-heading {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--gold-bright);
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.95), 0 0 20px rgba(0, 0, 0, 0.9);
}

.map-paragraph {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 2rem;
}

.map-stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
}

.stat-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--navy-mid);
  padding: 0.8rem 1.5rem;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.2);
}

.stat-icon {
  font-size: 20px;
  color: var(--gold);
}

.stat-text {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  color: var(--gold-bright);
}

.map-note {
  font-size: 13px;
  color: var(--gold-dim);
  font-style: italic;
}

/* Map UI Panel */
.map-ui-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
}

.map-container-card {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  background: var(--navy-mid);
  border: 3px double var(--gold);
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(201, 168, 76, 0.1);
  padding: 2rem;
}

.map-title {
  position: absolute;
  top: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 16px;
  color: var(--gold-bright);
  letter-spacing: 2px;
  z-index: 10;
  width: 100%;
  text-align: center;
}

/* SVG or absolute nodes mapped on the circle */
.map-interactive-area {
  position: relative;
  width: 380px;
  height: 380px;
  margin: 0 auto;
}

.map-center-keep {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  border: 2px dashed rgba(201, 168, 76, 0.4);
  background: rgba(10, 14, 26, 0.6);
  z-index: 2;
}

.keep-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 9px;
  color: var(--gold-dim);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: 'Cinzel', serif;
  max-width: 90px;
  pointer-events: none;
}

.map-outer-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.15);
  pointer-events: none;
  z-index: 1;
}

.outer-label {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 9px;
  color: var(--muted);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  width: 100%;
  z-index: 10;
}

/* Interactive dots */
.map-node {
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 5;
  transition: transform 0.3s, box-shadow 0.3s, background-color 0.3s;
}

.map-node.keep-node {
  background: var(--gold);
  border: 1.5px solid var(--navy);
  box-shadow: 0 0 5px var(--gold);
}

.map-node.guild-node {
  background: var(--navy-light);
  border: 1.5px solid var(--gold);
  box-shadow: 0 0 5px rgba(201, 168, 76, 0.3);
}

.map-node:hover {
  transform: scale(1.3);
  box-shadow: 0 0 15px var(--gold-bright);
}

.map-node.keep-node:hover {
  background: var(--gold-bright);
}

.map-node.guild-node:hover {
  background: var(--gold);
}

/* Node labels (tooltips) */
.map-node::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: var(--navy-light);
  color: var(--gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 9px;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  z-index: 15;
}

.map-node:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}



/* SECTION 3 — The Inner Keep (5 Units Grid) */
.units-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

.unit-card {
  background: var(--navy-mid);
  border: 2px solid rgba(201, 168, 76, 0.3);
  border-radius: 12px;
  padding: 2.2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.unit-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(201, 168, 76, 0.25);
}

.unit-card-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(10, 14, 26, 0.4);
  border-radius: 50%;
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 0.8rem;
}

.unit-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(240, 192, 64, 0.2));
}

.unit-card-name {
  font-size: 18px;
  color: var(--gold-bright);
  margin-bottom: 0.3rem;
}

.unit-card-metaphor {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--gold-dim);
  font-style: italic;
  margin-bottom: 1rem;
}

.unit-card-description {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.unit-card-roles {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
}

.unit-card-roles span {
  font-size: 10px;
  color: var(--gold-bright);
  border: 0.5px solid rgba(201, 168, 76, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(10, 14, 26, 0.3);
}

/* Herald Toast Notifications */
.herald-toast-container {
  position: fixed;
  top: 30px;
  right: 30px;
  z-index: 1000;
  pointer-events: none;
}

.herald-toast {
  background: var(--navy-mid);
  border: 1.5px solid var(--gold);
  border-radius: 8px;
  padding: 1rem 1.5rem;
  color: var(--gold-bright);
  font-family: 'Cinzel', serif;
  font-size: 13px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.6), 0 0 10px rgba(201, 168, 76, 0.2);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s;
  max-width: 300px;
  pointer-events: auto;
}

/* SECTION 4 — The Outer Realm (14 Avenues Grid) */
.avenues-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

.avenue-crest-card {
  background: var(--navy-light);
  border: 1px solid rgba(201, 168, 76, 0.2);
  border-radius: 12px;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.avenue-crest-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 15px 35px rgba(201, 168, 76, 0.2);
}

.avenue-card-logo {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(10, 14, 26, 0.4);
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 76, 0.15);
  padding: 0.6rem;
}

.avenue-card-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 5px rgba(240, 192, 64, 0.2));
}

.avenue-card-name {
  font-size: 16px;
  color: var(--gold-bright);
  margin-bottom: 0.3rem;
}

.avenue-card-metaphor {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--gold-dim);
  font-style: italic;
  margin-bottom: 1rem;
}

.avenue-card-description {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.crest-select-btn {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: bold;
  color: var(--navy);
  background: var(--gold);
  border: 1px solid var(--gold-bright);
  border-radius: 4px;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
  letter-spacing: 1px;
  transition: all 0.3s;
  width: 100%;
  max-width: 140px;
}

.crest-select-btn:hover {
  background: var(--gold-bright);
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(240, 192, 64, 0.4);
}



/* SECTION 5 — The Royal Council Chamber */
#council-chamber {
  background-color: var(--navy);
  display: flex;
  align-items: center;
}

.council-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.stone-arch-bg {
  width: 300px;
  height: 100px;
  border-top: 3px solid rgba(201, 168, 76, 0.15);
  border-left: 3px solid rgba(201, 168, 76, 0.15);
  border-right: 3px solid rgba(201, 168, 76, 0.15);
  border-radius: 150px 150px 0 0;
  margin-bottom: 2.5rem;
}

.pillars-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  width: 100%;
  max-width: 900px;
  margin-bottom: 4rem;
}

.stone-pillar {
  background: var(--navy-mid);
  border: 3px double var(--stone);
  border-radius: 6px;
  padding: 2.5rem 1.5rem;
  box-shadow: inset 0 0 15px rgba(0,0,0,0.5), 0 10px 20px rgba(0,0,0,0.3);
  transition: border-color 0.3s;
}

.stone-pillar:hover {
  border-color: var(--gold);
}

.pillar-value {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 3.5vw, 36px);
  color: var(--gold-bright);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.pillar-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 2px;
}

.council-quote-block {
  max-width: 700px;
  margin: 0 auto;
}

.council-quote {
  font-size: 24px;
  color: var(--gold-bright);
  font-style: italic;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(240, 192, 64, 0.25);
}

.council-subquote {
  font-size: 14px;
  color: var(--muted);
}

/* SECTION 6 — Path to the Palace */
#palace-path {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.path-canvas-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.palace-silhouette-img {
  width: 60%;
  max-width: 600px;
  transform: scale(0.6);
  opacity: 0.15;
  transition: transform 0.1s, opacity 0.1s;
}

.path-svg-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.drawing-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
}

.path-text-wrapper {
  position: relative;
  z-index: 5;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.milestone-text {
  font-size: 20px;
  color: var(--gold-dim);
  opacity: 0;
  transition: opacity 0.8s, transform 0.8s;
  transform: translateY(20px);
}

.milestone-text.visible {
  opacity: 1;
  transform: translateY(0);
}

/* SECTION 7 — The Royal Palace (CTA) */
#royal-palace {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 2px solid rgba(201, 168, 76, 0.1);
  border-right: 2px solid rgba(201, 168, 76, 0.1);
}



.palace-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 700px;
  z-index: 5;
}

.palace-crown-icon {
  width: 48px;
  height: 48px;
  fill: var(--gold);
  margin-bottom: 1.5rem;
}

.palace-heading {
  font-size: clamp(32px, 5vw, 46px);
  color: var(--gold-bright);
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.palace-subheading {
  font-size: 16px;
  color: var(--gold-dim);
  font-style: italic;
  margin-bottom: 2rem;
}

.diamond-rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 300px;
  margin: 1.5rem auto;
}

.diamond-rule::before,
.diamond-rule::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.diamond-rule-center {
  color: var(--gold);
  font-size: 12px;
}

.palace-body {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 3rem;
}

.throne-cta-btn {
  width: 280px;
  height: 64px;
  background-color: var(--gold);
  color: var(--navy);
  border: 2px solid var(--gold-bright);
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 18px;
  font-weight: bold;
  letter-spacing: 2px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(201, 168, 76, 0.3);
  transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
}

.throne-cta-btn:hover {
  background-color: var(--gold-bright);
  transform: scale(1.03);
  box-shadow: 0 15px 35px rgba(240, 192, 40, 0.45);
}

.btn-particle-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ROYAL SCROLL MODAL */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  opacity: 0;
  transition: opacity 0.4s;
  backdrop-filter: blur(8px);
}

.modal-overlay.open {
  display: flex;
  opacity: 1;
}

.modal-box {
  width: 560px;
  max-width: 95vw;
  max-height: 90vh;
  background: var(--parchment);
  border: 3px solid var(--gold);
  border-radius: 12px;
  padding: 2.5rem;
  position: relative;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(201, 168, 76, 0.2);
  color: var(--text-dark);
}

.modal-close-btn {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  font-family: 'Cinzel', serif;
  font-size: 20px;
  color: #7C6020;
  cursor: pointer;
  transition: color 0.3s;
}

.modal-close-btn:hover {
  color: var(--text-dark);
}

.modal-header {
  text-align: center;
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.modal-crown-icon {
  width: 36px;
  height: 36px;
  fill: #7C6020;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 26px;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.modal-subtitle {
  font-size: 13px;
  color: #5C4A20;
  margin-bottom: 1rem;
}

.modal-divider {
  width: 150px;
  height: 1px;
  background: #7C6020;
  margin: 0.5rem auto 1.5rem;
}

/* Modal Form Styles */
.royal-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 13px;
  font-weight: bold;
  color: #3C2E10;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.carved-input {
  width: 100%;
  padding: 0.8rem 1rem;
  background: #2A3048;
  border: 1.5px solid var(--gold);
  border-radius: 6px;
  color: var(--gold-bright);
  font-size: 14px;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.carved-input::placeholder {
  color: rgba(234, 216, 156, 0.4);
}

.carved-input:focus {
  border-color: var(--gold-bright);
  box-shadow: 0 0 10px rgba(240, 192, 64, 0.3);
}

/* Custom styles for select elements */
select.carved-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A84C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1em;
  padding-right: 2.5rem;
}

textarea.carved-input {
  resize: vertical;
}

.submit-throne-btn {
  width: 100%;
  height: 52px;
  background: var(--gold);
  color: var(--navy);
  border: 1.5px solid var(--gold-bright);
  border-radius: 6px;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 1.5px;
  cursor: pointer;
  margin-top: 1rem;
  transition: background-color 0.3s, transform 0.2s;
  box-shadow: 0 5px 15px rgba(201, 168, 76, 0.3);
}

.submit-throne-btn:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
}

/* Form success & states */
.form-loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 3rem 0;
  text-align: center;
}

.gold-loading-ring {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(201, 168, 76, 0.2);
  border-top: 4px solid var(--gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.5rem 0;
}

.wax-seal-img {
  width: 90px;
  height: 90px;
  margin-bottom: 2rem;
  opacity: 0;
}

.success-title {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  color: #7C6020;
  margin-bottom: 0.8rem;
  font-weight: bold;
}

.success-subtext {
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 2.5rem;
}

/* SECTION 8 — Footer */
footer {
  background: var(--navy);
  padding: 4rem 0 2rem;
  position: relative;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
  overflow: hidden;
}



.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
  z-index: 5;
  position: relative;
}

.footer-logo {
  font-size: 28px;
  color: var(--gold-bright);
}

.footer-title {
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--gold-bright);
  font-weight: bold;
}

.footer-subtitle {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 2rem;
  margin: 0.5rem 0;
}

.footer-link {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3s;
}

.footer-link:hover {
  color: var(--gold-bright);
}

.footer-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
}

.footer-tagline {
  font-size: 13px;
  color: var(--gold-dim);
  font-style: italic;
  letter-spacing: 1px;
}

/* Mobile responsive navigation pill lists replacing map on mobile */
.mobile-nav-rows {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  width: 100%;
  margin-top: 2rem;
}

.mobile-nav-scroll-wrapper {
  overflow-x: auto;
  padding: 0.5rem 0;
  display: flex;
  gap: 0.8rem;
  scrollbar-width: none; /* Firefox */
}

.mobile-nav-scroll-wrapper::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

.mobile-pill {
  flex: 0 0 auto;
  background: var(--navy-mid);
  color: var(--gold-bright);
  border: 1px solid rgba(201, 168, 76, 0.4);
  padding: 0.6rem 1.2rem;
  border-radius: 20px;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  text-decoration: none;
  transition: all 0.3s;
}

.mobile-pill:active {
  background: var(--gold);
  color: var(--navy);
}

.mobile-nav-title {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  color: var(--gold-dim);
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
  text-transform: uppercase;
}

/* Mobile Responsiveness Rules */
@media (max-width: 1200px) {
  .units-grid {
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
  }
  .avenues-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 992px) {
  .map-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .map-ui-wrapper {
    display: none; /* Map hidden on mobile */
  }

  .mobile-nav-rows {
    display: flex;
  }



  .units-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .avenues-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pillars-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

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

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


@media (max-width: 576px) {
  .modal-box {
    width: 100vw;
    height: 100svh;
    max-height: 100svh;
    border-radius: 0;
    border: none;
    padding: 1.5rem;
  }
  
  .modal-close-btn {
    top: 1rem;
    right: 1rem;
  }
}
