/* ==============================================================
   Template 3: Noble Prestige (template-prestige.css)
   Majestic Royal Dynasty, Chieftaincy Council & Heritage League
   Imperial Gold, Obsidian Marble, Regal Serif & Sacred Pillars
   ============================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --np-gold: #d4af37;
  --np-gold-light: #fbbf24;
  --np-gold-dark: #b45309;
  --np-gold-grad: linear-gradient(135deg, #fbbf24 0%, #d4af37 50%, #b45309 100%);
  --np-gold-foil: linear-gradient(135deg, #fef08a 0%, #d4af37 40%, #b45309 80%, #fef08a 100%);
  --np-gold-border: rgba(212, 175, 55, 0.35);
  --np-gold-glow: 0 0 25px rgba(212, 175, 55, 0.25);
  --np-obsidian: #070a10;
  --np-obsidian-card: #0d121c;
  --np-obsidian-alt: #131a28;
  --np-crimson: #881337;
  --np-text: #f8fafc;
  --np-text-muted: #94a3b8;
  --np-text-gold: #fef08a;
  --np-radius-sm: 6px;
  --np-radius-md: 12px;
}

body.template-prestige {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--np-obsidian);
  color: var(--np-text);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.template-prestige h1,
.template-prestige h2,
.template-prestige h3,
.template-prestige .np-serif {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  letter-spacing: 0.8px;
}

/* ==============================================================
   REGAL TOP BAR
   ============================================================== */
.template-prestige .np-topbar {
  background: #030508;
  border-bottom: 1px solid var(--np-gold-border);
  padding: 8px 0;
  font-size: 12px;
  color: #94a3b8;
  position: relative;
}
.template-prestige .np-topbar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--np-gold-foil);
}
.template-prestige .np-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.template-prestige .np-topbar-motto {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #fbbf24;
  letter-spacing: 0.5px;
}
.template-prestige .np-topbar-contact {
  display: flex;
  gap: 18px;
}
.template-prestige .np-topbar-contact span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ==============================================================
   HEADER & HERALDIC NAVIGATION
   ============================================================== */
.template-prestige .np-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  background: rgba(7, 10, 16, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--np-gold-border);
  padding: 16px 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}
.template-prestige .np-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.template-prestige .np-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}
.template-prestige .np-crest-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid var(--np-gold);
  padding: 2px;
  background: radial-gradient(circle, #1e293b 0%, #070a10 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--np-gold-glow);
}
.template-prestige .np-brand-logo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.template-prestige .np-brand-info h1 {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}
.template-prestige .np-brand-info span {
  font-size: 11px;
  color: #fbbf24;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
}
.template-prestige .np-nav {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 14px;
}
.template-prestige .np-nav-link {
  color: #cbd5e1;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  text-decoration: none !important;
  transition: all 0.25s ease;
  position: relative;
  padding: 6px 4px;
}
.template-prestige .np-nav-link:hover,
.template-prestige .np-nav-link.active {
  color: #fbbf24;
}
.template-prestige .np-nav-link::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 1.5px;
  background: var(--np-gold);
  transition: width 0.25s ease;
}
.template-prestige .np-nav-link:hover::after,
.template-prestige .np-nav-link.active::after {
  width: 100%;
}
.template-prestige .np-nav-sep {
  color: rgba(212, 175, 55, 0.4);
  font-size: 10px;
}
.template-prestige .np-nav-cta {
  background: transparent;
  border: 1.5px solid var(--np-gold);
  color: #fbbf24 !important;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 8px;
  box-shadow: var(--np-gold-glow);
  transition: all 0.25s ease;
}
.template-prestige .np-nav-cta:hover {
  background: var(--np-gold-grad);
  color: #070a10 !important;
}

/* ==============================================================
   HERO: IMPERIAL HERALDIC PAVILION (CENTERED REGAL STAGE)
   ============================================================== */
.template-prestige .np-hero {
  position: relative;
  padding: 100px 0 110px;
  text-align: center;
  background: radial-gradient(circle at 50% 25%, rgba(212, 175, 55, 0.15) 0%, transparent 65%),
              #070a10;
  border-bottom: 1px solid var(--np-gold-border);
  overflow: hidden;
}
.template-prestige .np-hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: radial-gradient(rgba(212, 175, 55, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}
.template-prestige .np-heraldic-emblem {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fbbf24;
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 24px;
  border: 1px solid var(--np-gold-border);
  padding: 6px 20px;
  border-radius: 50px;
  background: rgba(13, 18, 28, 0.8);
  box-shadow: var(--np-gold-glow);
}
.template-prestige .np-hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin: 0 auto 24px;
  max-width: 860px;
  letter-spacing: 1px;
}
.template-prestige .np-hero-title span.np-gold-text {
  background: var(--np-gold-foil);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.template-prestige .np-hero-proclamation {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 20px;
  color: #cbd5e1;
  max-width: 760px;
  margin: 0 auto 38px;
  line-height: 1.7;
  font-style: italic;
}
.template-prestige .np-hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.template-prestige .np-btn-gold {
  background: var(--np-gold-grad);
  color: #070a10 !important;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 32px;
  border-radius: 4px;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.4);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.template-prestige .np-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.6);
}
.template-prestige .np-btn-outline {
  border: 1px solid var(--np-gold-border);
  color: #f8fafc !important;
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 14px 28px;
  border-radius: 4px;
  text-decoration: none !important;
  background: rgba(13, 18, 28, 0.6);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.template-prestige .np-btn-outline:hover {
  border-color: var(--np-gold);
  color: #fbbf24 !important;
  transform: translateY(-2px);
}

/* Stately Tapestry Hero Showcase Frame */
.template-prestige .np-tapestry-frame {
  max-width: 900px;
  margin: 0 auto;
  border: 2px solid var(--np-gold);
  border-radius: 12px;
  padding: 8px;
  background: rgba(212, 175, 55, 0.05);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9);
  position: relative;
}
.template-prestige .np-tapestry-frame::before {
  content: "✦";
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: #070a10;
  padding: 0 10px;
  color: var(--np-gold);
  font-size: 16px;
}
.template-prestige .np-tapestry-img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}

/* ==============================================================
   SECTION HEADERS
   ============================================================== */
.template-prestige .np-section {
  padding: 95px 0;
}
.template-prestige .np-section-alt {
  background-color: var(--np-obsidian-alt);
}
.template-prestige .np-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}
.template-prestige .np-section-flourish {
  color: var(--np-gold);
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: 4px;
}
.template-prestige .np-section-title {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  padding-bottom: 12px;
}
.template-prestige .np-section-title::after {
  content: "";
  position: absolute;
  bottom: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 2px;
  background: var(--np-gold-foil);
}
.template-prestige .np-section-desc {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  color: var(--np-text-muted);
  line-height: 1.7;
  font-style: italic;
  margin-top: 14px;
}

/* ==============================================================
   THE THREE SACRED PILLARS OF THE REALM (ABOUT)
   ============================================================== */
.template-prestige .np-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.template-prestige .np-pillar-card {
  background: var(--np-obsidian-card);
  border: 1px solid var(--np-gold-border);
  border-radius: var(--np-radius-sm);
  padding: 44px 30px 36px;
  position: relative;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}
.template-prestige .np-pillar-card:hover {
  transform: translateY(-6px);
  border-color: var(--np-gold);
  box-shadow: var(--np-gold-glow);
}
.template-prestige .np-pillar-num {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--np-gold);
  margin-bottom: 14px;
  display: block;
  letter-spacing: 2px;
}
.template-prestige .np-pillar-title {
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.template-prestige .np-pillar-text {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.7;
  margin: 0;
}

/* ==============================================================
   ENDURING DEEDS & ROYAL CHARTERS (PROJECTS)
   ============================================================== */
.template-prestige .np-projects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.template-prestige .np-deed-card {
  background: var(--np-obsidian-card);
  border: 1px solid var(--np-gold-border);
  border-radius: var(--np-radius-sm);
  padding: 32px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.template-prestige .np-deed-card:hover {
  transform: translateY(-5px);
  border-color: var(--np-gold);
}
.template-prestige .np-deed-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--np-gold);
  color: var(--np-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 18px;
  background: rgba(212, 175, 55, 0.08);
}
.template-prestige .np-deed-title {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
  line-height: 1.35;
}
.template-prestige .np-deed-desc {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.65;
  margin-bottom: 22px;
  flex-grow: 1;
}
.template-prestige .np-deed-footer {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: #fbbf24;
  font-family: 'Cinzel', serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ==============================================================
   HIGH COUNCIL OF ELDERS & PATRONS (EXCOS)
   ============================================================== */
.template-prestige .np-council-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.template-prestige .np-council-card {
  background: var(--np-obsidian-card);
  border: 1px solid var(--np-gold-border);
  border-radius: var(--np-radius-sm);
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}
.template-prestige .np-council-card:hover {
  transform: translateY(-5px);
  border-color: var(--np-gold);
  box-shadow: var(--np-gold-glow);
}
.template-prestige .np-council-portrait {
  width: 120px;
  height: 120px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 2px solid var(--np-gold);
  padding: 4px;
  background: #030508;
  box-shadow: var(--np-gold-glow);
  overflow: hidden;
}
.template-prestige .np-council-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}
.template-prestige .np-council-name {
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
  word-break: break-word;
  overflow-wrap: break-word;
}
.template-prestige .np-council-title {
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: 'Cinzel', serif;
  display: inline-block;
  word-break: break-word;
  white-space: normal;
  line-height: 1.4;
  max-width: 100%;
}

/* ==============================================================
   ROYAL CULTURAL ARCHIVES (GALLERY)
   ============================================================== */
.template-prestige .np-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.template-prestige .np-gallery-item {
  position: relative;
  border: 1px solid var(--np-gold-border);
  border-radius: var(--np-radius-sm);
  overflow: hidden;
  height: 240px;
  background: #000000;
}
.template-prestige .np-gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  opacity: 0.85;
}
.template-prestige .np-gallery-item:hover .np-gallery-img {
  transform: scale(1.06);
  opacity: 1;
}
.template-prestige .np-gallery-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, rgba(7, 10, 16, 0.98), transparent);
  padding: 24px 16px 14px;
  color: #ffffff;
  border-top: 1px solid rgba(212, 175, 55, 0.3);
}
.template-prestige .np-gallery-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  margin: 0;
}

/* ==============================================================
   CHANCELLERY & ROYAL AUDIENCE (CONTACT)
   ============================================================== */
.template-prestige .np-chancellery-wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 36px;
  background: var(--np-obsidian-card);
  border: 1px solid var(--np-gold-border);
  border-radius: var(--np-radius-sm);
  overflow: hidden;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}
.template-prestige .np-chancellery-info {
  background: #030508;
  border-right: 1px solid var(--np-gold-border);
  padding: 48px;
}
.template-prestige .np-chancellery-info h3 {
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 12px;
}
.template-prestige .np-chancellery-info p {
  color: #94a3b8;
  font-size: 14px;
  margin-bottom: 36px;
  line-height: 1.6;
}
.template-prestige .np-chancellery-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.template-prestige .np-chancellery-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--np-gold);
  color: #fbbf24;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  background: rgba(212, 175, 55, 0.08);
}
.template-prestige .np-chancellery-details h5 {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  margin: 0 0 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.template-prestige .np-chancellery-details p {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
}
.template-prestige .np-audience-form {
  padding: 48px;
}
.template-prestige .np-form-group {
  margin-bottom: 20px;
}
.template-prestige .np-form-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 8px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.template-prestige .np-form-input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--np-gold-border);
  border-radius: 4px;
  font-size: 14px;
  background: #030508;
  color: #f8fafc;
  transition: all 0.25s ease;
}
.template-prestige .np-form-input:focus {
  outline: none;
  border-color: var(--np-gold);
  box-shadow: var(--np-gold-glow);
}

/* ==============================================================
   IMPERIAL FOOTER
   ============================================================== */
.template-prestige .np-footer {
  background: #030508;
  border-top: 1px solid var(--np-gold-border);
  padding: 60px 0 30px;
  color: #94a3b8;
  position: relative;
}
.template-prestige .np-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--np-gold-foil);
}
.template-prestige .np-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.template-prestige .np-footer-brand h4 {
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 10px;
}
.template-prestige .np-footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 320px;
}
.template-prestige .np-footer-col h5 {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.template-prestige .np-footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.template-prestige .np-footer-col li {
  margin-bottom: 10px;
}
.template-prestige .np-footer-col a {
  color: #94a3b8;
  text-decoration: none !important;
  font-size: 13px;
  transition: color 0.2s ease;
}
.template-prestige .np-footer-col a:hover {
  color: #fbbf24;
}
.template-prestige .np-footer-bottom {
  border-top: 1px solid rgba(212, 175, 55, 0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
}

/* ==============================================================
   RESPONSIVE
   ============================================================== */
@media (max-width: 991px) {
  .template-prestige .np-hero-title { font-size: 38px; }
  .template-prestige .np-pillars-grid { grid-template-columns: 1fr; }
  .template-prestige .np-projects-grid { grid-template-columns: repeat(2, 1fr); }
  .template-prestige .np-council-grid { grid-template-columns: repeat(2, 1fr); }
  .template-prestige .np-gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .template-prestige .np-chancellery-wrap { grid-template-columns: 1fr; }
  .template-prestige .np-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .template-prestige .np-hero { padding: 60px 0; }
  .template-prestige .np-hero-title { font-size: 28px; }
  .template-prestige .np-projects-grid { grid-template-columns: 1fr; }
  .template-prestige .np-council-grid { grid-template-columns: 1fr; }
  .template-prestige .np-gallery-grid { grid-template-columns: 1fr; }
  .template-prestige .np-footer-grid { grid-template-columns: 1fr; }
  .template-prestige .np-nav { display: none; }
}
