/*
Theme Name: Indofix Blog Theme Clean Install
Theme URI: https://blog.indofix.id
Author: Indofix.id Technical Team
Author URI: https://indofix.id
Description: Tema WordPress profesional, simpel, dan fast-loading khusus untuk blog.indofix.id (Jasa Service Printer, Service Laptop, dan Service Mesin Photocopy).
Version: 2.2.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: indofix-blog
Tags: blog, custom-menu, featured-images, flexible-header, full-width-template, left-sidebar, right-sidebar, theme-options, translation-ready, two-columns, service-business, mobile-friendly
*/

/* ==========================================================================
   CSS VARIABLES & DESIGN SYSTEM
   ========================================================================== */
:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --secondary: #0f172a;
  --accent-wa: #25d366;
  --accent-wa-hover: #1da851;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --border-color: #e2e8f0;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a:hover {
  color: var(--primary-hover);
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-branding img {
  max-height: 48px;
  width: auto;
}

.site-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--secondary);
  letter-spacing: -0.5px;
}

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

.site-description {
  font-size: 0.825rem;
  color: var(--text-muted);
  display: block;
}

.main-navigation ul {
  display: flex;
  list-style: none;
  gap: 1.75rem;
  align-items: center;
}

.main-navigation a {
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a {
  color: var(--primary);
  background: var(--primary-light);
}

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header-wa {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-wa);
  color: #ffffff !important;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.9rem;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.3);
}

.btn-header-wa:hover {
  background: var(--accent-wa-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.4);
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--secondary);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   HERO BANNER & SERVICE CARDS SECTION
   ========================================================================== */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 3.5rem 0 4rem;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(2, 132, 199, 0.25) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(2, 132, 199, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.4);
  color: #38bdf8;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 1.2rem;
  letter-spacing: -0.8px;
}

.hero-title span {
  color: #38bdf8;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.services-pills {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.service-pill-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition);
}

.service-pill-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.5);
}

.service-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  display: block;
}

.service-pill-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
}

.service-pill-desc {
  font-size: 0.85rem;
  color: #cbd5e1;
}

/* ==========================================================================
   LAYOUT STRUCTURE (MAIN + SIDEBAR)
   ========================================================================== */
.site-main-content {
  padding: 3.5rem 0;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
}

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--border-color);
}

.section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--secondary);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.85rem;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

/* ==========================================================================
   BLOG CARDS GRID
   ========================================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.post-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.post-thumbnail {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #e2e8f0;
}

.post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.post-card:hover .post-thumbnail img {
  transform: scale(1.05);
}

.post-category-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--primary);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.post-category-badge.cat-service-printer { background: #0284c7; }
.post-category-badge.cat-service-laptop { background: #7c3aed; }
.post-category-badge.cat-service-photocopy { background: #d97706; }

.post-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.post-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.post-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
  color: var(--secondary);
}

.post-card-title a {
  color: inherit;
}

.post-card-title a:hover {
  color: var(--primary);
}

.post-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.read-more-link {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.read-more-link:hover {
  gap: 10px;
}

/* ==========================================================================
   SIDEBAR WIDGETS
   ========================================================================== */
.widget {
  background: var(--bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--secondary);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary-light);
  position: relative;
}

.widget-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--primary);
}

/* Search Widget */
.search-form {
  display: flex;
  gap: 8px;
}

.search-form input[type="search"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  outline: none;
  font-family: inherit;
}

.search-form input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-light);
}

.search-form button {
  background: var(--primary);
  color: #ffffff;
  border: none;
  padding: 0 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 600;
}

.search-form button:hover {
  background: var(--primary-hover);
}

/* Service CTA Widget Banner */
.widget-service-cta {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  border: none;
  text-align: center;
  padding: 2rem 1.5rem;
}

.widget-service-cta .widget-title {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.2);
}

.widget-service-cta .widget-title::after {
  background: #38bdf8;
}

.widget-service-cta p {
  font-size: 0.9rem;
  color: #e0f2fe;
  margin-bottom: 1.5rem;
}

.btn-cta-sidebar {
  display: inline-block;
  width: 100%;
  background: var(--accent-wa);
  color: #ffffff !important;
  font-weight: 700;
  padding: 12px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
}

.btn-cta-sidebar:hover {
  background: var(--accent-wa-hover);
  transform: translateY(-2px);
}

/* Categories & Recent Posts Widget */
.widget ul {
  list-style: none;
}

.widget ul li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.widget ul li:last-child {
  border-bottom: none;
}

.widget ul li a {
  color: var(--text-main);
  font-weight: 500;
}

.widget ul li a:hover {
  color: var(--primary);
}

/* ==========================================================================
   SINGLE POST DETAIL PAGE
   ========================================================================== */
.single-post-header {
  margin-bottom: 2rem;
}

.single-post-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--secondary);
  line-height: 1.3;
  margin: 0.75rem 0 1rem;
}

.single-post-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.single-featured-image {
  margin-bottom: 2rem;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.entry-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
}

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

.entry-content h2, 
.entry-content h3, 
.entry-content h4 {
  color: var(--secondary);
  font-weight: 800;
  margin: 2rem 0 1rem;
  line-height: 1.3;
}

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

.entry-content li {
  margin-bottom: 0.5rem;
}

.entry-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-light);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.5rem 0;
  font-style: italic;
  color: #0369a1;
}

/* Single Post Service Booking Banner */
.single-service-box {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px dashed var(--primary);
  border-radius: var(--radius-md);
  padding: 2rem;
  margin: 3rem 0;
  text-align: center;
}

.single-service-box h3 {
  color: var(--secondary);
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.single-service-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}

.single-service-box .btn-wa-large {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-wa);
  color: #ffffff !important;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
}

.single-service-box .btn-wa-large:hover {
  background: var(--accent-wa-hover);
  transform: translateY(-2px);
}

/* Share Buttons */
.share-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2rem 0;
  padding: 1rem 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.share-label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--secondary);
}

.share-btn {
  padding: 6px 14px;
  border-radius: 50px;
  color: #ffffff !important;
  font-size: 0.85rem;
  font-weight: 600;
}

.share-wa { background: #25d366; }
.share-fb { background: #1877f2; }
.share-tw { background: #1da1f2; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--secondary);
  color: #cbd5e1;
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

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

.footer-column h4 {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 1.25rem;
  position: relative;
}

.footer-column h4::after {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--primary);
  margin-top: 6px;
}

.footer-column p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

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

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

.footer-links a {
  color: #cbd5e1;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: #38bdf8;
  padding-left: 4px;
}

.contact-info-list {
  list-style: none;
}

.contact-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 0.8rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.85rem;
  color: #94a3b8;
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON WIDGET
   ========================================================================== */
.floating-wa-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background: var(--accent-wa);
  color: #ffffff !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.5);
  z-index: 9999;
  transition: var(--transition);
  animation: pulse-wa 2s infinite;
}

.wa-number-tag {
  position: absolute;
  right: 68px;
  background: #0f172a;
  color: #25d366;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 6px 14px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  white-space: nowrap;
  border: 1px solid rgba(37, 211, 102, 0.4);
  letter-spacing: 0.5px;
}

.floating-wa-btn:hover {
  background: var(--accent-wa-hover);
  transform: scale(1.08);
}

@keyframes pulse-wa {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Tooltip for WA Button (text supplied by the theme via --wa-tooltip) */
.floating-wa-btn::before {
  content: var(--wa-tooltip);
  position: absolute;
  right: 70px;
  background: var(--secondary);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.floating-wa-btn:hover::before {
  opacity: 1;
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination-nav {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
}

.pagination-nav .page-numbers {
  display: flex;
  gap: 6px;
  list-style: none;
}

.pagination-nav a, 
.pagination-nav span {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text-main);
}

.pagination-nav .current,
.pagination-nav a:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

/* Core Web Vitals Render Performance Optimization */
.post-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (MOBILE FRIENDLY & MAX PERFORMANCE)
   ========================================================================== */
@media (max-width: 992px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
  
  .services-pills {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .hero-title {
    font-size: clamp(1.75rem, 5vw, 2.5rem);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 70px;
  }

  .main-navigation {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-bottom: 2px solid var(--primary-light);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    padding: 1.25rem;
    z-index: 999;
  }

  .main-navigation.is-active {
    display: block;
    animation: fadeInDown 0.25s ease-out;
  }

  @keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .main-navigation ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .main-navigation a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    min-height: 48px;
    line-height: 24px;
    border-radius: var(--radius-sm);
  }

  .mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.6rem;
  }

  .posts-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-section {
    padding: 2.5rem 0 3rem;
  }
  
  .single-post-title {
    font-size: clamp(1.5rem, 4.5vw, 2.2rem);
  }

  .single-post-wrapper {
    padding: 1.5rem !important;
  }
  
  .floating-wa-btn {
    bottom: 24px;
    right: 20px;
    width: 56px;
    height: 56px;
    font-size: 28px;
  }

  .wa-number-tag {
    right: 64px;
    font-size: 0.8rem;
    padding: 5px 12px;
  }
}

@media (max-width: 480px) {
  .wa-number-tag {
    display: none; /* Auto-hide text tag on ultra-narrow screens to prevent overlap, tooltip still active */
  }
  
  .btn-header-wa span {
    display: inline;
  }

  .single-service-box {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   INDOfIX BLOG MULTIPAGE EXTENSIONS (v2)
   ========================================================================== */

/* Accessible focus and skip navigation */
:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.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,
.skip-link:focus {
  background: #ffffff;
  border-radius: var(--radius-sm);
  clip: auto !important;
  clip-path: none;
  color: var(--secondary);
  display: block;
  font-weight: 700;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed !important;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

html {
  scroll-padding-top: 96px;
}

body {
  overflow-x: hidden;
}

.site-branding-text {
  min-width: 0;
}

.site-logo,
.custom-logo-link {
  flex: 0 0 auto;
}

.custom-logo {
  max-width: min(220px, 34vw);
  max-height: 48px;
  width: auto;
  object-fit: contain;
}

.header-cta {
  flex: 0 0 auto;
}

/* Desktop dropdown menus keep category pages easy to reach. */
.main-navigation > ul,
.main-navigation > div > ul {
  position: relative;
}

.main-navigation li {
  position: relative;
}

.main-navigation ul ul {
  display: block;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: -9999px;
  min-width: 220px;
  padding: 0.5rem;
  gap: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
}

.main-navigation ul ul li {
  display: block;
  width: 100%;
}

.main-navigation ul ul a {
  display: block;
  width: 100%;
  white-space: nowrap;
}

.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
  left: 0;
}

.main-navigation ul ul ul {
  top: -0.5rem;
  left: -9999px;
}

.main-navigation ul ul li:hover > ul,
.main-navigation ul ul li:focus-within > ul {
  left: calc(100% + 0.35rem);
}

/* Homepage calls to action */
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  text-align: center;
  transition: var(--transition);
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(2, 132, 199, 0.28);
}

.btn-primary:hover {
  background: #38bdf8;
  color: #0f172a;
  transform: translateY(-2px);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: #ffffff;
  color: var(--secondary);
  transform: translateY(-2px);
}

.service-pill-card {
  display: flex;
  flex-direction: column;
  color: inherit;
}

.service-pill-card:hover,
.service-pill-card:focus-visible {
  color: #ffffff;
}

.post-thumbnail {
  display: block;
}

.post-thumbnail-placeholder {
  display: grid;
  height: 100%;
  place-items: center;
  background: linear-gradient(135deg, #0f172a, #0284c7);
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.post-card-category {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.post-card-category:hover {
  color: var(--primary);
}

/* Archive/category/page hierarchy */
.breadcrumbs {
  margin-bottom: 1.5rem;
  overflow-x: auto;
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  list-style: none;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.breadcrumbs li + li::before {
  content: '/';
  color: #94a3b8;
  margin-right: 0.65rem;
}

.breadcrumbs a {
  color: var(--text-muted);
}

.breadcrumbs a:hover,
.breadcrumbs [aria-current='page'] {
  color: var(--primary);
}

.archive-header {
  margin-bottom: 2rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.category-archive-header {
  margin-bottom: 2.5rem;
}

.archive-kicker {
  display: inline-block;
  margin-bottom: 0.5rem;
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-title,
.page-title {
  margin: 0;
  color: var(--secondary);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.archive-description {
  max-width: 760px;
  margin: 0.85rem 0 0;
  color: var(--text-muted);
  font-size: 1rem;
}

.archive-description p:last-child {
  margin-bottom: 0;
}

.posts-archive,
.single-post-column,
.page-column,
.site-main {
  min-width: 0;
}

.page-card,
.single-post-wrapper {
  padding: clamp(1.25rem, 3vw, 2.25rem);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.page-card .page-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
}

.container-narrow {
  max-width: 960px;
}

.front-page-editorial .page-card {
  box-shadow: var(--shadow-sm);
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.entry-content .wp-block-button a,
.entry-content a.btn-primary,
.entry-content a.btn-secondary {
  text-decoration: none;
}

.entry-content table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

.entry-content th,
.entry-content td {
  min-width: 120px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border-color);
}

.entry-content pre {
  max-width: 100%;
  overflow-x: auto;
  padding: 1rem;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #e2e8f0;
}

.entry-content iframe,
.entry-content video,
.entry-content embed {
  max-width: 100%;
}

.entry-footer,
.single-post-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.post-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.post-tags a {
  padding: 0.25rem 0.6rem;
  background: var(--primary-light);
  border-radius: 999px;
  font-size: 0.8rem;
}

/* Author and empty states */
.author-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.author-avatar {
  flex: 0 0 auto;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: var(--shadow-md);
}

.empty-state {
  grid-column: 1 / -1;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state h1,
.empty-state h2 {
  margin-bottom: 0.6rem;
  color: var(--secondary);
}

.empty-state p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.empty-state .search-form {
  max-width: 520px;
  margin: 0 auto 1.25rem;
}

.error-state .btn-primary {
  margin-top: 0.25rem;
}

.related-posts {
  margin-top: 3rem;
}

.related-posts .section-title {
  margin-bottom: 1.5rem;
}

.single-category-badge {
  position: static;
  display: inline-flex;
  margin-bottom: 0.7rem;
  text-transform: none;
}

/* Comment form and native form controls */
.comments-area {
  margin-top: 3rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.comments-title {
  margin-bottom: 1.25rem;
  color: var(--secondary);
  font-size: 1.35rem;
}

.comment-list {
  margin: 0 0 2rem;
  padding-left: 1.25rem;
}

.comment-list .comment {
  margin-bottom: 1rem;
}

.comment-list .comment-body {
  padding: 1rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

.comment-form p {
  margin-bottom: 1rem;
}

.comment-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 700;
}

.comment-form input:not([type='submit']),
.comment-form textarea,
.comment-form select {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font: inherit;
}

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

.comment-form .submit {
  border: 0;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.comment-form .submit:hover {
  background: var(--primary-hover);
}

/* WordPress widgets inside the dark footer should remain readable. */
.site-footer .widget {
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.site-footer .widget-title {
  color: #ffffff;
  border-bottom-color: rgba(255, 255, 255, 0.18);
}

.site-footer .widget ul li {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.site-footer .widget ul li a {
  color: #cbd5e1;
}

.site-footer .widget ul li a:hover {
  color: #38bdf8;
}

.footer-links {
  padding: 0;
}

.footer-links li {
  display: block;
}

.footer-links li a {
  color: #cbd5e1;
}

/* Pagination output contains li wrappers around WordPress links. */
.pagination-nav .page-numbers {
  flex-wrap: wrap;
  justify-content: center;
  padding: 0;
  margin: 0;
}

.pagination-nav .page-numbers li {
  list-style: none;
}

/* Improve block editor/front-end media on small screens. */
.wp-block-image img,
.wp-block-cover,
.wp-block-embed,
.wp-block-table {
  max-width: 100%;
}

.alignwide {
  width: auto;
  max-width: calc(100% + 4rem);
  margin-right: -2rem;
  margin-left: -2rem;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 768px) {
  .main-navigation ul ul,
  .main-navigation ul ul ul {
    position: static;
    min-width: 0;
    margin: 0.25rem 0 0;
    padding: 0 0 0 0.75rem;
    border: 0;
    border-left: 2px solid var(--primary-light);
    border-radius: 0;
    box-shadow: none;
  }

  .main-navigation li:hover > ul,
  .main-navigation li:focus-within > ul {
    left: auto;
  }

  .header-cta .btn-header-wa {
    padding: 8px 11px;
    font-size: 0.82rem;
  }

  .hero-actions > * {
    flex: 1 1 210px;
  }

  .author-header {
    align-items: flex-start;
  }

  .alignwide {
    max-width: 100%;
    margin-right: 0;
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .container {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .site-branding {
    gap: 7px;
  }

  .site-title {
    font-size: 1.1rem;
  }

  .site-description {
    display: none;
  }

  .custom-logo {
    max-width: 110px;
    max-height: 40px;
  }

  .header-cta .btn-header-wa {
    min-width: 44px;
    padding: 8px 10px;
  }

  .header-cta .btn-header-wa span:last-child {
    display: none;
  }

  .mobile-menu-toggle {
    width: 44px;
    height: 44px;
    padding: 6px;
  }

  .author-header {
    flex-direction: column;
  }

  .author-avatar {
    width: 76px;
    height: 76px;
  }

  .share-buttons {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .share-label {
    flex-basis: 100%;
  }

  .single-service-box {
    margin-right: 0;
    margin-left: 0;
  }
}

/* ==========================================================================
   BUSINESS INFORMATION IN FOOTER
   ========================================================================== */
.footer-business-info {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-business-info h5 {
  margin: 0.85rem 0 0.25rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-business-info h5:first-child {
  margin-top: 0;
}

.footer-business-info p {
  margin-bottom: 0.75rem;
  color: #cbd5e1;
  font-size: 0.88rem;
  line-height: 1.55;
}

.footer-business-info strong {
  color: #ffffff;
}

/* ==========================================================================
   PROFESSIONAL HEADER AND FOOTER NAVIGATION
   ========================================================================== */
.header-inner {
  gap: 1.25rem;
}

.header-navigation-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
  min-width: 0;
  margin-left: auto;
}

.header-navigation-wrap .main-navigation {
  min-width: 0;
}

.header-navigation-wrap .main-navigation > ul,
.header-navigation-wrap .main-navigation > div > ul {
  justify-content: flex-end;
  gap: 0.25rem;
}

.header-navigation-wrap .main-navigation > ul > li > a,
.header-navigation-wrap .main-navigation > div > ul > li > a {
  padding-right: 0.7rem;
  padding-left: 0.7rem;
  font-size: 0.88rem;
  white-space: nowrap;
}

.header-navigation-wrap .mobile-menu-toggle {
  flex: 0 0 auto;
}

.footer-subheading {
  margin: 1.35rem 0 0.55rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
}

.footer-service-links {
  margin-top: 0;
}

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

@media (max-width: 1100px) and (min-width: 769px) {
  .header-navigation-wrap {
    gap: 0.35rem;
  }

  .header-navigation-wrap .main-navigation > ul > li > a,
  .header-navigation-wrap .main-navigation > div > ul > li > a {
    padding-right: 0.45rem;
    padding-left: 0.45rem;
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .header-navigation-wrap .main-navigation > ul,
  .header-navigation-wrap .main-navigation > div > ul {
    gap: 0.75rem;
  }

  .header-navigation-wrap .main-navigation > ul > li > a,
  .header-navigation-wrap .main-navigation > div > ul > li > a {
    padding: 12px 16px;
    font-size: 1rem;
  }
}
