/*
Theme Name: InTrans Books Insight
Theme URI: https://intransbooks.com/
Author: Codex
Author URI: https://intransbooks.com/
Description: Theme WordPress orisinal bergaya portal informasi dengan warna teal tua dan orange, dibuat untuk intransbooks.com.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: intransbooks-insight
Tags: blog, education, custom-logo, featured-images, responsive-layout
*/

:root {
  --teal-950: #062f35;
  --teal-900: #0b4248;
  --teal-800: #135d63;
  --teal-100: #dceff0;
  --orange-600: #f58220;
  --orange-500: #ff9c3f;
  --ink: #152326;
  --muted: #647276;
  --line: #d9e4e4;
  --paper: #fbfbf7;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(6, 47, 53, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-topbar {
  background: var(--teal-950);
  color: #e9fbfb;
  font-size: 13px;
}

.site-topbar .wrap,
.site-header .wrap,
.section-wrap,
.site-footer .wrap {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-topbar .wrap {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.site-header .wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--teal-950);
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--teal-900);
  color: var(--orange-500);
  font-weight: 900;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  font-weight: 700;
}

.header-cta,
.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 6px;
  background: var(--orange-600);
  color: var(--teal-950);
  font-weight: 800;
  line-height: 1.2;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--teal-950);
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 47, 53, 0.96) 0%, rgba(6, 47, 53, 0.84) 46%, rgba(6, 47, 53, 0.34) 100%),
    url("assets/images/hero-library.svg") center/cover no-repeat;
}

.hero .section-wrap {
  position: relative;
  min-height: 560px;
  display: grid;
  align-items: center;
  padding: 68px 0 96px;
}

.hero-content {
  max-width: 660px;
}

.eyebrow {
  color: var(--orange-500);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.page-title {
  margin: 14px 0 18px;
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 580px;
  margin: 0 0 28px;
  color: #d9eeee;
  font-size: 18px;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button.secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.42);
}

.stats-band {
  margin-top: -52px;
  position: relative;
  z-index: 3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.stat {
  padding: 26px;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  color: var(--teal-900);
  font-size: 32px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: #eef6f4;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(260px, 0.42fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 34px;
}

.section-heading h2 {
  margin: 8px 0 0;
  color: var(--teal-950);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.service-grid,
.post-grid,
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.service-card,
.post-card,
.pillar-card,
.content-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(6, 47, 53, 0.07);
}

.service-card {
  padding: 28px;
}

.icon-badge {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--teal-100);
  color: var(--orange-600);
  font-size: 26px;
}

.service-card h3,
.post-card h3,
.pillar-card h3 {
  margin: 0 0 10px;
  color: var(--teal-950);
  line-height: 1.25;
}

.service-card p,
.post-card p,
.pillar-card p {
  margin: 0;
  color: var(--muted);
}

.feature-panel {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: center;
}

.feature-media {
  min-height: 420px;
  border-radius: 8px;
  background: url("assets/images/research-desk.svg") center/cover no-repeat;
  box-shadow: var(--shadow);
}

.check-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  margin: 12px 0;
  padding-left: 28px;
  position: relative;
}

.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--orange-600);
  font-weight: 900;
}

.post-card img,
.post-card .placeholder-thumb {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--teal-100);
}

.post-card-body,
.pillar-card {
  padding: 22px;
}

.post-meta {
  color: var(--orange-600);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.site-footer {
  background: var(--teal-950);
  color: #cfe8e8;
  padding: 56px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 28px;
}

.site-footer h2,
.site-footer h3 {
  color: var(--white);
  margin-top: 0;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer li {
  margin: 8px 0;
}

.copyright {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px;
}

.site-main {
  width: min(900px, calc(100% - 32px));
  margin: 56px auto;
}

.entry-content,
.archive-list article {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 30px;
}

.menu-toggle { display: none; }
.content-shell { padding: 56px 0 72px; }
.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; align-items: start; }
.narrow-content { max-width: 900px; }
.entry-header h1, .archive-header h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; margin: 10px 0 14px; color: var(--teal-950); }
.entry-byline, .archive-description, .breadcrumbs { color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; margin-bottom: 26px; }
.entry-featured { margin: 28px 0; }
.entry-featured img { width: 100%; height: auto; border-radius: 6px; }
.prose { font-size: 18px; line-height: 1.78; }
.prose h2 { margin-top: 42px; color: var(--teal-950); }
.prose h3 { margin-top: 30px; color: var(--teal-900); }
.prose a { color: var(--teal-800); text-decoration: underline; text-decoration-color: var(--orange-500); text-underline-offset: 3px; }
.author-box { display: flex; gap: 18px; align-items: center; margin-top: 44px; padding: 22px; background: var(--teal-100); border-left: 4px solid var(--orange-600); }
.author-box img { border-radius: 50%; }
.author-box p { margin: 5px 0 0; }
.sidebar { display: grid; gap: 20px; position: sticky; top: 112px; }
.sidebar-block { background: var(--white); border: 1px solid var(--line); padding: 24px; border-radius: 6px; }
.sidebar-block h2 { font-size: 21px; margin-top: 0; }
.sidebar-block ul { list-style: none; padding: 0; margin: 0; }
.sidebar-block li { padding: 9px 0; border-bottom: 1px solid var(--line); }
.accent-block { background: var(--teal-950); color: #dceff0; border: 0; }
.accent-block h2, .accent-block a { color: var(--white); }
.text-link { font-weight: 800; text-decoration: underline; text-decoration-color: var(--orange-500); }
.archive-header { max-width: 760px; margin-bottom: 34px; }
.navigation.pagination { margin-top: 32px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers { display: inline-grid; place-items: center; min-width: 42px; height: 42px; border: 1px solid var(--line); background: var(--white); }
.page-numbers.current { background: var(--orange-600); color: var(--white); border-color: var(--orange-600); }
.empty-state { text-align: center; padding: 80px 0; }
.search-form { display: flex; max-width: 580px; margin: 28px auto; }
.search-form label { flex: 1; }
.search-form input { width: 100%; min-height: 48px; border: 1px solid var(--line); padding: 0 14px; font: inherit; }
.search-form button { border: 0; background: var(--orange-600); color: var(--white); padding: 0 22px; font-weight: 800; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 860px) {
  .site-topbar .wrap,
  .site-header .wrap,
  .section-heading,
  .feature-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .site-header .wrap,
  .site-topbar .wrap {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .main-navigation ul {
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .site-header .wrap { position: relative; }
  .menu-toggle { display: inline-grid; place-items: center; position: absolute; right: 0; top: 17px; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--white); color: var(--teal-950); font-size: 22px; }
  .main-navigation { display: none; width: 100%; }
  .main-navigation.is-open { display: block; }
  .main-navigation ul { flex-direction: column; align-items: flex-start; padding-top: 10px; }
  .header-cta { display: none; }
  .content-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .entry-content { padding: 22px; }
  .entry-header h1, .archive-header h1 { font-size: 38px; }
  .prose { font-size: 17px; }

  .hero .section-wrap {
    min-height: 500px;
    padding-top: 52px;
  }

  .stats-grid,
  .service-grid,
  .post-grid,
  .pillar-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-media {
    min-height: 300px;
  }
}
