/* Tukangan service brand — selaras dengan app.tukangan.com */
:root {
  --brand: #FFCC00;
  --brand-dark: #E6B800;
  --brand-deep: #B88600;
  --brand-soft: #FFF8D6;
  --brand-shadow: #D4A017;
  --dark: #141414;
  --muted: #5C5C5C;
  --bg: #FFFDF5;
  --card: #fff;
  --line: #E8DFC4;
  --radius: 18px;
  --primary-color: var(--brand);
  --primary-hover: var(--brand-dark);
  --bg-primary: var(--bg);
  --bg-secondary: var(--brand-soft);
  --text-primary: var(--dark);
  --text-secondary: var(--muted);
  --nav-bg: var(--dark);
  --nav-text: var(--brand);
  --border-color: var(--line);
  --construction-yellow: var(--brand);
  --safety-orange: var(--brand-dark);
  --yellow-dark: var(--brand-deep);
  --orange-dark: var(--brand-deep);
}

body {
  background: var(--bg);
  color: var(--dark);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Header */
.sticky-header-container {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 253, 245, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 2px solid var(--dark);
}

.main-header {
  background: transparent;
  padding: 10px 0;
  border-bottom: none;
  box-shadow: none;
}

.header-content {
  gap: 16px;
}

.main-header .logo {
  gap: 8px;
}

.main-header .logo:hover {
  transform: none;
}

.main-header .logo-image {
  width: auto;
  height: 34px;
  max-height: 34px;
  filter: none;
}

.logo-link .logo-text-brand {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--dark);
}

.search-container {
  max-width: 420px;
}

.search-input {
  border: 2px solid var(--dark);
  border-radius: 14px;
  background: #fff;
  padding: 10px 14px 10px 40px;
}

.search-input:focus {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 3px rgba(255, 204, 0, 0.25);
}

.search-icon {
  color: var(--dark);
}

.date-info {
  display: none;
}

.header-actions .action-btn,
.header-actions .social-btn {
  border: 2px solid var(--dark);
  background: var(--brand-soft);
  color: var(--dark);
  border-radius: 12px;
}

.header-actions .action-btn:hover,
.header-actions .social-btn:hover {
  background: var(--brand);
}

.btn-pesan-jasa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--brand);
  color: var(--dark);
  border: 2px solid var(--dark);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.2s, transform 0.2s;
}

.btn-pesan-jasa:hover {
  background: var(--brand-dark);
  color: var(--dark);
  transform: translateY(-1px);
}

.main-nav {
  background: var(--dark);
  border-top: none;
}

.main-nav .nav-item {
  color: #f3f4f6;
  font-weight: 700;
}

.main-nav .nav-item:hover,
.main-nav .nav-item.active {
  color: var(--brand);
  background: rgba(255, 204, 0, 0.12);
}

.ticker-wrapper {
  display: none;
}

body.show-ticker .ticker-wrapper {
  display: block;
}

/* App launch hero */
.tk-app-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid var(--brand-dark);
  background: var(--bg);
  margin-bottom: clamp(10px, 1.5vw, 16px);
}

.tk-app-hero-bg {
  position: absolute;
  inset: 0;
  background-position: center right;
  background-size: cover;
  background-repeat: no-repeat;
  pointer-events: none;
}

.tk-app-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 46%);
  grid-template-areas:
    "headline visual"
    "features visual";
  align-items: center;
  gap: clamp(12px, 2vw, 24px) clamp(16px, 3vw, 40px);
  min-height: clamp(360px, 42vw, 520px);
  padding: clamp(28px, 4vw, 48px) 16px clamp(20px, 3vw, 36px);
}

.tk-app-hero-headline {
  grid-area: headline;
  max-width: 560px;
}

.tk-app-hero-visual {
  grid-area: visual;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
  align-self: center;
}

.tk-app-hero-title {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.08;
  font-weight: 900;
  color: var(--dark);
}

.tk-app-hero-sub {
  margin: 0;
  font-size: clamp(16px, 2vw, 24px);
  line-height: 1.45;
  color: #333;
}

.tk-app-hero-features {
  grid-area: features;
  max-width: 560px;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.5vw, 16px);
}

.tk-app-hero-features li {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
  font-size: clamp(10px, 1.1vw, 13px);
  font-weight: 800;
  line-height: 1.35;
  color: var(--dark);
}

.tk-app-hero-icon {
  width: clamp(44px, 5vw, 56px);
  height: clamp(44px, 5vw, 56px);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: var(--dark);
  font-size: clamp(16px, 2vw, 22px);
  box-shadow: 0 4px 14px rgba(212, 160, 23, 0.25);
}

.tk-app-hero-visual img {
  width: min(100%, 620px);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center right;
  filter: drop-shadow(0 18px 36px rgba(20, 20, 20, 0.12));
}

/* Homepage shell */
.tk-home {
  max-width: 1180px;
  padding-top: clamp(8px, 1.2vw, 12px);
  padding-bottom: 48px;
}

.tk-home-inner {
  display: grid;
  gap: 28px;
}

/* Hero */
.tk-hero {
  border-radius: 28px;
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(135deg, var(--dark) 0%, #2a2200 55%, var(--brand-shadow) 100%);
  color: #fff;
  border: 2px solid var(--dark);
  box-shadow: 0 12px 32px rgba(20, 20, 20, 0.12);
}

.tk-hero-kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand);
  margin: 0 0 8px;
}

.tk-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 0 0 12px;
  font-weight: 900;
}

.tk-hero-desc {
  max-width: 640px;
  color: #f3f4f6;
  margin: 0 0 20px;
  line-height: 1.6;
}

.tk-search-box {
  display: flex;
  gap: 10px;
  max-width: 720px;
  flex-wrap: wrap;
}

.tk-search-box input {
  flex: 1;
  min-width: 220px;
  padding: 13px 14px;
  border: 2px solid var(--dark);
  border-radius: 14px;
  font: inherit;
}

.tk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 14px;
  border: 2px solid var(--dark);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
}

.tk-btn-primary {
  background: var(--brand);
  color: var(--dark);
}

.tk-btn-primary:hover {
  background: var(--brand-dark);
  color: var(--dark);
}

.tk-btn-dark {
  background: var(--dark);
  color: var(--brand);
}

.tk-btn-whatsapp {
  background: #25d366;
  color: #fff;
  border-color: #128c7e;
}

.tk-btn-whatsapp:hover {
  background: #1ebe57;
  color: #fff;
}

.tk-section-title {
  text-align: center;
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 900;
  margin: 0 0 16px;
}

/* Category grid */
.tk-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tk-category-item {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: start;
  gap: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  padding: 16px 12px;
  min-height: 136px;
  border-radius: 16px;
  overflow: hidden;
  transition: background 0.2s;
}

.tk-category-item:hover {
  background: var(--brand-soft);
}

.tk-category-icon {
  grid-row: 1;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}

.tk-category-icon img {
  width: 56px;
  height: 56px;
  max-width: 56px;
  max-height: 56px;
  object-fit: contain;
  display: block;
}

.tk-category-name {
  grid-row: 2;
  width: 100%;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  min-height: calc(1.35em * 2);
  margin: 0;
  padding: 0 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.tk-category-item:hover .tk-category-icon {
  transform: none;
}

/* Flow */
.tk-flow {
  background: var(--brand-soft);
  border: 2px solid var(--brand-dark);
  border-radius: var(--radius);
  padding: 24px 18px 18px;
}

.tk-flow-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.tk-flow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.tk-flow-step img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line);
  background: #fff;
}

.tk-flow-step p {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.tk-flow-num {
  color: var(--brand-deep);
}

/* Cards */
.tk-card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: 0 8px 26px rgba(20, 20, 20, 0.05);
}

.tk-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
}

.tk-card p {
  color: var(--muted);
  margin: 0 0 16px;
}

.tk-cta-center {
  text-align: center;
}

/* Trust strip */
.tk-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.tk-trust-item {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-align: center;
}

.tk-trust-item strong {
  display: block;
  font-size: 18px;
  margin-bottom: 6px;
}

.tk-trust-item span {
  color: var(--muted);
  font-size: 14px;
}

.tk-popular-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.tk-popular-item {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: start;
  gap: 10px;
  min-height: 118px;
  padding: 14px 10px;
  text-align: center;
  text-decoration: none;
  color: var(--dark);
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  transition: 0.2s;
}

.tk-popular-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
}

.tk-popular-icon img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
}

.tk-popular-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tk-popular-item:hover {
  border-color: var(--brand-dark);
  background: var(--brand-soft);
  color: var(--dark);
}

/* Blog secondary */
.tk-blog-section {
  border-top: 2px solid var(--line);
  padding-top: 28px;
}

.tk-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.tk-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: 0.2s;
}

.tk-blog-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-dark);
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
}

.tk-blog-card-media {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  background: var(--brand-soft);
  flex-shrink: 0;
  border-bottom: 1px solid var(--line);
}

.tk-blog-card-media img,
.tk-blog-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.tk-blog-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  padding: 16px 16px 18px;
}

.tk-blog-card-category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-deep);
}

.tk-blog-card-body h3 {
  font-size: 16px;
  margin: 0;
  line-height: 1.4;
  min-height: calc(1.4em * 2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tk-blog-card-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  min-height: calc(1.55em * 3);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tk-blog-card-more {
  margin-top: auto;
  padding-top: 4px;
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-deep);
}

.tk-muted {
  color: var(--muted);
  font-size: 14px;
}

/* WhatsApp float */
.tk-wa-float {
  position: fixed;
  right: 14px;
  bottom: 18px;
  z-index: 90;
  line-height: 0;
  transition: transform 0.2s;
}

.tk-wa-float img {
  width: auto;
  height: 120px;
  max-height: 120px;
  display: block;
  filter: drop-shadow(0 6px 18px rgba(20, 20, 20, 0.2));
}

.tk-wa-float:hover {
  transform: translateY(-2px);
}

/* Footer */
.main-footer {
  background: var(--dark);
  color: #f3f4f6;
  border-top: 3px solid var(--brand);
}

.main-footer .footer-title,
.main-footer .logo-text {
  color: var(--brand);
}

.main-footer .footer-link,
.main-footer .contact-item,
.main-footer .copyright-text,
.main-footer .company-text {
  color: #d1d5db;
}

.main-footer .footer-link:hover {
  color: var(--brand);
}

.main-footer .verification-box {
  border-color: var(--brand);
  background: rgba(255, 204, 0, 0.08);
}

@media (min-width: 992px) {
  .tk-category-grid {
    gap: 16px;
  }

  .tk-category-item {
    min-height: 148px;
    padding: 18px 14px;
    gap: 14px;
  }

  .tk-category-icon,
  .tk-category-icon img {
    width: 60px;
    height: 60px;
    max-width: 60px;
    max-height: 60px;
  }

  .tk-category-name {
    font-size: 13px;
  }
}

@media (max-width: 992px) {
  .tk-app-hero-inner {
    grid-template-columns: 1fr;
    grid-template-areas:
      "headline"
      "visual"
      "features";
    min-height: 0;
    padding-top: 16px;
    padding-bottom: 8px;
    gap: 12px;
  }

  .tk-app-hero-bg {
    background-position: center bottom;
  }

  .tk-app-hero-headline,
  .tk-app-hero-features {
    max-width: none;
  }

  .tk-app-hero-visual {
    justify-content: center;
    margin: 4px 0 8px;
  }

  .tk-app-hero-visual img {
    width: min(72%, 280px);
    max-height: 220px;
    object-fit: contain;
  }

  .tk-app-hero-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    padding-top: 4px;
  }

  .tk-app-hero-features li {
    font-size: 10px;
  }

  .tk-app-hero-icon {
    width: 40px;
    height: 40px;
    font-size: 15px;
  }

  .tk-category-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tk-flow-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .tk-trust-grid,
  .tk-blog-grid {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  .header-content {
    flex-wrap: nowrap !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .main-header {
    padding: 8px 0;
  }

  .main-header .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .logo-link {
    flex: 0 0 auto;
    order: 1 !important;
  }

  .logo-link .logo-text-brand {
    display: inline !important;
    font-size: 14px;
    letter-spacing: 0.06em;
  }

  .main-header .logo {
    gap: 6px;
  }

  .search-container {
    display: none !important;
  }

  .btn-pesan-jasa {
    order: 2 !important;
    margin-left: auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 13px;
  }

  .header-actions {
    display: none !important;
  }

  .main-nav .container {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
    overflow: visible;
  }

  .nav-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    justify-content: flex-start !important;
    align-items: stretch;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x;
    gap: 0 !important;
    width: 100%;
    padding: 0 4px 6px !important;
    scroll-padding-inline: 8px;
  }

  .nav-item {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    padding: 10px 14px !important;
    font-size: 13px !important;
    transform: none !important;
  }

  .nav-item:hover,
  .nav-item.active {
    transform: none !important;
  }

  .main-header .logo-image {
    height: 32px;
    max-height: 32px;
    width: auto;
  }

  .tk-app-hero-visual img {
    width: min(68%, 240px);
    max-height: 190px;
  }

  .tk-app-hero-title {
    font-size: clamp(24px, 7vw, 32px);
  }

  .tk-app-hero-sub {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .tk-app-hero-features {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 6px;
  }

  .tk-app-hero-features li {
    font-size: 9px;
    gap: 6px;
  }

  .tk-app-hero-icon {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .tk-category-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .tk-search-box {
    flex-direction: column;
  }

  .tk-trust-grid,
  .tk-blog-grid {
    grid-template-columns: 1fr;
  }

  .tk-wa-float {
    right: 10px;
    bottom: 14px;
  }

  .tk-wa-float img {
    height: 96px;
    max-height: 96px;
  }
}

@media (max-width: 480px) {
  .tk-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .tk-category-item {
    min-height: 118px;
    padding: 12px 8px;
  }

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

/* Blog & category listing pages */
.page-service-brand .bg-primary,
.page-service-brand .badge.bg-primary {
  background-color: var(--brand) !important;
  color: var(--dark) !important;
  border: 1px solid var(--brand-dark);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.page-service-brand .btn-primary {
  background: var(--brand);
  border-color: var(--brand-dark);
  color: var(--dark);
  font-weight: 800;
}

.page-service-brand .btn-primary:hover,
.page-service-brand .btn-primary:focus {
  background: var(--brand-dark);
  border-color: var(--brand-deep);
  color: var(--dark);
}

.page-service-brand .category-page > h1,
.page-service-brand .page-header .page-title {
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 8px;
}

.page-service-brand .page-description {
  color: var(--muted);
  margin-bottom: 0;
}

.page-service-brand .card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(20, 20, 20, 0.05) !important;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-service-brand .card:hover {
  border-color: var(--brand-dark);
}

.page-service-brand .card-img-top img {
  object-fit: cover;
}

.page-service-brand .card-title a:hover {
  color: var(--brand-deep) !important;
}

.page-service-brand .post-card-horizontal {
  min-height: 200px;
  border: 2px solid var(--line) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 26px rgba(20, 20, 20, 0.05) !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.page-service-brand .post-card-horizontal:hover {
  border-color: var(--brand-dark) !important;
}

.page-service-brand .post-card-horizontal .post-title a:hover {
  color: var(--brand-deep) !important;
}

.page-service-brand .sidebar-section {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(20, 20, 20, 0.05);
}

.page-service-brand .sidebar-title {
  background: var(--dark);
  color: var(--brand);
  font-weight: 900;
  letter-spacing: 0.06em;
}

.page-service-brand .post-number {
  background: var(--brand);
  color: var(--dark);
  font-weight: 900;
}

.page-service-brand .post-category {
  color: var(--brand-deep);
}

.page-service-brand .popular-post-item:hover {
  background: var(--brand-soft);
}

.page-service-brand .related-category-item {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 26px rgba(20, 20, 20, 0.05);
}

.page-service-brand .related-category-item:hover {
  border-color: var(--brand-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(20, 20, 20, 0.08);
}

.page-service-brand .related-categories-title,
.page-service-brand .related-category-title {
  color: var(--dark);
}

.page-service-brand .title-underline {
  background: var(--brand-dark);
}

.page-service-brand .alert-info {
  background: var(--brand-soft);
  border: 2px solid var(--line);
  color: var(--dark);
}

.page-service-brand .form-control {
  border: 2px solid var(--line);
  border-radius: 12px;
}

.page-service-brand .form-control:focus {
  border-color: var(--brand-dark);
  box-shadow: 0 0 0 0.2rem rgba(255, 204, 0, 0.25);
}

.page-service-brand .text-muted {
  color: var(--muted) !important;
}
