/*
Theme Name: Juara Pro
Theme URI: http://localhost:8080
Author: Juara Pro
Description: Tema katalog rumah Juara Pro — modern profesional.
Version: 1.4.0
Text Domain: rumahsiap
*/

:root {
  --ink: #111111;
  --muted: #5c5c5c;
  --paper: #f5f5f3;
  --card: #ffffff;
  --line: #e2e2de;
  --accent: #a8c52a;
  --accent-dark: #111111;
  --sold: #6b6b6b;
  --shadow: 0 8px 24px rgba(17, 17, 17, 0.06);
  --radius: 10px;
  --max: 1120px;
  --font-display: "Libre Baskerville", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(168, 197, 42, 0.08), transparent 36%),
    linear-gradient(180deg, #fafafa 0%, var(--paper) 45%, #f0f0ec 100%);
  line-height: 1.55;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}
.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.97);
  border-bottom-color: rgba(17, 17, 17, 0.08);
  box-shadow: 0 10px 28px rgba(17, 17, 17, 0.07);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.brand-text { line-height: 1.1; }
.brand-text span {
  display: block;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}
.nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  color: var(--muted);
  font-weight: 600;
  text-decoration: none;
}
.nav a:hover { color: var(--ink); }

.hero { padding: 3.5rem 0 2.5rem; }
.hero-grid {
  display: grid;
  gap: 1.5rem;
  align-items: end;
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.eyebrow {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.08;
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 38ch;
}
.hero-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: var(--radius);
  padding: 0.8rem 1.2rem;
  font: inherit;
  font-weight: 700;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(1px) scale(0.985);
}
.btn-sm {
  padding: 0.55rem 0.9rem;
  font-size: 0.9rem;
}
.btn-primary {
  background: var(--accent-dark);
  color: #fff;
}
.btn-primary:hover {
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(17, 17, 17, 0.18);
}
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--ink);
  text-decoration: none;
}
.btn-wa {
  background: var(--accent);
  color: var(--ink);
}
.btn-wa:hover {
  background: #95b024;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(168, 197, 42, 0.35);
}
.btn-wa--soft {
  background: #ecece8;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn-wa--soft:hover {
  background: #e2e2de;
  color: var(--ink);
  box-shadow: none;
}
.card--sold {
  opacity: 0.92;
}
.card--sold .price {
  color: var(--sold);
}
.actions--stack {
  margin-top: 1rem;
  flex-direction: column;
}
.actions--stack .btn {
  width: 100%;
}

.section { padding: 2rem 0 3rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
}
.section-head p { margin: 0.35rem 0 0; color: var(--muted); }

.filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem;
  box-shadow: var(--shadow);
}
.filters label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.filters input,
.filters select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font: inherit;
  color: var(--ink);
  background: #fff;
  width: 100%;
}
.filters input:focus,
.filters select:focus {
  outline: 2px solid rgba(168, 197, 42, 0.45);
  outline-offset: 1px;
  border-color: var(--accent);
}
.filters .filter-actions {
  display: flex;
  align-items: end;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.filters .filter-actions .btn {
  flex: 1 1 auto;
  min-width: 6.5rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(168, 197, 42, 0.55);
  box-shadow: 0 14px 32px rgba(17, 17, 17, 0.1);
}
.card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #ecece8;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}
.card:hover .card-media img {
  transform: scale(1.04);
}
.badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge:not(.sold) {
  border-color: var(--accent);
  color: var(--ink);
  background: rgba(168, 197, 42, 0.18);
}
.badge.sold {
  color: #fff;
  background: var(--sold);
  border-color: var(--sold);
}
.card-body { padding: 1rem 1rem 1.15rem; display: grid; gap: 0.45rem; }
.card-body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
}
.price { font-weight: 700; color: var(--ink); }
.price::before {
  content: "";
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.4rem;
  border-radius: 1px;
  background: var(--accent);
  vertical-align: middle;
}
.meta { color: var(--muted); font-size: 0.92rem; }
.card-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.card-actions .btn { flex: 1 1 auto; }

.detail-layout { display: grid; gap: 1.25rem; }
@media (min-width: 900px) {
  .detail-layout { grid-template-columns: 1.5fr 0.9fr; align-items: start; }
}
.gallery-main {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ecece8;
  aspect-ratio: 16 / 10;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.65rem;
}
.gallery-thumb {
  display: block;
  padding: 0;
  margin: 0;
  border: 2px solid transparent;
  border-radius: 6px;
  overflow: hidden;
  background: #ecece8;
  cursor: pointer;
  width: 88px;
  aspect-ratio: 4 / 3;
  line-height: 0;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb:hover { opacity: 0.9; }
.gallery-thumb.is-active {
  border-color: var(--accent);
}
.gallery-thumb:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
.side-card--sold .side-card-note {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
}
.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}
.spec {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.85rem;
}
.spec span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}
.spec strong { font-size: 1.05rem; }
.side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 5rem;
}
.side-card h2 { margin: 0 0 0.35rem; font-family: var(--font-display); }
.side-card-label {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.prose { color: var(--muted); }
.prose p:first-child { margin-top: 0; }
.page-content { max-width: 65ch; }
.entry-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  margin: 0 0 0.5rem;
}

.page-hero { padding: 2.5rem 0 1rem; }
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  margin: 0 0 0.5rem;
  line-height: 1.15;
}
.page-hero .meta { max-width: 48ch; }
.contact-grid { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 800px) {
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
}
.map-embed {
  width: 100%;
  min-height: 320px;
  height: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ecece8;
}

.site-footer {
  margin-top: 2.5rem;
  border-top: none;
  background: var(--ink);
  padding: 2.5rem 0 1.5rem;
  color: #b0b0b0;
}
.footer-grid { display: grid; gap: 1.5rem; }
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.footer-brand:hover {
  color: #fff;
  text-decoration: none;
}
.footer-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
}
.site-footer h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1rem;
}
.site-footer p { margin: 0; line-height: 1.6; }
.site-footer a {
  color: var(--accent);
}
.site-footer a:hover {
  color: #c5df4a;
}
.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: #7a7a7a;
}
.empty {
  padding: 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.55);
}
.empty--wide {
  grid-column: 1 / -1;
  text-align: center;
}
.navigation.pagination {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}
.navigation.pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.navigation.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.navigation.pagination .page-numbers:hover {
  border-color: var(--ink);
  text-decoration: none;
}
.navigation.pagination .page-numbers.current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

/* ——— Motion (CSS + light JS) ——— */
@keyframes motion-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.motion-hero {
  animation: motion-fade-up 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--motion-delay, 0s);
}

.motion-reveal {
  opacity: 0;
  transform: translate3d(0, 22px, 0);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--motion-delay, 0s);
  will-change: opacity, transform;
}
.motion-reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.card.motion-reveal.is-visible:hover {
  transform: translateY(-5px);
}

.nav a {
  transition: color 0.18s ease;
}

.gallery-main img {
  transition: transform 0.5s ease;
}
.gallery-main:hover img {
  transform: scale(1.02);
}

.spec {
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.spec:hover {
  border-color: rgba(168, 197, 42, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(17, 17, 17, 0.05);
}

.spec.motion-reveal.is-visible:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .motion-hero,
  .motion-reveal,
  .motion-reveal.is-visible {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .card,
  .card:hover,
  .card-media img,
  .card:hover .card-media img,
  .btn,
  .btn:hover,
  .btn:active,
  .spec,
  .spec:hover,
  .gallery-main img,
  .gallery-main:hover img,
  .site-header {
    transition: none !important;
    transform: none !important;
    animation: none !important;
  }
  .card:hover,
  .spec:hover {
    box-shadow: var(--shadow);
  }
}
