/*
Theme Name: RDM Omdev
Theme URI: https://omdev.id
Author: Omdev
Author URI: https://omdev.id
Description: Portofolio pribadi & katalog project dengan filter kategori dan panel pengaturan hero + kontak.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rdm-omdev
Tags: portfolio, custom-colors, custom-menu, featured-images, translation-ready
*/

*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --accent: #2563eb;
  --accent-ink: #1d4ed8;
  --accent-soft: #eff6ff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .05);
  --shadow-hover: 0 2px 4px rgba(15, 23, 42, .05), 0 18px 40px rgba(15, 23, 42, .10);
  --max: 1120px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Plus Jakarta Sans", "Inter", sans-serif;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
}

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

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

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.accent {
  color: var(--accent);
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 5px 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 13px 24px; font-size: 15.5px; }

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
.btn-primary:hover { background: var(--accent-ink); transform: translateY(-1px); }

.btn-outline {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: #cbd5e1; transform: translateY(-1px); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  letter-spacing: .02em;
}

.dot { color: var(--accent); }

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 500;
}

.nav a:not(.btn) {
  color: var(--muted);
  transition: color .15s ease;
}
.nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero {
  padding: 92px 0 72px;
  background:
    radial-gradient(760px 380px at 82% -8%, rgba(37, 99, 235, .07), transparent 70%),
    linear-gradient(#fff, var(--bg-soft));
  border-bottom: 1px solid var(--line);
}

.hero-title {
  margin: 22px 0 18px;
  font-size: clamp(34px, 5.2vw, 56px);
  font-weight: 800;
}

.hero-desc {
  max-width: 620px;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
}

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

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 52px 0 0;
  padding: 0;
}

.stats dt {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
}

.stats dd {
  margin: 2px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Sections */
.projects,
.contact,
.services,
.pricing {
  padding: 78px 0;
}

.services {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

/* Service cards */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  padding: 26px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), #7dd3fc);
  opacity: 0;
  transition: opacity .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #dbe3ee;
}
.service-card:hover::after { opacity: 1; }

.service-card .service-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.service-card .service-icon .contact-icon {
  margin: 0;
  background: transparent;
  color: inherit;
  width: auto;
  height: auto;
  font-size: 22px;
}
.service-card .service-icon .contact-icon-svg { padding: 0; }
.service-card .service-icon .contact-icon-svg svg { width: 22px; height: 22px; }

.service-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}
.service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Pricing cards */
.pricing {
  background: #fff;
  border-top: 1px solid var(--line);
}

.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.price-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}
.price-card.has-badge {
  border-color: #bfdbfe;
  box-shadow: 0 10px 30px rgba(37, 99, 235, .12);
}
.price-card.has-badge:hover { border-color: var(--accent); }

.price-badge {
  position: absolute;
  top: -12px;
  left: 26px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 6px 14px rgba(37, 99, 235, .3);
}

.price-name {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.price-num {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--ink);
  line-height: 1;
}
.price-period {
  font-size: 13.5px;
  color: var(--muted);
}

.price-for {
  margin: 0 0 18px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line);
  color: var(--muted);
  font-size: 14px;
}

.price-features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  flex: 1;
}
.price-features li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14.5px;
  line-height: 1.5;
}
.price-features li .dashicons {
  flex: 0 0 auto;
  font-size: 17px;
  width: 17px;
  height: 17px;
  margin-top: 3px;
  color: var(--accent);
}

.price-cta {
  width: 100%;
}

.price-note {
  margin: 26px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.section-head {
  margin-bottom: 34px;
  max-width: 620px;
}
.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head h2,
.section-head h1 {
  margin: 16px 0 10px;
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 800;
}
.section-head p {
  margin: 0;
  color: var(--muted);
}

/* Filters */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
}

.filter {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}
.filter:hover { color: var(--ink); border-color: #cbd5e1; }
.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* Grid & cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #dbe3ee;
}
.card.is-hidden { display: none; }

.thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: 14px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(135deg, #1e293b, #334155);
}
.thumb[data-tint="blue"] { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.thumb[data-tint="indigo"] { background: linear-gradient(135deg, #4338ca, #6366f1); }
.thumb[data-tint="cyan"] { background: linear-gradient(135deg, #0e7490, #06b6d4); }
.thumb[data-tint="teal"] { background: linear-gradient(135deg, #0f766e, #14b8a6); }
.thumb[data-tint="violet"] { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.thumb[data-tint="fuchsia"] { background: linear-gradient(135deg, #a21caf, #d946ef); }
.thumb[data-tint="slate"] { background: linear-gradient(135deg, #334155, #64748b); }
.thumb[data-tint="emerald"] { background: linear-gradient(135deg, #047857, #10b981); }
.thumb[data-tint="amber"] { background: linear-gradient(135deg, #b45309, #f59e0b); }

.thumb-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
}
.thumb-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .55);
}
.thumb-bar span:first-child { background: rgba(255, 255, 255, .85); }

.thumb-body {
  flex: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
}

.thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.mono {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  font-size: 30px;
  letter-spacing: .04em;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .25);
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  flex: 1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.card-head h3 {
  font-size: 17.5px;
  font-weight: 700;
}

.card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
}

.badge {
  flex-shrink: 0;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.badge.live { background: #ecfdf5; color: #047857; }
.badge.mock { background: #f5f3ff; color: #6d28d9; }
.badge.sandbox { background: #fffbeb; color: #b45309; }
.badge.soon { background: #f1f5f9; color: #475569; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tags li {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 6px;
}

.card-link {
  margin-top: auto;
  padding-top: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap .15s ease, color .15s ease;
}
.card-link:hover { color: var(--accent-ink); }
.card-link.is-disabled {
  color: var(--muted);
  cursor: default;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

/* Single project */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: #cbd5e1; }
.breadcrumb [aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card { position: relative; }
.card-hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}
.card-head h3 a { color: inherit; }
.card-head h3 a:hover { color: var(--accent); }
.card-link,
.tags,
.badge { position: relative; z-index: 2; }

.project-hero-thumb {
  max-width: 900px;
  margin: 44px auto 0;
}
.project-hero-thumb .thumb-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .1);
}

.project-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 48px;
  align-items: start;
}
.project-content { max-width: 720px; }
.project-content p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
  margin: 0 0 1.1em;
}
.project-content a { color: var(--accent); }
.project-content h2,
.project-content h3 {
  margin: 1.6em 0 .5em;
  font-size: 22px;
  color: var(--ink);
}
.project-content ul,
.project-content ol {
  color: var(--muted);
  padding-left: 1.3em;
}
.project-content li { margin-bottom: .4em; }

.project-side {
  position: sticky;
  top: 88px;
  padding: 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.side-title {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin: 40px 0 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.project-meta.stacked {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}
.project-meta dt {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}
.project-meta dd {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 16px;
}
.project-meta dd a { color: var(--accent); }
.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-weight: 600 !important;
}
.tag-chip {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: #fff;
  border: 1px solid var(--line);
  padding: 3px 9px;
  border-radius: 6px;
}
.side-cta {
  width: 100%;
  margin-top: 18px;
}

.project-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.project-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.project-nav-link:hover {
  border-color: #bfdbfe;
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.project-nav-link.empty {
  visibility: hidden;
  pointer-events: none;
}
.project-nav-link.next { text-align: right; align-items: flex-end; }
.nav-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
}

@media (max-width: 900px) {
  .project-layout { grid-template-columns: 1fr; gap: 32px; }
  .project-side { position: static; }
  .project-nav { grid-template-columns: 1fr; }
  .project-nav-link.next { text-align: left; align-items: flex-start; }
}

/* Contact */
.contact {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #dbe3ee;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 14px;
}
.contact-icon.dashicons {
  font-size: 20px;
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
}
.contact-icon-svg {
  padding: 0;
}
.contact-icon-svg svg {
  width: 18px;
  height: 18px;
}
.contact-card strong { font-size: 16px; }
.contact-card span:last-child { color: var(--muted); font-size: 14px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}
.footer-inner .brand-text {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  color: var(--ink);
  font-size: 16px;
}

@media (max-width: 640px) {
  .nav { gap: 14px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 52px; }
  .stats { gap: 28px; }
}
