/* Royal Elite Forum — responsive navy/gold theme */

:root {
  --navy-900: #0a1628;
  --navy-800: #0f1f35;
  --navy-700: #162b47;
  --navy-600: #1f3a5f;
  --gold: #d4af37;
  --gold-light: #f0d878;
  --gold-dark: #b5922b;
  --cream: #f4f1ea;
  --white: #ffffff;
  --text-light: #e8e8e8;
  --text-muted: #a8b4c4;
  --radius: 8px;
  --shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  --transition: 0.25s ease;
  --max-width: 1160px;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-heading: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--navy-900);
  color: var(--text-light);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition);
}

a:hover,
a:focus {
  color: var(--gold-light);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--gold);
  line-height: 1.25;
  margin-top: 0;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(92%, var(--max-width));
  margin-inline: auto;
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: var(--navy-800);
}

.section-title {
  font-size: clamp(2rem, 5vw, 2.75rem);
  margin-bottom: 0.5rem;
  text-align: center;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.gold-rule {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 1rem auto 2rem;
  border: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background-color var(--transition), border-color var(--transition);
}

.btn:hover,
.btn:focus {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-900);
}

.btn-primary:hover,
.btn-primary:focus {
  background: var(--gold-light);
  color: var(--navy-900);
}

.btn-outline {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold);
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--gold);
  color: var(--navy-900);
}

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.5px;
}

.brand-tagline {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 1px;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  cursor: pointer;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.nav-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--navy-800);
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
  flex-direction: column;
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

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

.nav-menu a {
  display: block;
  padding: 1rem 4%;
  color: var(--text-light);
  font-weight: 500;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav-menu a.active,
.nav-menu a:hover,
.nav-menu a:focus {
  color: var(--gold);
  background: rgba(212, 175, 55, 0.08);
  text-decoration: none;
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 0;
  overflow: hidden;
  background: url('/static/images/hero.jpg') center center / cover no-repeat;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 40, 0.72);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding: 0 4%;
}

.hero-emblem {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.5rem;
}

.hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-style: italic;
  color: var(--gold-light);
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-inline: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* Feature cards */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition), background-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.06);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  color: var(--gold);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
}

/* Mission banner */
.mission-banner {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-600) 100%);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  margin-top: 1rem;
}

.mission-banner h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 1rem;
}

.mission-banner p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 760px;
  margin: 0 auto;
  line-height: 1.75;
}

/* About page */
.founder-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 3rem;
}

.founder-photo {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
  border-radius: var(--radius);
  border: 3px solid var(--gold);
}

.founder-text h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin-bottom: 0.5rem;
}

.founder-role {
  color: var(--gold-light);
  font-style: italic;
  margin-bottom: 1rem;
  font-family: var(--font-heading);
}

/* Books page */
.books-intro {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.books-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.book-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  padding: 1.75rem;
  align-items: center;
}

.book-cover {
  width: 100%;
  max-width: 220px;
  margin-inline: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid rgba(212, 175, 55, 0.25);
}

.book-info h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.book-meta {
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.book-info p {
  color: var(--text-muted);
}

.book-alt-view {
  margin: 1.5rem 0 0;
  padding: 0;
}

.book-alt-view img {
  width: 100%;
  max-width: 160px;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: var(--shadow);
}

.book-alt-view figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.pen-motif {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}

.pen-motif img {
  width: 80px;
  height: 80px;
  opacity: 0.85;
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact-info {
  display: grid;
  gap: 1.5rem;
}

.contact-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.contact-card h3 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.contact-card a {
  font-size: 1.1rem;
  font-weight: 500;
}

.contact-form {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(212, 175, 55, 0.18);
  border-radius: var(--radius);
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--gold-light);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--navy-900);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius);
  color: var(--text-light);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

.success-message {
  background: rgba(212, 175, 55, 0.12);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
}

.note {
  background: rgba(212, 175, 55, 0.08);
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: width var(--transition), border-radius var(--transition), gap var(--transition);
  overflow: hidden;
  text-decoration: none;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.whatsapp-label {
  max-width: 0;
  opacity: 0;
  white-space: nowrap;
  font-weight: 600;
  font-size: 0.9rem;
  transition: max-width var(--transition), opacity var(--transition);
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  width: auto;
  padding: 0 1.25rem 0 1rem;
  border-radius: 999px;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
}

.whatsapp-float:hover .whatsapp-label,
.whatsapp-float:focus .whatsapp-label {
  max-width: 120px;
  opacity: 1;
}

/* Footer */
.site-footer {
  background: var(--navy-800);
  border-top: 1px solid rgba(212, 175, 55, 0.15);
  padding-top: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.footer-brand,
.footer-contact,
.footer-nav {
  text-align: center;
}

.footer-logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
}

.footer-slogan {
  font-family: var(--font-heading);
  font-style: italic;
  color: var(--gold-light);
  font-size: 1.1rem;
}

.footer-contact h3,
.footer-nav h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  color: var(--gold);
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav li {
  margin-bottom: 0.35rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Utility */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Desktop */
@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }

  .nav-menu {
    position: static;
    display: flex !important;
    flex-direction: row;
    background: transparent;
    border: none;
    gap: 0.5rem;
  }

  .nav-menu a {
    border: none;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
  }

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

  .founder-card {
    grid-template-columns: 280px 1fr;
    padding: 3rem;
  }

  .founder-photo {
    max-width: none;
    margin: 0;
  }

  .book-card {
    grid-template-columns: 200px 1fr;
  }

  .book-cover {
    max-width: none;
    margin: 0;
  }

  .contact-grid {
    grid-template-columns: 1fr 1.5fr;
  }

  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    text-align: left;
  }

  .footer-brand,
  .footer-contact,
  .footer-nav {
    text-align: left;
  }

  .footer-logo {
    margin: 0 0 1rem;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
