/*
Theme Name: Alam SSKCKR
Theme URI: https://www.alam.web.id/
Author: Alam
Description: Tema WordPress custom Alam SSKCKR yang ringan, aman, responsif, dan SEO-friendly tanpa page builder.
Version: 1.3.6
Requires at least: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alam-minimal
*/

:root {
  --am-bg: #f8fafc;
  --am-surface: #ffffff;
  --am-text: #0f172a;
  --am-muted: #64748b;
  --am-border: #e2e8f0;
  --am-primary: #4f46e5;
  --am-primary-dark: #3730a3;
  --am-accent: #7c3aed;
  --am-max: 1180px;
  --am-radius: 18px;
  --am-shadow: 0 14px 40px rgba(15,23,42,.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--am-bg);
  color: var(--am-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--am-primary); text-underline-offset: 3px; }
a:hover { color: var(--am-primary-dark); }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  position: fixed !important;
  top: 12px; left: 12px;
  width: auto; height: auto;
  padding: 10px 14px;
  clip: auto;
  background: #fff;
  color: #111827;
  z-index: 99999;
  border-radius: 8px;
  box-shadow: var(--am-shadow);
}

.am-container {
  width: min(calc(100% - 32px), var(--am-max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid var(--am-border);
  box-shadow: 0 4px 18px rgba(15,23,42,.045);
}
.admin-bar .site-header { top: 32px; }

.am-header-inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-branding { display: flex; align-items: center; gap: 12px; min-width: 0; }
.am-emblem-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 50px;
  text-decoration: none;
}
.am-site-emblem,
.custom-logo {
  display: block;
  width: auto;
  max-width: 44px;
  max-height: 50px;
  object-fit: contain;
}
.am-brand-copy { min-width: 0; }
.site-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.site-title a { color: var(--am-text); text-decoration: none; }
.site-description { margin: 2px 0 0; color: var(--am-muted); font-size: .82rem; line-height: 1.35; }

.am-nav-toggle {
  display: none;
  border: 1px solid var(--am-border);
  background: #fff;
  border-radius: 10px;
  padding: 8px 11px;
  cursor: pointer;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  color: #334155;
  text-decoration: none;
  font-size: .94rem;
  font-weight: 650;
}
.primary-nav a:hover,
.primary-nav .current-menu-item > a { color: var(--am-primary); }

.site-main { min-height: 60vh; padding: 44px 0 64px; }

.am-card {
  background: var(--am-surface);
  border: 1px solid var(--am-border);
  border-radius: var(--am-radius);
  box-shadow: var(--am-shadow);
}

.entry-header { margin-bottom: 24px; }
.entry-title {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -.03em;
}
.entry-meta { margin-top: 10px; color: var(--am-muted); font-size: .9rem; }
.entry-content { font-size: 1.02rem; }
.entry-content > * { max-width: 760px; }
.entry-content > .alignwide { max-width: 1040px; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2, .entry-content h3 { line-height: 1.25; margin-top: 2em; }
.entry-content blockquote {
  margin-left: 0;
  padding: 14px 18px;
  border-left: 4px solid var(--am-primary);
  background: #f8faff;
}

.am-post-list { display: grid; gap: 18px; }
.am-post-card { padding: 24px; }
.am-post-card h2 { margin: 0 0 8px; font-size: 1.35rem; }
.am-post-card h2 a { color: var(--am-text); text-decoration: none; }
.am-post-card p { margin-bottom: 0; color: #475569; }

.navigation.pagination { margin-top: 30px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--am-border);
  border-radius: 9px;
  background: #fff;
  text-decoration: none;
}
.page-numbers.current { color: #fff; background: var(--am-primary); border-color: var(--am-primary); }

.site-footer {
  border-top: 1px solid var(--am-border);
  background: #fff;
  color: var(--am-muted);
}
.am-footer-inner {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: .9rem;
}
.am-footer-menu ul { list-style: none; display: flex; gap: 16px; margin: 0; padding: 0; }
.am-footer-menu a { color: var(--am-muted); text-decoration: none; }

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
  .am-nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 16px;
    right: 16px;
    background: #fff;
    border: 1px solid var(--am-border);
    border-radius: 14px;
    box-shadow: var(--am-shadow);
    padding: 12px;
  }
  .primary-nav.is-open { display: block; }
  .primary-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .primary-nav a { display: block; padding: 10px 8px; }
  .site-main { padding-top: 28px; }
  .am-emblem-link { width: 38px; height: 44px; }
  .am-site-emblem, .custom-logo { max-width: 38px; max-height: 44px; }
  .site-description { display: none; }
  .am-footer-inner { align-items: flex-start; flex-direction: column; padding: 24px 0; }
}


/* Blank / Canvas page template */
body.am-blank-layout {
  margin: 0;
  min-height: 100vh;
}
.am-blank-main {
  width: 100%;
  min-height: 100vh;
}
.am-blank-main > *:first-child { margin-top: 0; }
.am-blank-main > *:last-child { margin-bottom: 0; }

/* =========================================================
   Front page — service-card landing layout
========================================================= */
.am-home-main {
  padding-top: 28px;
  background:
    radial-gradient(circle at 12% 0%, rgba(79,70,229,.09), transparent 26%),
    radial-gradient(circle at 90% 18%, rgba(124,58,237,.07), transparent 24%),
    linear-gradient(180deg, #f8fafc 0%, #f5f7fb 100%);
}

.am-home-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 38px;
  min-height: 310px;
  padding: clamp(32px, 5vw, 58px);
  border-radius: 28px;
  background: linear-gradient(135deg, #312e81 0%, #4f46e5 55%, #7c3aed 100%);
  color: #fff;
  box-shadow: 0 18px 44px rgba(79,70,229,.16);
}

.am-home-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -100px;
  top: -120px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
}

.am-home-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.am-home-kicker {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #ede9fe;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.am-home-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 6vw, 4.65rem);
  line-height: 1.02;
  letter-spacing: -.05em;
}

.am-home-hero p {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 2vw, 1.12rem);
  line-height: 1.7;
}

.am-home-hero-mark {
  position: relative;
  z-index: 2;
  display: grid;
  place-content: center;
  width: 155px;
  height: 155px;
  flex: 0 0 155px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 32px;
  background: rgba(255,255,255,.08);
  text-align: center;
  line-height: .95;
  transform: rotate(3deg);
}

.am-home-hero-mark span:first-child {
  color: #ddd6fe;
  font-size: 2.7rem;
  font-weight: 900;
  letter-spacing: -.08em;
}

.am-home-hero-mark span:last-child {
  margin-top: 7px;
  color: #fff;
  font-size: 1rem;
  font-weight: 850;
  letter-spacing: .18em;
}

.am-service-section {
  padding: 52px 0 12px;
}

.am-service-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 26px;
}

.am-service-label {
  color: var(--am-primary);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .1em;
}

.am-service-heading h2 {
  margin: 5px 0 0;
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}

.am-service-heading > p {
  margin: 0;
  color: var(--am-muted);
  line-height: 1.7;
}

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

.am-service-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(248,250,252,1) 100%);
  box-shadow: 0 10px 28px rgba(15,23,42,.045);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.am-service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5 0%, #7c3aed 100%);
  opacity: .88;
}

.am-service-card::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -70px;
  top: -70px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.08), rgba(79,70,229,0) 70%);
  pointer-events: none;
}

.am-service-card:hover {
  transform: translateY(-4px);
  border-color: #c7d2fe;
  box-shadow: 0 18px 42px rgba(15,23,42,.085);
}



.am-service-card.is-sakedap {
  background:
    radial-gradient(circle at top right, rgba(15,23,42,.04), transparent 24%),
    linear-gradient(155deg, #fff 0%, #f8fafc 100%);
}

.am-service-card-link {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 314px;
  height: 100%;
  flex-direction: column;
  padding: 26px;
  color: inherit;
  text-decoration: none;
}

.am-service-card-link:hover { color: inherit; }

.am-service-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.am-service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  color: var(--am-primary);
  box-shadow: inset 0 0 0 1px rgba(199,210,254,.7);
}

.am-service-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.am-external-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
}

.am-external-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7c3aed;
}

.am-service-card-copy {
  margin-top: 26px;
}

.am-service-eyebrow {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--am-primary);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.am-service-card h3 {
  margin: 12px 0 10px;
  color: var(--am-text);
  font-size: 1.38rem;
  line-height: 1.18;
  letter-spacing: -.03em;
}

.am-service-card p {
  max-width: 42ch;
  margin: 0;
  color: #64748b;
  font-size: .95rem;
  line-height: 1.68;
}

.am-service-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin-top: auto;
  padding-top: 28px;
  color: var(--am-primary);
  font-size: .9rem;
  font-weight: 800;
}

.am-service-cta span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(79,70,229,.08);
}

.am-service-cta svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .18s ease;
}

.am-service-card:hover .am-service-cta svg {
  transform: translateX(3px);
}

.am-home-note {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid #e0e7ff;
  border-radius: 17px;
  background: #f8faff;
}

.am-home-note-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  border-radius: 11px;
  background: #eef2ff;
  color: var(--am-primary);
}

.am-home-note-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.am-home-note strong {
  color: var(--am-text);
}

.am-home-note p {
  margin: 4px 0 0;
  color: var(--am-muted);
  font-size: .92rem;
}

@media (max-width: 960px) {
  .am-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .am-service-heading { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 720px) {
  .am-home-main { padding-top: 16px; }
  .am-home-hero { min-height: auto; padding: 30px 24px; border-radius: 22px; }
  .am-home-hero-mark { display: none; }
  .am-home-hero h1 { font-size: clamp(2.15rem, 10vw, 3.35rem); }
  .am-service-section { padding-top: 36px; }
  .am-service-grid { grid-template-columns: 1fr; }
  .am-service-card-link { min-height: 285px; padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .am-service-card,
  .am-service-cta svg { transition: none; }
  .am-service-card:hover { transform: none; }
}

/* v1.3.2 — compact official-service landing cards */
.am-home-hero {
  min-height: 245px;
  padding: clamp(28px, 4vw, 44px);
}

.am-home-hero h1 {
  max-width: 820px;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.am-home-hero p {
  margin-top: 14px;
  font-size: clamp(.94rem, 1.5vw, 1.03rem);
}

.am-home-hero-mark {
  width: 128px;
  height: 128px;
  flex-basis: 128px;
  border-radius: 26px;
}

.am-service-section {
  padding-top: 38px;
}

.am-service-heading {
  margin-bottom: 18px;
}

.am-service-heading h2 {
  font-size: clamp(1.55rem, 3vw, 2.05rem);
}

.am-service-grid {
  gap: 14px;
}

.am-service-card,
.am-service-card.is-sakedap,
.am-service-card.is-featured {
  background: linear-gradient(145deg, #3730a3 0%, #4f46e5 58%, #6d28d9 100%);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 8px 22px rgba(49,46,129,.16);
}

.am-service-card::before {
  height: 3px;
  opacity: .95;
}

.am-service-card::after {
  width: 140px;
  height: 140px;
  right: -55px;
  top: -55px;
  background: radial-gradient(circle, rgba(255,255,255,.10), rgba(255,255,255,0) 72%);
}

.am-service-card:hover {
  border-color: rgba(255,255,255,.30);
  box-shadow: 0 14px 30px rgba(49,46,129,.22);
}

.am-service-card-link {
  min-height: 238px;
  padding: 20px;
}

.am-service-icon {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(255,255,255,.12);
  color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}

.am-service-icon svg {
  width: 21px;
  height: 21px;
}

.am-external-badge {
  padding: 5px 8px;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.06);
  color: #cbd5e1;
}

.am-service-card-copy {
  margin-top: 18px;
}

.am-service-eyebrow {
  padding: 4px 8px;
  background: rgba(99,102,241,.15);
  color: #c7d2fe;
  font-size: .65rem;
}

.am-service-card h3 {
  margin: 9px 0 7px;
  color: #f8fafc;
  font-size: 1.08rem;
  line-height: 1.25;
}

.am-service-card p {
  color: rgba(255,255,255,.78);
  font-size: .84rem;
  line-height: 1.55;
}

.am-service-cta {
  gap: 7px;
  padding-top: 18px;
  color: #ffffff;
  font-size: .8rem;
}

.am-service-cta span {
  min-height: 32px;
  padding: 0 10px;
  background: rgba(255,255,255,.12);
}

.am-service-cta svg {
  width: 15px;
  height: 15px;
}

@media (max-width: 720px) {
  .am-home-hero {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .am-home-hero h1 {
    font-size: clamp(1.35rem, 6.5vw, 1.85rem);
  }

  .am-home-hero p {
    font-size: .92rem;
    line-height: 1.6;
  }

  .am-service-section {
    padding-top: 28px;
  }

  .am-service-heading {
    margin-bottom: 14px;
  }

  .am-service-grid {
    gap: 12px;
  }

  .am-service-card-link {
    min-height: 210px;
    padding: 18px;
  }

  .am-service-card-copy {
    margin-top: 14px;
  }

  .am-service-card h3 {
    font-size: 1.02rem;
  }

  .am-service-card p {
    font-size: .82rem;
    line-height: 1.5;
  }

  .am-service-cta {
    padding-top: 14px;
  }
}

/* v1.3.3: card labels removed; cards aligned to hero palette */
.am-service-eyebrow { display: none !important; }

/* v1.3.5 — softer, more elegant card palette aligned with the hero */
.am-service-card,
.am-service-card.is-sakedap,
.am-service-card.is-featured {
  background:
    radial-gradient(circle at 88% 10%, rgba(124,58,237,.10), transparent 34%),
    linear-gradient(145deg, #eef2ff 0%, #ede9fe 100%);
  border-color: rgba(165,180,252,.72);
  box-shadow: 0 8px 22px rgba(79,70,229,.08);
}

.am-service-card::before {
  background: linear-gradient(90deg, #6366f1 0%, #8b5cf6 100%);
  opacity: .72;
}

.am-service-card::after {
  background: radial-gradient(circle, rgba(99,102,241,.10), rgba(99,102,241,0) 72%);
}

.am-service-card:hover {
  border-color: #a5b4fc;
  box-shadow: 0 14px 30px rgba(79,70,229,.13);
}

.am-service-icon {
  background: rgba(255,255,255,.64);
  color: #4f46e5;
  box-shadow: inset 0 0 0 1px rgba(165,180,252,.62);
}

.am-external-badge {
  border-color: rgba(165,180,252,.60);
  background: rgba(255,255,255,.58);
  color: #5b6474;
}

.am-external-badge::before {
  background: #7c3aed;
}

.am-service-card h3 {
  color: #312e81;
}

.am-service-card p {
  color: #4b5563;
}

.am-service-cta {
  color: #4338ca;
}

.am-service-cta span {
  background: rgba(255,255,255,.62);
  box-shadow: inset 0 0 0 1px rgba(165,180,252,.52);
}
