/*
Theme Name: Blocksy Child
Theme URI: https://www.surakarta.pro/
Description: Tema Modern Blocksy Child untuk surakarta.pro - Direktori Jasa & Kebutuhan Bisnis Solo Raya. Dilengkapi tipografi Plus Jakarta Sans, standar aksesibilitas WCAG AA, dan optimasi mobile responsif.
Author: surakarta.pro
Author URI: https://www.surakarta.pro/
Template: blocksy
Version: 1.3.0
Text Domain: blocksy-child
*/

/* ==========================================================================
   1. GLOBAL DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --theme-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Primary Palette */
  --theme-palette-color-1: #0284c7; /* Sky 600 - Primary Brand Accent */
  --theme-palette-color-2: #0369a1; /* Sky 700 - Hover / Active */
  --theme-palette-color-3: #334155; /* Slate 700 - Body Text */
  --theme-palette-color-4: #0f172a; /* Slate 900 - Headings */
  --theme-palette-color-5: #cbd5e1; /* Slate 300 - Borders */
  --theme-palette-color-6: #f8fafc; /* Slate 50 - Canvas Light */
  --theme-palette-color-7: #ffffff; /* White - Site Background */
  --theme-palette-color-8: #ffffff; /* White - Card Background */

  /* Semantic UI Tokens */
  --theme-text-color: #334155;
  --theme-headings-color: #0f172a;
  --theme-heading-color: #0f172a;
  --theme-link-initial-color: #0284c7;
  --theme-link-hover-color: #0369a1;
  --theme-border-color: #cbd5e1;

  --sp-radius-sm: 8px;
  --sp-radius-md: 12px;
  --sp-radius-lg: 16px;
  --sp-shadow-card: 0 2px 8px -1px rgba(15, 23, 42, 0.05), 0 1px 3px -1px rgba(15, 23, 42, 0.03);
  --sp-shadow-hover: 0 10px 20px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --sp-tap-target-min: 48px;
}

body {
  font-family: var(--theme-font-family) !important;
  color: #334155 !important;
  background-color: #ffffff !important;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.site-title,
.entry-title,
.page-title,
.entry-header .page-title,
.hero-section .page-title {
  font-family: var(--theme-font-family) !important;
  color: #0f172a !important;
  letter-spacing: -0.025em;
  font-weight: 700;
}

p, li, dt, dd {
  color: #334155;
}

strong, b {
  color: #0f172a;
  font-weight: 700;
}

/* ==========================================================================
   2. HEADER & BRANDING
   ========================================================================== */
.ct-header {
  border-bottom: 1px solid #e2e8f0;
  background: #ffffff;
}

.site-title a {
  font-weight: 800 !important;
  font-size: 1.35rem !important;
  letter-spacing: -0.03em !important;
  color: #0f172a !important;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.site-title a::after {
  content: '';
  display: inline-block;
  width: 7px;
  height: 7px;
  background-color: #0284c7;
  border-radius: 50%;
}

.site-description {
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.ct-header [data-id="menu"] .menu > li > a {
  font-size: 0.925rem;
  font-weight: 600;
  color: #475569;
  padding: 0.65rem 0.9rem;
  border-radius: var(--sp-radius-sm);
  transition: all 0.2s ease;
}

.ct-header [data-id="menu"] .menu > li > a:hover,
.ct-header [data-id="menu"] .menu > li.current-menu-item > a {
  color: #0284c7;
  background-color: rgba(2, 132, 199, 0.06);
}

.ct-header-trigger {
  min-width: var(--sp-tap-target-min);
  min-height: var(--sp-tap-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--sp-radius-sm);
  color: #0f172a;
}

.ct-panel.ct-drawer {
  background-color: #ffffff !important;
}

.ct-panel-inner {
  padding: 1.5rem 1.25rem;
}

.ct-drawer-close {
  min-width: var(--sp-tap-target-min);
  min-height: var(--sp-tap-target-min);
}

.ct-panel [data-id="mobile-menu"] .menu > li > a {
  min-height: var(--sp-tap-target-min);
  display: flex;
  align-items: center;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
  padding: 0.75rem 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

/* ==========================================================================
   3. PAGE TITLE & LANDING PAGE CLEAN CANVAS RESET
   ========================================================================== */
/* Hide redundant page hero / entry-header on all pages */
.page .hero-section,
.page .entry-header:has(.page-title) {
  display: none !important;
}

.page .site-main > .ct-container-full,
.page .site-main > [class*="ct-container"] {
  padding-top: 0 !important;
}

.page .entry-content:has(.sb6-wrap),
.page .entry-content:has(> article),
.page .entry-content:has(> style) {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.sb6-wrap {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

.sb6-wrap,
.sb6-wrap * {
  font-family: var(--theme-font-family) !important;
}

/* ==========================================================================
   4. ARTICLE & CONTENT READABILITY (GUTENBERG & BLOG)
   ========================================================================== */
.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155 !important;
}

.entry-content p {
  color: #334155 !important;
  margin-bottom: 1.4rem;
}

.entry-content h2 {
  color: #0f172a !important;
  font-size: 1.75rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.entry-content h3 {
  color: #0f172a !important;
  font-size: 1.35rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
}

.entry-content ul,
.entry-content ol {
  padding-left: 1.4rem;
  margin-bottom: 1.5rem;
}

.entry-content li {
  color: #334155 !important;
  margin-bottom: 0.5rem;
}

.entry-content a {
  color: #0284c7;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.entry-content a:hover {
  color: #0369a1;
}

.entry-content img,
.wp-block-image img {
  border-radius: var(--sp-radius-md);
  height: auto;
  max-width: 100%;
}

/* ==========================================================================
   5. TABLE VISIBILITY & LOKER BOX STYLING
   ========================================================================== */
.loker-box {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px;
  box-shadow: var(--sp-shadow-card);
  margin-bottom: 2rem;
}

.entry-content table,
.loker-box table,
table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 24px 0 !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
  overflow: hidden !important;
}

.entry-content table tr,
.loker-box table tr,
table tr {
  border-bottom: 1px solid #e2e8f0 !important;
  transition: background-color 0.15s ease;
}

.entry-content table tr:nth-child(even),
.loker-box table tr:nth-child(even),
table tr:nth-child(even) {
  background-color: #f8fafc !important;
}

.entry-content table tr:hover,
.loker-box table tr:hover,
table tr:hover {
  background-color: #f1f5f9 !important;
}

.entry-content table tr:last-child,
.loker-box table tr:last-child,
table tr:last-child {
  border-bottom: none !important;
}

.entry-content table td,
.loker-box table td,
table td {
  padding: 13px 18px !important;
  color: #1e293b !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.entry-content table td:first-child,
.loker-box table td:first-child,
table td:first-child {
  font-weight: 700 !important;
  color: #0f172a !important;
  width: 32% !important;
  background-color: rgba(248, 250, 252, 0.9) !important;
  border-right: 1.5px solid #cbd5e1 !important;
}

.entry-content table td:last-child,
.loker-box table td:last-child,
table td:last-child {
  color: #334155 !important;
}

.entry-content table th,
.loker-box table th,
table th {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
  padding: 14px 18px !important;
  text-align: left !important;
  border-bottom: 1.5px solid #cbd5e1 !important;
}

.wp-block-table {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ==========================================================================
   6. ARCHIVES & POST CARDS
   ========================================================================== */
.entries .entry-card,
.ct-posts-shortcode .entry-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--sp-radius-md);
  box-shadow: var(--sp-shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.entries .entry-card:hover,
.ct-posts-shortcode .entry-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-hover);
}

.entry-card .entry-title a {
  color: #0f172a !important;
  text-decoration: none;
  font-weight: 700;
  transition: color 0.15s ease;
}

.entry-card .entry-title a:hover {
  color: #0284c7 !important;
}

/* ==========================================================================
   7. BUTTONS & ACCESSIBILITY (TAP TARGETS)
   ========================================================================== */
.entry-button,
.wp-block-button__link,
.btn,
.button,
button[type="submit"] {
  min-height: var(--sp-tap-target-min);
  padding: 0.75rem 1.5rem;
  border-radius: var(--sp-radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-whatsapp {
  background-color: #16a34a !important;
  color: #ffffff !important;
}

.btn-whatsapp:hover {
  background-color: #15803d !important;
}

/* ==========================================================================
   8. FOOTER CLEANUP
   ========================================================================== */
.ct-footer {
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding-top: 1.5rem;
}

.ct-footer [data-id="menu"] .menu > li > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
  padding: 0.4rem 0.75rem;
  transition: color 0.15s ease;
}

.ct-footer [data-id="menu"] .menu > li > a:hover {
  color: #0284c7;
}

.ct-footer [data-id="copyright"] {
  font-size: 0.85rem;
  color: #64748b;
}

.ct-back-to-top {
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}
