/* Sorga Indah — public site */
:root {
  --ink: #23204f;
  --ink-2: #2f2a6b;
  --text: #2b2a33;
  --muted: #6b6878;
  --line: #e6e0d6;
  --bg: #fbf8f3;
  --bg-alt: #f3ede3;
  --card: #ffffff;
  --accent: #9a5b2e;
  --accent-2: #b8763f;
  --green: #1f6a3c;
  --wa: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(35, 32, 79, .06), 0 8px 24px rgba(35, 32, 79, .06);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.65 var(--sans); color: var(--text); background: var(--bg); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink-2); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.12; font-weight: 600; margin: 0 0 .5em; letter-spacing: -.005em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 820px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }
.lead { font-size: 1.12rem; color: #4a4858; max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .8em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7em 1.3em; border-radius: 999px;
  background: var(--ink-2); color: #fff; font-weight: 600; font-size: .95rem; text-decoration: none; border: 1.5px solid var(--ink-2);
  transition: background .2s, color .2s, border-color .2s, transform .2s; cursor: pointer; }
.btn:hover { background: var(--ink); border-color: var(--ink); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--ink-2); color: #fff; }
.btn-sm { min-height: 38px; padding: .45em 1em; font-size: .88rem; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #178a45; border-color: #178a45; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 248, 243, .94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand img { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) { padding: .5em .8em; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.site-nav a:not(.btn):hover { color: var(--ink-2); background: var(--bg-alt); }
.site-nav a[aria-current="page"] { color: var(--ink-2); box-shadow: inset 0 -2px 0 var(--accent-2); border-radius: 0; }
.nav-cta { margin-left: 8px; background: var(--wa); border-color: var(--wa); }
.nav-toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .25s, opacity .25s; }
@media (max-width: 880px) {
  .brand img { height: 38px; }
  .nav-toggle { display: block; }
  .site-nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 20px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-120%); transition: transform .3s ease; visibility: hidden; }
  .site-nav.open { transform: none; visibility: visible; }
  .site-nav a:not(.btn) { padding: .9em .2em; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.05rem; }
  .site-nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
  .nav-cta { margin: 14px 0 0; }
  .header-inner { min-height: 64px; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 clamp(28px, 5vw, 64px); background: radial-gradient(1200px 500px at 85% 20%, #efe5d6 0%, transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.6em; }
.hero-img { position: relative; }
.hero-img img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px 28px 140px 28px; box-shadow: var(--shadow); background: #ddd; }
.hero-img::before { content: ""; position: absolute; inset: auto -14px -14px auto; width: 60%; height: 60%; border: 2px solid var(--accent-2); border-radius: 0 0 150px 0; z-index: -1; opacity: .5; }
@media (max-width: 820px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-img { order: -1; max-width: 460px; }
  .hero-img img { aspect-ratio: 1 / 1; border-radius: 22px 22px 90px 22px; }
}

/* Features */
.features { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--card); }
.feature-list { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.feature-list li { display: flex; flex-direction: column; text-align: center; padding: 6px; }
.feature-list strong { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.feature-list span { font-size: .8rem; color: var(--muted); }
@media (max-width: 1000px) { .feature-list { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 560px) { .feature-list { grid-template-columns: repeat(2, 1fr); } .feature-list li:last-child { grid-column: 1 / -1; } }

/* Sections */
.section { padding: clamp(40px, 6vw, 80px) 0; }
.section-tight { padding-top: clamp(20px, 3vw, 36px); }
.section-alt { background: var(--bg-alt); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; text-decoration: none; color: var(--accent); }
.link-more:hover { text-decoration: underline; }
.page-head { padding: clamp(28px, 5vw, 56px) 0 10px; }
.page-head h1 { margin-bottom: .3em; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 1em; }
.crumbs a { color: var(--muted); }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.cat-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; background: #e9e2d6; text-decoration: none; }
.cat-tile img, .cat-tile .img-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-tile:hover img { transform: scale(1.04); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(20, 18, 50, .78), rgba(20, 18, 50, 0) 55%); }
.cat-name { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; color: #fff; font-family: var(--serif); font-size: 1.45rem; font-weight: 600; line-height: 1.1; }
.cat-name small { display: block; font-family: var(--sans); font-size: .78rem; font-weight: 500; opacity: .85; margin-top: 4px; }
@media (max-width: 700px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }

/* Product grid & cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 680px) { .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }
.card { display: flex; flex-direction: column; background: var(--card); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text);
  box-shadow: var(--shadow); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(35, 32, 79, .06), 0 16px 32px rgba(35, 32, 79, .1); color: var(--text); }
.card-img { position: relative; aspect-ratio: 1 / 1; background: #f1eee9; }
.card-img img, .card-img .img-placeholder { width: 100%; height: 100%; object-fit: contain; padding: 6px; mix-blend-mode: multiply; }
.card-body { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px 16px; }
.card-code { font-size: .75rem; font-weight: 600; letter-spacing: .06em; color: var(--accent); }
.card-name { font-weight: 600; line-height: 1.3; color: var(--ink); }
.card-size { font-size: .82rem; color: var(--muted); }
.badge { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.badge-inline { position: static; display: inline-block; margin-bottom: 1em; }
.img-placeholder { background: repeating-linear-gradient(45deg, #efe9df, #efe9df 10px, #f5f0e8 10px, #f5f0e8 20px); width: 100%; aspect-ratio: 1 / 1; }

/* Filters */
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: .45em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--text); text-decoration: none; font-size: .9rem; font-weight: 500; white-space: nowrap; }
.chip:hover { border-color: var(--ink-2); color: var(--ink-2); }
.chip[aria-current="page"] { background: var(--ink-2); color: #fff; border-color: var(--ink-2); }
.search input { width: 240px; max-width: 100%; min-height: 42px; padding: .5em 1em; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font: inherit; }
@media (max-width: 680px) { .search, .search input { width: 100%; } }
.count { color: var(--muted); font-size: .9rem; }
.empty { text-align: center; padding: 48px 16px; background: var(--card); border-radius: var(--radius); }

/* Product detail */
.product { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.gallery-main { position: relative; background: var(--card); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; }
.gallery-slide { position: absolute; inset: 0; display: none; cursor: zoom-in; }
.gallery-slide.is-active { display: block; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding: 2px; }
.thumb { flex: none; width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--card); cursor: pointer; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.is-active { border-color: var(--accent-2); }
.product-info { position: sticky; top: 96px; }
.product-code { font-weight: 600; letter-spacing: .1em; color: var(--accent); margin-bottom: .3em; }
.product-info h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.specs { margin: 1.2em 0; border-top: 1px solid var(--line); }
.specs div { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); font-size: .9rem; }
.specs dd { margin: 0; font-weight: 500; }
.inquiry { margin-top: 1.6em; padding: 20px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.inquiry-title { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); margin: 0; font-weight: 600; }
.inquiry .muted { margin: 0 0 6px; font-size: .92rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.about-img { margin: 0; }
.about-img img { border-radius: 20px; box-shadow: var(--shadow); width: 100%; }
.about-img figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.prose { font-size: 1.05rem; }
.prose p { max-width: 68ch; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(2.2rem, 6vw, 3.4rem); color: var(--ink); line-height: 1; }
.stats span { color: var(--muted); font-size: .92rem; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.photo-grid a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; background: #e9e2d6; cursor: zoom-in; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.photo-grid a:hover img { transform: scale(1.04); }
@media (max-width: 680px) { .photo-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; } }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 1.4em 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li { counter-increment: s; background: var(--card); border-radius: var(--radius); padding: 22px 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(s); font-family: var(--serif); font-size: 2rem; color: var(--accent-2); line-height: 1; }
.steps strong { color: var(--ink); }
.steps span { color: var(--muted); font-size: .93rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* CTA band */
.cta-band { background: var(--ink); color: #e9e7f5; padding: clamp(36px, 5vw, 64px) 0; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; color: #cfcce6; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--bg-alt); }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* Contact */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: stretch; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 16px; }
.contact-card { background: var(--card); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: 1.6rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 600; word-break: break-word; }
.map { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-height: 380px; background: #e9e2d6; }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.faq details { background: var(--card); border-radius: 12px; margin-bottom: 10px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--ink); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 20px 18px; margin: 0; color: #4a4858; }

/* Posts */
.posts { display: grid; gap: 24px; }
.post-card { display: grid; grid-template-columns: 1fr 1.2fr; gap: 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.post-card-img { position: relative; display: block; aspect-ratio: 4 / 3; background: #e9e2d6; }
.post-card-img img, .post-card-img .img-placeholder { width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; }
.post-card-body { padding: clamp(18px, 3vw, 32px); }
.post-card time, .post-date { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); font-weight: 600; }
.post-card h2 { font-size: 1.8rem; margin-top: .3em; }
.post-card h2 a { text-decoration: none; color: var(--ink); }
@media (max-width: 760px) { .post-card { grid-template-columns: 1fr; } }
.post-hero { margin: 0 0 24px; }
.post-hero img { border-radius: 18px; width: 100%; }

/* Footer */
.site-footer { background: #1b1940; color: #c9c6e2; padding: 48px 0 0; font-size: .93rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr .8fr; gap: 28px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-logo { width: 56px; height: 56px; border-radius: 10px; background: #fff; padding: 4px; margin-bottom: 12px; }
.footer-name { font-family: var(--serif); font-size: 1.35rem; color: #fff; margin-bottom: .3em; }
.footer-h { font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; color: #9d99c4; margin-bottom: .8em; }
.footer-bottom { margin-top: 36px; padding: 18px 20px 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; color: #9d99c4; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(15, 13, 35, .94); display: flex; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .1); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .22); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }

/* Fixed-ratio media boxes: the image fills the box regardless of its own size */
.card-img, .cat-tile, .photo-grid a, .post-card-img { position: relative; overflow: hidden; }
.card-img > img, .card-img > .img-placeholder, .cat-tile > img, .cat-tile > .img-placeholder,
.photo-grid a > img, .post-card-img > img, .post-card-img > .img-placeholder { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-img > .badge, .post-card-img > .badge { z-index: 1; }
