/* ==========================================================================
   PORTFOLIOTOPTLLY - ROYAL CHROME PURPLE & GOLD STYLESHEET
   ========================================================================== */

:root {
  --bg-dark: #07050A;
  --bg-card: rgba(22, 10, 36, 0.65);
  --bg-card-hover: rgba(35, 16, 58, 0.85);
  --purple-royal: #5E148C;
  --purple-chrome: #8E24AA;
  --purple-deep: #1A072A;
  --purple-glow: rgba(142, 36, 170, 0.35);
  --gold-primary: #D4AF37;
  --gold-light: #F3E5AB;
  --gold-accent: #E6C687;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --text-main: #F8F9FA;
  --text-muted: #B8B0C4;
  --text-gold: #E5C365;
  --border-gold: rgba(212, 175, 55, 0.3);
  --border-purple: rgba(142, 36, 170, 0.25);
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition-fast: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-sans);
  background: radial-gradient(circle at 50% 0%, #1a082c 0%, #07050a 70%);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  line-height: 1.2;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.5vw, 1.3rem); }

p {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 1rem;
}

a {
  color: var(--gold-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

/* Glassmorphism Frosted Panels */
.frosted-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.frosted-card:hover {
  border-color: var(--gold-primary);
  box-shadow: 0 15px 40px rgba(142, 36, 170, 0.25), 0 0 20px var(--gold-glow);
  transform: translateY(-4px);
}

/* Global Container */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   SLIM UNSTUCK HEADER
   ========================================================================== */
.site-header {
  width: 100%;
  height: 72px;
  background: rgba(11, 6, 18, 0.9);
  border-bottom: 1px solid var(--border-gold);
  position: relative; /* Not fixed/sticky per instructions */
  z-index: 1000;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.brand-logo svg {
  width: 34px;
  height: 34px;
}

.brand-text {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 1px;
  background: linear-gradient(135deg, #FFFFFF 0%, var(--gold-primary) 50%, #FFFFFF 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-main);
  position: relative;
  padding: 0.4rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-primary), var(--purple-chrome));
  transition: width var(--transition-fast);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link:hover,
.nav-link.active {
  color: var(--gold-primary);
}

/* Buttons */
.btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #AA7C11 100%);
  color: #07050A;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  border: 1px solid var(--gold-light);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all var(--transition-fast);
}

.btn-gold:hover {
  background: linear-gradient(135deg, #F3E5AB 0%, #D4AF37 100%);
  color: #000;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
  transform: translateY(-2px);
}

.btn-outline-gold {
  background: transparent;
  color: var(--gold-primary);
  border: 1px solid var(--gold-primary);
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 0.7rem 1.4rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-outline-gold:hover {
  background: rgba(212, 175, 55, 0.15);
  border-color: var(--gold-light);
  color: var(--gold-light);
}

/* Hamburger Menu Icon */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--gold-primary);
  margin: 5px 0;
  transition: all 0.3s ease;
}

/* Mobile Nav Drawer */
@media (max-width: 900px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(11, 5, 20, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-gold);
    flex-direction: column;
    padding: 2rem 1.5rem;
    gap: 1.5rem;
    display: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  }

  .nav-menu.active {
    display: flex;
  }

  .header-cta {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTIONS
   ========================================================================== */
.hero-section {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(142, 36, 170, 0.3) 0%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  align-items: center;
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  border-radius: 50px;
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1.5rem;
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-title span {
  color: var(--gold-primary);
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-image-wrapper {
  position: relative;
}

.hero-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  box-shadow: 0 20px 50px rgba(0,0,0,0.7), 0 0 30px var(--purple-glow);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  color: var(--gold-primary);
  font-weight: 700;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   CARDS & SECTIONS
   ========================================================================== */
.section-padding {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section-title {
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.05rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

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

.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-top-left-radius: 11px;
  border-top-right-radius: 11px;
}

.card-body {
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  height: calc(100% - 220px);
}

.card-title {
  margin-bottom: 0.75rem;
}

.card-text {
  font-size: 0.95rem;
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--gold-accent);
  margin-bottom: 1rem;
}

/* ==========================================================================
   ARTICLE & PROGRAM DETAILS
   ========================================================================== */
.detail-header {
  padding: 4rem 0 3rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.detail-banner {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border-gold);
  margin-bottom: 3rem;
}

.content-block {
  max-width: 860px;
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.8;
}

.content-block h2 {
  margin: 2.5rem 0 1rem;
  color: var(--gold-primary);
}

.content-block h3 {
  margin: 2rem 0 1rem;
  color: #FFF;
}

.content-block p {
  margin-bottom: 1.5rem;
}

.content-block ul, .content-block ol {
  margin: 1.5rem 0;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.content-block li {
  margin-bottom: 0.75rem;
}

.quote-box {
  border-left: 3px solid var(--gold-primary);
  background: rgba(94, 20, 140, 0.2);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 8px 8px 0;
}

.quote-box p {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: #FFF;
  font-style: italic;
  margin: 0;
}

/* ==========================================================================
   CONTACT FORM & LEGAL PAGES
   ========================================================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gold-accent);
  margin-bottom: 0.5rem;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(10, 5, 18, 0.8);
  border: 1px solid var(--border-purple);
  border-radius: 6px;
  color: #FFF;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--gold-primary);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
}

textarea.form-control {
  resize: vertical;
  min-height: 140px;
}

.legal-section {
  padding: 4rem 0;
}

.legal-card {
  padding: 3rem;
  margin-bottom: 2rem;
}

.legal-card h2 {
  color: var(--gold-primary);
  margin-top: 1.8rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.legal-card p, .legal-card li {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   UNIVERSAL MANDATORY FOOTER
   ========================================================================== */
.site-footer {
  background: #040306;
  border-top: 1px solid var(--border-gold);
  padding: 4rem 0 2rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-top: 1rem;
  max-width: 320px;
}

.footer-heading {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--gold-primary);
  margin-bottom: 1.25rem;
  letter-spacing: 0.5px;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-address {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: normal;
  line-height: 1.6;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.copyright-text {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  left: 1.5rem;
  max-width: 520px;
  margin: 0 0 0 auto;
  background: rgba(18, 8, 30, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--gold-primary);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 15px rgba(212, 175, 55, 0.2);
  z-index: 9999;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}

.cookie-title {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--gold-primary);
  margin-bottom: 0.5rem;
}

.cookie-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .grid-3, .grid-2 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
  }
}