/*
Theme Name: SewaSKK Konstruksi
Theme URI: https://sewaskkkonstruksi.com/
Description: Tema ringan khusus untuk sewaskkkonstruksi.com. Tampilan tiap halaman ada di folder content/.
Version: 1.1.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: sewaskk
*/

@import url("https://fonts.googleapis.com/css2?family=DM+Serif+Display&display=swap");

:root {
  --navy: #002b49;
  --navy-2: #0a3d60;
  --navy-3: #16507a;
  --amber: #f2b31b;
  --orange: #b45f06;
  --ink: #16222c;
  --muted: #55636f;
  --line: #dfe5ea;
  --paper: #ffffff;
  --mist: #f4f6f8;
  --wa: #128c4b;
  --radius: 10px;
  --wrap: 1160px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.65; }
img, svg { max-width: 100%; display: block; }
a { color: var(--navy-3); }
a:hover { color: var(--orange); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 800; letter-spacing: -.015em; }
h1 { font-size: clamp(2.05rem, 5vw, 3.35rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: #fff; padding: 8px 14px; }
.section { padding: 76px 0; }
.section.alt { background: var(--mist); }
.section-head { max-width: 680px; margin-bottom: 38px; }
.section-head p { color: var(--muted); margin: 0; }
.eyebrow { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 11px 22px; border: 2px solid transparent; border-radius: 8px; font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0d7a40; color: #fff; }
.btn-amber { background: var(--amber); color: var(--navy); }
.btn-amber:hover { background: #ffc73d; color: var(--navy); }
.btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.btn-line { border-color: var(--navy); color: var(--navy); }
.btn-line:hover { background: var(--navy); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-block { width: 100%; }

/* Kepala halaman */
.topbar { background: var(--navy); color: #d5e1ea; font-size: .84rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; }
.topbar a { color: var(--amber); font-weight: 700; text-decoration: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-weight: 800; font-size: 1.1rem; line-height: 1.05; margin-right: auto; }
.brand small { display: block; font-size: .67rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.brand svg { width: 50px; height: 52px; flex: none; overflow: visible; }
.brand-name { display: block; font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; line-height: 1; background: linear-gradient(105deg, var(--navy) 38%, #ffb300 50%, var(--navy) 62%) 100% 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: logo-text 3.2s ease-in-out infinite; }
.brand-name b { font-weight: 800; background: linear-gradient(105deg, #a8650a 30%, #f5a800 45%, #ffd24d 50%, #f5a800 55%, #a8650a 70%) 100% 0 / 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: logo-text 3.2s ease-in-out infinite; }
.site-footer .brand-name { background-image: linear-gradient(105deg, #fff 38%, var(--amber) 50%, #fff 62%); }
.logo-mark { animation: logo-glow 3.2s ease-in-out infinite; }
.logo-shine { animation: logo-shine 3.2s ease-in-out infinite; }
.logo-spark { transform-box: fill-box; transform-origin: center; opacity: 0; animation: logo-spark 3.2s ease-in-out infinite; }
@keyframes logo-shine {
  0% { transform: translateX(0) skewX(-18deg); }
  40%, 100% { transform: translateX(110px) skewX(-18deg); }
}
@keyframes logo-text {
  0%, 10% { background-position: 100% 0; }
  55%, 100% { background-position: 0 0; }
}
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 2px 3px rgba(0, 31, 53, .35)); }
  35% { filter: drop-shadow(0 0 12px rgba(255, 190, 30, 1)); }
}
@keyframes logo-spark {
  0%, 30% { opacity: 0; transform: scale(0) rotate(0); }
  45% { opacity: 1; transform: scale(1.25) rotate(60deg); }
  62%, 100% { opacity: 0; transform: scale(0) rotate(120deg); }
}
.nav ul { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.nav a { display: block; padding: 9px 10px; border-radius: 6px; color: var(--ink); font-size: .9rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--mist); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--orange); }
.header-cta { min-height: 42px; padding: 8px 15px; font-size: .9rem; }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; background: none; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; margin: 4px 0; background: var(--navy); }

/* Hero */
.hero { position: relative; overflow: hidden; color: #dbe6ee; background-color: var(--navy); background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px); background-size: 38px 38px; }
.hero h1, .hero h2 { color: #fff; }
.hero .eyebrow { color: var(--amber); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 52px; align-items: center; padding-top: 66px; padding-bottom: 70px; }
.hero-lead { font-size: 1.14rem; max-width: 600px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: .92rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 9px; height: 9px; background: var(--amber); transform: rotate(45deg); flex: none; }

/* Kalkulator biaya */
.estimator { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 26px; border-top: 5px solid var(--amber); box-shadow: 0 20px 44px rgba(0, 16, 30, .35); }
.hero .estimator h2 { color: var(--navy); font-size: 1.28rem; margin-bottom: 4px; }
.estimator > p { font-size: .9rem; color: var(--muted); margin-bottom: 16px; }
.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 5px; }
.field input, .field select, .field textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #b9c5cf; border-radius: 7px; background: #fff; color: var(--ink); font: inherit; font-size: 16px; }
.field textarea { min-height: 112px; resize: vertical; }
.est-result { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 16px 0; padding: 12px 14px; background: var(--mist); border-left: 4px solid var(--orange); }
.est-result span { font-size: .85rem; color: var(--muted); }
.est-result strong { font-size: 1.42rem; color: var(--orange); }

/* Angka */
.stats { background: var(--amber); color: var(--navy); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding-top: 20px; padding-bottom: 20px; }
.stat strong { display: block; font-size: 1.7rem; font-weight: 800; line-height: 1.15; }
.stat span { font-size: .87rem; font-weight: 600; }

/* Kartu */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card p { color: var(--muted); font-size: .96rem; }
.card p:last-child { margin-bottom: 0; }
.card .tag { font-size: .74rem; font-weight: 700; letter-spacing: .1em; color: var(--orange); margin-bottom: 9px; }
.card .more { margin-top: auto; font-weight: 700; font-size: .93rem; text-decoration: none; }
.card.link-card { color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.card.link-card:hover { border-color: var(--navy-3); transform: translateY(-2px); color: inherit; }

/* Tangga jenjang */
.ladder { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ladder-group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.ladder-group header { background: var(--navy); color: #fff; padding: 13px 18px; font-weight: 700; }
.ladder-group header small { display: block; color: var(--amber); font-weight: 600; }
.ladder-group ol { margin: 0; padding: 0; list-style: none; }
.ladder-group li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; border-top: 1px solid var(--line); font-size: .95rem; }
.ladder-group li strong { color: var(--orange); white-space: nowrap; }

/* Langkah */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--navy); padding-top: 14px; }
.steps li::before { content: "0" counter(step); display: block; font-size: 1.5rem; font-weight: 800; color: var(--orange); margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Tabel harga */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.chips a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--navy); font-size: .9rem; font-weight: 600; text-decoration: none; }
.chips a:hover { border-color: var(--navy); }
.price-block { margin-bottom: 52px; scroll-margin-top: 90px; }
.price-block:last-child { margin-bottom: 0; }
.table-note { margin: 12px 0 0; font-size: .88rem; color: var(--muted); }
.flag { margin: 14px 0 0; padding: 11px 14px; background: #fff8e3; border: 1px solid #e8c766; border-radius: 7px; color: #6e4a00; font-size: .93rem; font-weight: 600; }
table.price { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); }
table.price th { background: var(--navy); color: #fff; padding: 12px 16px; text-align: left; font-size: .88rem; }
table.price td { padding: 12px 16px; border-top: 1px solid var(--line); }
table.price tbody tr:nth-child(even) { background: #f8fafb; }
table.price td:first-child { font-weight: 700; color: var(--navy); }
table.price .amount { font-weight: 800; color: var(--orange); white-space: nowrap; }

/* Dua kolom & isi */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 46px; align-items: start; }
.prose { max-width: 740px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.7em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.checklist { margin: 0 0 1em; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 26px; margin-bottom: 9px; }
.checklist li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 7px; height: 12px; border: solid var(--wa); border-width: 0 3px 3px 0; transform: rotate(40deg); }
.aside-box { position: sticky; top: 92px; background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.aside-box h3 { margin-bottom: 8px; }
.aside-box p { font-size: .95rem; color: var(--muted); }

/* Hero halaman dalam */
.page-hero .wrap { padding-top: 50px; padding-bottom: 50px; }
.page-hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.85rem); max-width: 800px; }
.page-hero p { max-width: 680px; font-size: 1.08rem; margin-bottom: 22px; }
.page-hero p:last-child { margin-bottom: 0; }

/* FAQ */
.faq { max-width: 820px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
summary { padding: 15px 44px 15px 18px; position: relative; font-weight: 700; color: var(--navy); cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 18px; top: 10px; font-size: 1.5rem; color: var(--orange); }
details[open] summary::after { content: "\2212"; }
details > div { padding: 0 18px 16px; color: var(--muted); }
details > div p:last-child { margin-bottom: 0; }

/* CTA */
.cta-band { background: var(--navy-2); color: #dbe6ee; }
.cta-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap; padding-top: 42px; padding-bottom: 42px; }
.cta-band h2 { color: #fff; margin-bottom: 6px; font-size: 1.65rem; }
.cta-band p { margin: 0; max-width: 620px; }

/* Blog */
.post-card h2, .post-card h3 { font-size: 1.14rem; }
.post-meta { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 34px; }
.pagination .page-numbers { padding: 7px 13px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.pagination .current { background: var(--navy); color: #fff; }

/* Kaki halaman */
.site-footer { background: #001f35; color: #b9c8d4; font-size: .93rem; }
.site-footer .footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 34px; padding-top: 54px; padding-bottom: 38px; }
.site-footer h3 { color: #fff; font-size: .95rem; margin-bottom: 12px; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin-bottom: 7px; }
.site-footer a { color: #d5e1ea; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.site-footer .brand { color: #fff; margin-bottom: 12px; }
.site-footer .brand small { color: #9fb2c1; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 22px; padding-top: 15px; padding-bottom: 15px; font-size: .85rem; }
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 40; display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 8px 20px rgba(0, 0, 0, .28); }
.wa-float:hover { background: #0d7a40; color: #fff; }
.wa-float svg { width: 28px; height: 28px; }

/* Animasi: hero */
.hero { isolation: isolate; background-image: none; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(0, 28, 48, .9) 0%, rgba(0, 28, 48, .74) 48%, rgba(0, 28, 48, .42) 100%); }
.hero-slides { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-slides img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: 0; animation: slide-fade 35s linear infinite, slide-zoom 35s ease-out infinite; }
.hero-slides img:nth-child(2) { animation-delay: 7s; }
.hero-slides img:nth-child(3) { animation-delay: 14s; }
.hero-slides img:nth-child(4) { animation-delay: 21s; }
.hero-slides img:nth-child(5) { animation-delay: 28s; }
@keyframes slide-fade { 0% { opacity: 0; } 5% { opacity: 1; } 20% { opacity: 1; } 25% { opacity: 0; } 100% { opacity: 0; } }
@keyframes slide-zoom { 0% { transform: scale(1.12); } 25% { transform: scale(1); } 100% { transform: scale(1); } }
.hero-grid > div > *, .page-hero .wrap > * { animation: rise-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-grid > div > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: .12s; }
.hero-grid > div > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: .24s; }
.hero-grid > div > :nth-child(4), .page-hero .wrap > :nth-child(4) { animation-delay: .36s; }
.hero-grid > div > :nth-child(5) { animation-delay: .48s; }
.estimator { animation: card-in .8s .25s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } }
@keyframes card-in { from { opacity: 0; transform: translateX(44px) scale(.96); } }

/* Animasi: tombol */
.btn { position: relative; overflow: hidden; transition: background .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0, 31, 53, .25); }
.btn::after { content: ""; position: absolute; top: -20%; left: -60%; width: 40%; height: 140%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-18deg); pointer-events: none; }
.btn-wa::after, .btn-amber::after { animation: btn-shine 3.4s ease-in-out infinite; }
.btn:hover::after { animation: btn-shine .8s ease-out; }
@keyframes btn-shine { 0% { left: -60%; } 45%, 100% { left: 130%; } }
.hero-grid .btn-wa { animation: rise-in .7s .24s both, cta-pulse 2.4s 1.2s ease-out infinite; }
@keyframes cta-pulse { 0% { box-shadow: 0 0 0 0 rgba(242, 179, 27, .75); } 70%, 100% { box-shadow: 0 0 0 16px rgba(242, 179, 27, 0); } }

/* Animasi: elemen saat digulir (kelas diberikan oleh main.js) */
.reveal { opacity: 0; transform: translateY(30px) scale(.98); }
.reveal.in { opacity: 1; transform: none; transition: opacity .65s ease, transform .65s cubic-bezier(.2, .7, .2, 1); }

/* Animasi: kartu, tabel, dan menu */
.card { position: relative; overflow: hidden; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--amber), var(--orange)); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0, 43, 73, .16); }
.card:hover::before { transform: scaleX(1); }
.card.link-card:hover { transform: translateY(-6px); }
.ladder-group { transition: transform .2s, box-shadow .2s; }
.ladder-group:hover { transform: translateY(-5px); box-shadow: 0 14px 28px rgba(0, 43, 73, .15); }
.ladder-group li, table.price tbody tr { transition: background .15s; }
.ladder-group li:hover, table.price tbody tr:hover { background: #fff6dc; }
.steps li { transition: border-color .2s, transform .2s; }
.steps li:hover { border-color: var(--amber); transform: translateY(-4px); }
.nav a { position: relative; }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.chips a { transition: background .15s, color .15s, transform .15s; }
.chips a:hover { background: var(--navy); color: #fff; transform: translateY(-2px); }
.site-header { transition: box-shadow .2s; }
.site-header.scrolled { box-shadow: 0 8px 22px rgba(0, 31, 53, .14); }
.est-result strong.pop { animation: pop .35s ease-out; }
@keyframes pop { 40% { transform: scale(1.18); } }
.scroll-bar { position: fixed; left: 0; right: 0; top: 0; z-index: 100000; height: 3px; background: linear-gradient(90deg, var(--amber), var(--orange)); transform: scaleX(0); transform-origin: left; pointer-events: none; }

/* Foto: kartu, galeri, dan foto halaman */
.card-photo { display: block; width: calc(100% + 48px); max-width: none; height: auto; aspect-ratio: 3 / 2; margin: -24px -24px 18px; object-fit: cover; transition: transform .5s ease; }
.card:hover .card-photo { transform: scale(1.05); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--navy); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.gallery figure:hover img { transform: scale(1.07); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 11px; background: linear-gradient(transparent, rgba(0, 28, 48, .88)); color: #fff; font-size: .86rem; font-weight: 600; }
.page-photo { margin: 0 0 26px; overflow: hidden; border-radius: var(--radius); }
.page-photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.page-photo figcaption { padding-top: 8px; color: var(--muted); font-size: .84rem; }
.wa-float { animation: wa-pulse 2.4s ease-out infinite; }
@keyframes wa-pulse { 0% { box-shadow: 0 8px 20px rgba(0, 0, 0, .28), 0 0 0 0 rgba(18, 140, 75, .6); } 70%, 100% { box-shadow: 0 8px 20px rgba(0, 0, 0, .28), 0 0 0 18px rgba(18, 140, 75, 0); } }

/* Tautan terkait */
.related { padding: 46px 0; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.3rem; margin-bottom: 16px; }
.related-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.related-links a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--navy); font-weight: 700; font-size: .95rem; text-decoration: none; transition: border-color .2s, transform .2s, box-shadow .2s; }
.related-links a::after { content: "\2192"; color: var(--orange); }
.related-links a:hover { border-color: var(--amber); transform: translateY(-3px); box-shadow: 0 10px 20px rgba(0, 43, 73, .12); }

/* Layar sedang */
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 14px 22px rgba(0, 0, 0, .1); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 8px 20px 14px; }
  .nav a { padding: 12px 8px; font-size: 1rem; border-bottom: 1px solid var(--mist); }
  .cards, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Ponsel & tablet kecil */
@media (max-width: 820px) {
  .section { padding: 54px 0; }
  .hero-grid, .split { grid-template-columns: minmax(0, 1fr); gap: 34px; }
  .hero-grid { padding-top: 42px; padding-bottom: 46px; }
  .aside-box { position: static; }
  .ladder { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .related-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .header-cta { display: none; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topbar span { display: none; }
  .topbar:not(:has(a)) { display: none; }
  .topbar .wrap { justify-content: center; }
  .cards, .cards.two, .cards.four, .steps { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .related-links { grid-template-columns: minmax(0, 1fr); }
  .btn-row .btn { width: 100%; }
  table.price thead { display: none; }
  table.price, table.price tbody, table.price tr, table.price td { display: block; width: 100%; }
  table.price tr { padding: 10px 0; border-top: 1px solid var(--line); }
  table.price tr:first-child { border-top: 0; }
  table.price td { display: flex; justify-content: space-between; gap: 16px; padding: 5px 14px; border: 0; text-align: right; }
  table.price td::before { content: attr(data-label); font-weight: 600; font-size: .85rem; color: var(--muted); text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  /* Mode kurangi animasi: animasi berulang hanya berjalan tiga kali lalu berhenti */
  .logo-mark, .logo-shine, .logo-spark, .brand-name, .brand-name b, .btn-wa::after, .btn-amber::after { animation-iteration-count: 3; }
  .hero-slides img { animation: slide-fade 35s linear infinite; }
  .hero-grid .btn-wa { animation: rise-in .7s .24s both; }
}

/* ===== Logo segel SewaSKK (v2) ===== */
.brand-seal { gap: 12px; }
.brand-seal svg.seal-mark { width: 64px; height: 64px; overflow: visible; filter: none; animation: none; }
.seal-text { font: 700 11.5px/1 var(--font); letter-spacing: 2.5px; fill: var(--navy); }
.seal-rot { transform-box: view-box; transform-origin: 60px 60px; animation: seal-spin 26s linear infinite; }
.seal-core { fill: var(--navy); }
.seal-ring { fill: none; stroke: var(--amber); stroke-width: 3; stroke-dasharray: 100; animation: seal-ring-loop 6s cubic-bezier(.65,0,.35,1) infinite; }
.seal-check { fill: none; stroke: var(--amber); stroke-width: 7.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: seal-check-loop 6s cubic-bezier(.65,0,.35,1) infinite; }
.brand-seal:hover .seal-rot { animation-duration: 8s; }
.seal-name { display: block; font-family: "DM Serif Display", Georgia, serif; font-weight: 400; font-size: 1.8rem; line-height: 1; letter-spacing: .005em; color: var(--navy); background: none; -webkit-text-fill-color: currentColor; animation: none; }
.site-footer .seal-name { color: #fff; }
.site-footer .seal-text { fill: #fff; }
.site-footer .seal-core { fill: var(--amber); }
.site-footer .seal-ring { stroke: #fff; }
.site-footer .seal-check { stroke: var(--navy); }
@keyframes seal-spin { to { transform: rotate(360deg); } }
@keyframes seal-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
@keyframes seal-ring-loop { 0% { stroke-dashoffset: 100; opacity: 1; } 25% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; opacity: 1; } 95% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 100; opacity: 0; } }
@keyframes seal-check-loop { 0%, 18% { stroke-dashoffset: 100; opacity: 1; } 36% { stroke-dashoffset: 0; } 85% { stroke-dashoffset: 0; opacity: 1; } 95% { stroke-dashoffset: 0; opacity: 0; } 100% { stroke-dashoffset: 100; opacity: 0; } }
@media (max-width: 600px) { .brand-seal svg.seal-mark { width: 52px; height: 52px; } .seal-name { font-size: 1.5rem; } }
