/* ==========================================================================
   _WARGASEKITAR — Main Design System & Stylesheet
   Felix Kris Alfian, S.Fil., M.Phil.
   ========================================================================== */

/* --- 1. CSS Custom Properties / Variables --- */
:root {
  /* Primary Theme Palette */
  --bg-primary: #FAF8F5;
  --bg-secondary: #F3EFE7;
  --bg-surface: #FFFFFF;
  --bg-dark: #16241D;
  --bg-dark-surface: #1E3128;
  
  --color-text-primary: #1A1E1C;
  --color-text-secondary: #525955;
  --color-text-muted: #7D8581;
  --color-text-light: #F7F5F0;
  
  --color-forest: #1E3A2F;
  --color-forest-dark: #12241C;
  --color-forest-light: #2D5444;
  --color-earth: #7C5335;
  --color-earth-dark: #5C3D26;
  --color-gold: #D4AF37;
  --color-gold-dark: #B59124;
  --color-gold-light: #F5E8BE;
  
  /* 6 Role Accent Colors */
  --role-pengajar: #1D4ED8;
  --role-pengajar-bg: #EFF6FF;
  --role-pengajar-border: #BFDBFE;
  
  --role-mc: #D97706;
  --role-mc-bg: #FFFBEB;
  --role-mc-border: #FDE68A;
  
  --role-koor: #991B1B;
  --role-koor-bg: #FEF2F2;
  --role-koor-border: #FECACA;
  
  --role-speaker: #C2410C;
  --role-speaker-bg: #FFF7ED;
  --role-speaker-border: #FED7AA;
  
  --role-penulis: #166534;
  --role-penulis-bg: #F0FDF4;
  --role-penulis-border: #BBF7D0;
  
  --role-dukuh: #854D0E;
  --role-dukuh-bg: #FEFCE8;
  --role-dukuh-border: #FEF08A;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, Cambria, 'Times New Roman', serif;

  /* Elevations & Radii */
  --shadow-sm: 0 2px 8px rgba(22, 36, 29, 0.04);
  --shadow-md: 0 8px 24px rgba(22, 36, 29, 0.08);
  --shadow-lg: 0 16px 40px rgba(22, 36, 29, 0.12);
  --shadow-hover: 0 20px 48px rgba(22, 36, 29, 0.16);
  --shadow-gold: 0 10px 30px rgba(212, 175, 55, 0.25);
  
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 9999px;

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 2. Base & Typography --- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text-primary);
  background-color: var(--bg-primary);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--color-text-primary);
  line-height: 1.25;
}

.font-serif {
  font-family: var(--font-serif);
}

p {
  margin-bottom: 1.25rem;
  color: var(--color-text-secondary);
}

a {
  color: var(--color-forest);
  text-decoration: none;
  transition: all var(--transition-fast);
}

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

/* Subtle Cultural Pattern Motif */
.bg-jawa-motif {
  background-color: var(--bg-primary);
  background-image: radial-gradient(rgba(124, 83, 53, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- 3. Header & Navbar --- */
.site-navbar {
  background: rgba(250, 248, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(124, 83, 53, 0.12);
  transition: all var(--transition-normal);
  padding: 0.9rem 0;
  z-index: 1030;
}

.site-navbar.scrolled {
  box-shadow: var(--shadow-md);
  padding: 0.65rem 0;
  background: rgba(255, 255, 255, 0.97);
}

.brand-logo {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--color-forest);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.brand-logo .brand-underscore {
  color: var(--color-gold);
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.9rem !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.nav-link:hover, .nav-link.active {
  color: var(--color-forest);
  background: rgba(30, 58, 47, 0.06);
}

.dropdown-menu-custom {
  border: 1px solid rgba(124, 83, 53, 0.12);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  background: var(--bg-surface);
  min-width: 260px;
}

.dropdown-item-role {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  color: var(--color-text-primary);
  transition: all var(--transition-fast);
}

.dropdown-item-role:hover {
  background: var(--bg-secondary);
  transform: translateX(4px);
}

.dropdown-item-role .role-icon-box {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 1.1rem;
}

/* Button Styles */
.btn-gold {
  background: linear-gradient(135deg, #D4AF37 0%, #C59B27 100%);
  color: #1A1E1C;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.45rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #E5C365 0%, #D4AF37 100%);
  color: #16241D;
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold);
}

.btn-forest {
  background: var(--color-forest);
  color: #FFFFFF;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  padding: 0.7rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-forest:hover {
  background: var(--color-forest-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-forest {
  background: transparent;
  color: var(--color-forest);
  font-weight: 600;
  border: 1.5px solid var(--color-forest);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.4rem;
  transition: all var(--transition-fast);
}

.btn-outline-forest:hover {
  background: var(--color-forest);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* --- 4. Hero Section & Orbital Roles (Homepage) --- */
.hero-section {
  position: relative;
  padding: 3rem 0 5rem;
  overflow: hidden;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.4rem 1rem;
  background: rgba(212, 175, 55, 0.14);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-earth-dark);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-size: 2.75rem;
  font-weight: 800;
  color: var(--color-forest);
  letter-spacing: -0.75px;
  line-height: 1.18;
  margin-bottom: 0.75rem;
}

.hero-subheadline {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-earth);
  margin-bottom: 0.5rem;
}

.hero-question-prompt {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-style: italic;
  color: var(--color-forest-dark);
  margin-top: 1.2rem;
  position: relative;
  display: inline-block;
}

.hero-question-prompt::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--color-gold);
}

/* Central Stage & Orbital Container */
.hero-orbital-wrapper {
  position: relative;
  min-height: 640px;
  margin-top: 2.5rem;
}

/* Central Felix Portrait */
.central-portrait-stage {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 360px;
  margin: 0 auto;
}

.portrait-frame {
  position: relative;
  display: inline-block;
  border-radius: var(--radius-xl);
  padding: 12px;
  background: linear-gradient(145deg, #FFFFFF, var(--bg-secondary));
  box-shadow: 0 20px 50px rgba(30, 58, 47, 0.16);
  border: 2px solid rgba(212, 175, 55, 0.35);
  transition: transform var(--transition-smooth);
}

.portrait-frame:hover {
  transform: scale(1.015);
}

.portrait-img {
  width: 100%;
  max-width: 320px;
  height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.portrait-tag-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-forest-dark);
  color: var(--color-text-light);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 700;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-gold);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
}

.portrait-tag-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  display: inline-block;
}

/* Custom Role Sticker Cards (Desktop Orbital) */
.role-card-sticker {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1.5px solid rgba(124, 83, 53, 0.15);
  transition: all var(--transition-normal);
  text-align: left;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}

.role-card-sticker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: var(--card-accent, var(--color-forest));
  transition: width var(--transition-fast);
}

.role-card-sticker:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: var(--shadow-hover);
  border-color: var(--card-accent, var(--color-gold));
  color: inherit;
}

.role-card-sticker:hover::before {
  width: 8px;
}

.sticker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.sticker-emoji-badge {
  font-size: 1.4rem;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--card-badge-bg, rgba(30, 58, 47, 0.08));
}

.sticker-price-tag {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--bg-secondary);
  color: var(--color-text-secondary);
}

.sticker-brand {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.3px;
}

.sticker-role-name {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--card-accent, var(--color-forest));
  margin-bottom: 0.4rem;
}

.sticker-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
  margin-bottom: 0.85rem;
}

.sticker-cta {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--card-accent, var(--color-forest));
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: auto;
  transition: gap var(--transition-fast);
}

.role-card-sticker:hover .sticker-cta {
  gap: 9px;
}

/* Orbital Desktop Coordinates */
@media (min-width: 992px) {
  .orbital-col-left, .orbital-col-right {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1.5rem;
  }
}

/* Mobile & Tablet Stacking for Roles */
@media (max-width: 991.98px) {
  .hero-headline {
    font-size: 2.15rem;
  }
  
  .hero-orbital-wrapper {
    min-height: auto;
  }
  
  .portrait-img {
    height: 360px;
    max-width: 260px;
  }
  
  .mobile-roles-grid {
    margin-top: 3rem;
  }
}

/* --- 5. Section "Siapa Saya?" --- */
.section-about-snip {
  padding: 5rem 0;
  background: var(--bg-surface);
  border-top: 1px solid rgba(124, 83, 53, 0.1);
  border-bottom: 1px solid rgba(124, 83, 53, 0.1);
}

.quote-editorial {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.55;
  color: var(--color-forest);
  border-left: 3px solid var(--color-gold);
  padding-left: 1.5rem;
  margin-bottom: 1.75rem;
}

.pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.45rem 0.95rem;
  background: var(--bg-primary);
  border: 1px solid rgba(124, 83, 53, 0.15);
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-right: 0.5rem;
  margin-bottom: 0.6rem;
}

/* --- 6. Section Portfolio Snapshot --- */
.section-portfolio-home {
  padding: 5rem 0;
  background: var(--bg-primary);
}

.portfolio-card-preview {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(124, 83, 53, 0.12);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.portfolio-card-preview:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.portfolio-img-box {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.portfolio-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.portfolio-card-preview:hover .portfolio-img-box img {
  transform: scale(1.05);
}

.portfolio-role-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(22, 36, 29, 0.85);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  backdrop-filter: blur(4px);
}

.portfolio-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.portfolio-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.portfolio-link-out {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-earth);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* --- 7. Section Buku (Editorial Library) --- */
.section-books-home {
  padding: 5rem 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(124, 83, 53, 0.1);
}

.book-card-editorial {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(124, 83, 53, 0.15);
  transition: all var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.book-card-editorial:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.book-cover-wrap {
  text-align: center;
  margin-bottom: 1.25rem;
  position: relative;
}

.book-cover-img {
  width: 100%;
  max-width: 200px;
  height: 270px;
  object-fit: cover;
  border-radius: 6px;
  box-shadow: -6px 8px 18px rgba(0, 0, 0, 0.22);
  transition: transform var(--transition-smooth);
}

.book-card-editorial:hover .book-cover-img {
  transform: rotate(-1deg) scale(1.03);
}

.book-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-forest-dark);
  margin-bottom: 0.25rem;
}

.book-subtitle {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-earth);
  margin-bottom: 0.75rem;
}

.book-desc {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
}

.book-btn-buy {
  margin-top: auto;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-pill);
  background: var(--color-forest);
  color: #FFFFFF;
}

.book-btn-buy:hover {
  background: var(--color-forest-dark);
  color: #FFFFFF;
}

/* --- Horizontal Books Carousel / Slider --- */
.books-slider-container {
  position: relative;
  width: 100%;
}

.books-slider-track {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 0.75rem 0.25rem 1.5rem 0.25rem;
  scrollbar-width: none;
}

.books-slider-track::-webkit-scrollbar {
  display: none;
}

.book-slider-item {
  flex: 0 0 calc(33.333% - 1rem);
  max-width: calc(33.333% - 1rem);
  min-width: 300px;
  scroll-snap-align: start;
}

@media (max-width: 991.98px) {
  .book-slider-item {
    flex: 0 0 calc(50% - 0.75rem);
    max-width: calc(50% - 0.75rem);
    min-width: 270px;
  }
}

@media (max-width: 575.98px) {
  .book-slider-item {
    flex: 0 0 88%;
    max-width: 88%;
    min-width: 260px;
  }
}

.book-nav-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #16241D;
  color: #FFFFFF;
  border: 1px solid rgba(212, 175, 55, 0.5);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.book-nav-btn:hover {
  background: #D4AF37;
  color: #16241D;
  transform: scale(1.08);
}

/* --- 8. Section Dukuh --- */
.section-dukuh-home {
  padding: 5rem 0;
  background: var(--bg-surface);
}

.dukuh-feature-box {
  background: linear-gradient(135deg, #FAF6EE 0%, #F4ECE1 100%);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem;
  border: 1px solid rgba(133, 77, 14, 0.2);
  box-shadow: var(--shadow-sm);
}

/* --- 9. Section Booking CTA Banner --- */
.section-booking-cta {
  padding: 4.5rem 0;
  background: linear-gradient(135deg, #16241D 0%, #1E3A2F 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.section-booking-cta::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, transparent 70%);
}

/* --- 10. Footer --- */
.site-footer {
  background: #111A15;
  color: #D1D5DB;
  padding: 4rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -0.5px;
}

.footer-link {
  color: #9CA3AF;
  font-size: 0.9rem;
  display: block;
  margin-bottom: 0.5rem;
  transition: all var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-gold);
  transform: translateX(4px);
}

.footer-social-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
}

.footer-social-icon:hover {
  background: var(--color-gold);
  color: #111A15;
  transform: translateY(-3px);
}

/* --- 11. Floating WhatsApp Button --- */
.floating-wa-btn {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 1050;
  transition: all var(--transition-normal);
  text-decoration: none;
}

.floating-wa-btn:hover {
  transform: scale(1.1) translateY(-3px);
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.6);
}

.floating-wa-btn::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: wa-pulse 2s infinite;
  opacity: 0.7;
}

@keyframes wa-pulse {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}
