/*
Theme Name: Njogja Fast
Theme URI: https://njogja.co.id/
Author: Tim Njogja EO & Technical SEO Lead
Author URI: https://njogja.co.id/
Description: Tema WordPress Native super cepat hasil kloning & translasi frontend React SPA njogja.co.id. Menghasilkan Server-Side Rendering (SSR) murni, 100% mempertahankan desain visual asli, bebas dari render-blocking React bundle, dan dioptimasi penuh untuk skor Google PageSpeed Insights > 95 serta On-Page SEO kelas atas.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: njogja-fast
License: Proprietary
*/

/* ==========================================================================
   CSS Reset & Accessibility Essentials
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0F172A;
  background-color: #FFFFFF;
}

/* Aksesibilitas: Skip link untuk keyboard navigation */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  background-color: #FFFFFF;
  clip: auto !important;
  clip-path: none;
  color: #C73412;
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  height: auto;
  left: 1rem;
  top: 1rem;
  padding: 0.875rem 1.25rem;
  text-decoration: none;
  width: auto;
  z-index: 100000;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border-radius: 0.375rem;
}

/* ==========================================================================
   Header Dropdown & Mega Menu Styles (Pure CSS + Accessible Focus)
   ========================================================================== */
.nav-dropdown-item {
  position: relative;
}

.nav-dropdown-panel {
  display: none;
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: 100%;
  padding-top: 0.5rem;
  z-index: 50;
  transition: opacity 0.15s ease-out, transform 0.15s ease-out;
  transform: translateY(4px);
}

.nav-dropdown-item:hover > .nav-dropdown-panel,
.nav-dropdown-item:focus-within > .nav-dropdown-panel {
  display: block;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-item:hover .nav-chevron,
.nav-dropdown-item:focus-within .nav-chevron {
  transform: rotate(180deg);
  color: #C73412;
}

.nav-chevron {
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Custom scrollbar for mega menu */
.nav-dropdown-panel ::-webkit-scrollbar {
  width: 5px;
}
.nav-dropdown-panel ::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}
.nav-dropdown-panel ::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
.nav-dropdown-panel ::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mega Menu Dedicated Width & Centering */
.mega-menu-panel {
  width: 760px !important;
  max-width: 90vw !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(4px) !important;
}

.nav-dropdown-item:hover > .mega-menu-panel,
.nav-dropdown-item:focus-within > .mega-menu-panel {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateX(-50%) translateY(0) !important;
}

/* Sembunyikan elemen floating button usang dari plugin eksternal */
.floating-buttons,
.smartlead-button,
.floating-whatsapp-button,
.floating-call-button,
.whatsapp-button {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* ==========================================================================
   WordPress Pagination Modern Fallback Styles
   ========================================================================== */
.navigation.pagination {
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid #E2E8F0;
  display: flex;
  justify-content: center;
}

.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.875rem;
  border-radius: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #334155;
  background-color: #FFFFFF;
  border: 1px solid #E2E8F0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.navigation.pagination .page-numbers:hover {
  color: #C73412;
  border-color: #C73412;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.navigation.pagination .page-numbers.current {
  background-color: #C73412;
  border-color: #C73412;
  color: #FFFFFF;
  cursor: default;
}

.navigation.pagination .page-numbers.dots {
  border: none;
  background: transparent;
  color: #94A3B8;
  cursor: default;
}

/* ==========================================================================
   Modern Typography & Layout Enhancements (Baseline text-wrap balance & pretty)
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

p, blockquote, .pretty-text {
  text-wrap: pretty;
}




