/* =========================================================
   Notaris & PPAT Feri Viradhammo L — landing page
   Mobile first · breakpoints: 640 / 768 / 1024 / 1280
   ========================================================= */

:root {
  --ink: #0e1726;
  --navy: #15233b;
  --navy-2: #1d2f4d;
  --steel: #8eadc8;
  --steel-soft: #dfe8f1;
  --paper: #f6f4ef;
  --white: #ffffff;
  --brass: #b08d57;
  --brass-soft: #e9dcc6;
  --text: #1b2433;
  --muted: #5d6676;
  --line: rgba(14, 23, 38, 0.1);
  --line-light: rgba(255, 255, 255, 0.16);
  --ok: #3fae7a;
  --off: #c9704f;

  --f-head: "Onest", ui-sans-serif, system-ui, sans-serif;
  --f-body: "Inter", ui-sans-serif, system-ui, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --gutter: 16px;
  --header-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 1px 2px rgba(14, 23, 38, 0.04), 0 12px 32px -12px rgba(14, 23, 38, 0.18);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3 { font-family: var(--f-head); margin: 0; letter-spacing: -0.025em; line-height: 1.08; color: var(--ink); }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: 0.8125rem; line-height: 1.5; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 500; font-size: 0.9375rem; letter-spacing: -0.005em;
  transition: transform .4s var(--ease), background-color .3s, color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn svg { font-size: 1.1em; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.875rem; }
.btn--block { width: 100%; }
.btn--dark { --bg: var(--ink); --fg: #fff; }
.btn--dark:hover { --bg: var(--navy-2); }
.btn--light { --bg: #fff; --fg: var(--ink); }
.btn--light:hover { box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); }
.btn--ghost { --bg: rgba(255,255,255,.12); --fg: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.28); }
.btn--ghost:hover { --bg: rgba(255,255,255,.22); }
.btn--line { --bg: transparent; --fg: var(--ink); border: 1px solid var(--line); }
.btn--line:hover { --bg: var(--steel-soft); }

.round {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  font-size: 18px;
  transition: background-color .3s, color .3s, transform .3s var(--ease), opacity .3s;
}
.round:hover { background: var(--steel-soft); }
.round:active { transform: scale(.94); }
.round:disabled { opacity: .35; pointer-events: none; }
.round--dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.round--dark:hover { background: var(--navy-2); }
.round--glass { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); color: #fff; backdrop-filter: blur(8px); }
.round--glass:hover { background: rgba(255,255,255,.24); }

/* ---------- Tags & headings ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 0.75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
}
.tag span {
  display: inline-grid; place-items: center;
  min-width: 34px; height: 24px; padding: 0 8px;
  border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--f-head); letter-spacing: 0; color: var(--ink);
}
.tag--light { color: rgba(255,255,255,.65); }
.tag--light span { border-color: var(--line-light); color: #fff; }
.h2 { font-size: clamp(2rem, 7.4vw, 3.5rem); font-weight: 600; margin-bottom: 16px; text-wrap: balance; }
.lead { font-size: 1.0625rem; color: var(--text); }

/* ---------- Status pill ---------- */
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 0.8125rem; font-weight: 500; color: var(--muted); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: #9aa3b0; position: relative; }
.status.is-open i { background: var(--ok); }
.status.is-open i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--ok); opacity: 0; animation: ping 2s var(--ease) infinite; }
.status.is-closed i { background: var(--off); }
.status--glass { padding: 8px 14px; border-radius: 999px; background: rgba(14,23,38,.45); color: #fff; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.14); }
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

/* =========================================================
   Header
   ========================================================= */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background-color .4s, box-shadow .4s, transform .5s var(--ease);
}
.header.is-scrolled { background: rgba(246,244,239,.82); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 1px 0 var(--line); }
.header__bar { height: 100%; display: flex; align-items: center; gap: 16px; }

.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text strong { font-family: var(--f-head); font-weight: 600; font-size: 1.0625rem; color: var(--ink); letter-spacing: -0.01em; }
.brand__text small { font-size: 0.6875rem; color: var(--muted); letter-spacing: .02em; }
.brand--light .brand__text strong { color: #fff; }
.brand--light .brand__text small { color: rgba(255,255,255,.6); }

.nav, .header__cta { display: none; }

.burger { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); display: grid; place-content: center; gap: 5px; position: relative; z-index: 61; }
.burger span { display: block; width: 18px; height: 1.6px; background: #fff; border-radius: 2px; transition: transform .45s var(--ease); }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.3px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.3px) rotate(-45deg); }

/* Mobile menu */
.menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--ink); color: #fff;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 38px) 32px);
  transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: circle(150% at calc(100% - 38px) 32px); }
.menu[hidden] { display: flex; visibility: hidden; }
.menu.is-open[hidden], .menu.is-open { visibility: visible; }
.menu__nav { display: grid; }
.menu__nav a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line-light);
  font-family: var(--f-head); font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em;
  opacity: 0; transform: translateY(12px);
  transition: opacity .5s, transform .6s var(--ease), color .3s;
}
.menu__nav a::after {
  content: ""; width: 7px; height: 7px; margin-right: 4px;
  border-top: 1.6px solid rgba(255,255,255,.45); border-right: 1.6px solid rgba(255,255,255,.45);
  transform: rotate(45deg); transition: transform .3s var(--ease), border-color .3s;
}
.menu__nav a:active::after, .menu__nav a:hover::after { transform: translateX(3px) rotate(45deg); border-color: var(--brass-soft); }
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .12s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .17s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .22s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .27s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .32s; }
.menu__foot { display: grid; gap: 14px; }
body.menu-open .header { z-index: 70; background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
body.menu-open .brand__text strong { color: #fff; }
body.menu-open .burger { background: #fff; }
body.menu-open .burger span { background: var(--ink); }
body.menu-open { overflow: hidden; }

/* =========================================================
   1. Hero
   ========================================================= */
.hero { padding-top: calc(var(--header-h) + 4px); }
.hero__frame {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  min-height: calc(100svh - var(--header-h) - 92px);
  min-height: max(560px, calc(100svh - var(--header-h) - 92px));
  display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--navy);
  isolation: isolate;
  /* Safari iOS tidak memotong anak ber-transform dengan border-radius saja */
  clip-path: inset(0 round var(--r-lg));
  -webkit-mask-image: -webkit-radial-gradient(white, black);
  transform: translateZ(0);
}
.hero__media { position: absolute; inset: -6% 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08); animation: heroIn 2.2s var(--ease) forwards; }
@keyframes heroIn { to { transform: scale(1); } }
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(14,23,38,.28) 0%, rgba(14,23,38,0) 22%),
    linear-gradient(0deg, rgba(14,23,38,.96) 0%, rgba(14,23,38,.86) 30%, rgba(14,23,38,.35) 58%, rgba(14,23,38,0) 78%);
}
/* film grain halus: menyamarkan kompresi foto & memberi tekstur */
.hero__frame::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .14; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__content { position: relative; z-index: 1; padding: 28px 20px 24px; color: #fff; }
.hero__title {
  color: #fff; font-weight: 600; letter-spacing: -0.04em; line-height: 1;
  font-size: clamp(1.75rem, 9.5vw, 3.25rem);
  margin-bottom: 16px;
}
.hero__title .line { display: block; overflow: hidden; white-space: nowrap; padding-bottom: .08em; }
.hero__title .line > span { display: inline-block; transform: translateY(105%); animation: lineUp 1.1s var(--ease) forwards; }
.hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.hero__title .line:nth-child(3) > span { animation-delay: .2s; color: var(--brass-soft); }
@keyframes lineUp { to { transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
.hero__lead {
  color: rgba(255,255,255,.86); font-size: 0.9375rem; line-height: 1.55;
  max-width: 21.5rem; margin-bottom: 24px; text-wrap: balance;
  animation: fadeUp 1s .35s var(--ease) both;
}
.hero__cta { width: 100%; justify-content: space-between; padding: 0 10px 0 24px; animation: fadeUp 1s .45s var(--ease) both; }
.hero__cta svg {
  width: 36px; height: 36px; padding: 9px; border-radius: 50%;
  background: var(--ink); color: #fff; stroke-width: 2;
}

/* =========================================================
   Sections
   ========================================================= */
.section { padding-block: 72px; }

/* ---------- 2. Profil ---------- */
.section.profile { padding-bottom: 0; }
.profile__grid { display: grid; gap: 32px; }
.profile__title { white-space: nowrap; margin-bottom: 18px; }
.profile__text {
  margin: 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.75; word-spacing: -0.02em;
  text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto;
}

.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fact {
  display: flex; flex-direction: column; justify-content: space-between; gap: 18px;
  min-height: 148px; padding: 18px;
  border-radius: var(--r-md); background: var(--white);
  box-shadow: 0 1px 0 rgba(14,23,38,.04), 0 10px 30px -18px rgba(14,23,38,.25);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.fact:hover { transform: translateY(-3px); box-shadow: 0 1px 0 rgba(14,23,38,.04), 0 18px 40px -20px rgba(14,23,38,.35); }
.fact__icon { font-size: 22px; color: var(--brass); stroke-width: 1.5; }
.fact__value { display: block; font-family: var(--f-head); font-weight: 600; font-size: clamp(1.5rem, 6.4vw, 2rem); line-height: 1; letter-spacing: -0.03em; color: var(--ink); white-space: nowrap; }
.fact__label { display: block; margin-top: 8px; min-height: 2.8em; font-size: 0.8125rem; line-height: 1.4; color: var(--muted); }
.fact--dark { background: var(--ink); box-shadow: 0 18px 40px -22px rgba(14,23,38,.7); }
.fact--dark .fact__value { color: #fff; }
.fact--dark .fact__label { color: rgba(255,255,255,.62); }
.fact--dark .fact__icon { color: var(--brass-soft); }

.profile__media { display: grid; gap: 12px; margin-top: 40px; }
.profile__fig { margin: 0; border-radius: var(--r-md); overflow: hidden; background: var(--steel-soft); aspect-ratio: 4 / 3; }
.profile__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.profile__fig:hover img { transform: scale(1.04); }

.ticker { margin-top: 56px; padding-block: 18px; border-block: 1px solid var(--line); overflow: hidden; background: var(--white); }
.ticker__track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.ticker__track span { display: inline-flex; align-items: center; gap: 48px; font-family: var(--f-head); font-weight: 500; font-size: 0.9375rem; color: var(--ink); white-space: nowrap; }
.ticker__track span::after { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--brass); }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- 3. Layanan ---------- */
.services { background: var(--white); }
.services__head { max-width: 34rem; margin-bottom: 28px; }
.services__head p { color: var(--muted); }

/* Carousel: panah di tepi + gradasi fade (pola dari ubu.jadiinwebsite.id) */
.carousel { position: relative; margin-inline: calc(var(--gutter) * -1); }
.carousel::before, .carousel::after {
  content: ""; position: absolute; top: 0; bottom: 0; z-index: 2;
  width: calc(var(--gutter) + 18px); pointer-events: none;
  opacity: 0; transition: opacity .35s;
}
.carousel::before { left: 0; background: linear-gradient(270deg, rgba(255,255,255,0), #fff 85%); }
.carousel::after { right: 0; background: linear-gradient(90deg, rgba(255,255,255,0), #fff 85%); }
.carousel.has-prev::before, .carousel.has-next::after { opacity: 1; }
.edge-arrows { display: none; }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%;
  gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 14px var(--gutter) 34px;
  margin-block: -8px -12px;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail:focus-visible { outline-offset: -2px; }

.svc {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  min-height: 300px; padding: 22px;
  border-radius: var(--r-md);
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.svc::before {
  content: ""; position: absolute; inset: auto -30% -60% auto; width: 80%; aspect-ratio: 1;
  border-radius: 50%; background: radial-gradient(circle, rgba(142,173,200,.35), transparent 70%);
  opacity: 0; transition: opacity .6s;
}
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.svc:hover::before { opacity: 1; }
.svc__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: auto; padding-bottom: 32px; }
.svc__no { font-family: var(--f-head); font-size: 0.8125rem; color: var(--muted); }
.svc__icon { font-size: 44px; color: var(--navy); stroke-width: 1.2; }
.svc h3 { font-size: 1.375rem; font-weight: 600; margin-bottom: 10px; }
.svc p { font-size: 0.9375rem; color: var(--muted); margin-bottom: 20px; }
.svc__btn {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 0.875rem; font-weight: 500; color: var(--ink);
  transition: background-color .3s, color .3s, border-color .3s;
  position: relative;
}
.svc__btn:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.svc__btn svg { transition: transform .4s var(--ease); }
.svc__btn:hover svg { transform: translateX(3px); }
.svc--accent { background: var(--navy); border-color: var(--navy); }
.svc--accent h3 { color: #fff; }
.svc--accent p, .svc--accent .svc__no { color: rgba(255,255,255,.7); }
.svc--accent .svc__icon { color: var(--brass-soft); }
.svc--accent .svc__btn { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.svc--accent .svc__btn:hover { background: #fff; color: var(--ink); }


/* ---------- 4. Ulasan ---------- */
.reviews { background: var(--white); }
.reviews__head { display: grid; gap: 20px; margin-bottom: 28px; }
.reviews__head p { color: var(--muted); margin: 0; }

.score {
  display: inline-flex; align-items: center; gap: 14px; justify-self: start;
  padding: 12px 16px 12px 18px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line);
  transition: background-color .3s, border-color .3s, transform .4s var(--ease);
}
.score:hover { background: var(--steel-soft); border-color: transparent; }
.score__num { font-family: var(--f-head); font-weight: 600; font-size: 2.25rem; line-height: 1; letter-spacing: -0.03em; color: var(--ink); }
.score__meta { display: grid; gap: 4px; font-size: 0.8125rem; color: var(--muted); }
.score__go { font-size: 18px; color: var(--ink); margin-left: 6px; transition: transform .3s var(--ease); }
.score:hover .score__go { transform: translate(2px, -2px); }

.reviews__layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.reviews__media { order: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reviews__photo { position: relative; display: block; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; background: var(--steel-soft); }
.reviews__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.reviews__photo::after {
  content: ""; position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.88) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%230e1726' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M12 4h4v4M8 16H4v-4M16 4l-5 5M4 16l5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease);
}
.reviews__photo:hover img { transform: scale(1.05); }
.reviews__photo:hover::after, .reviews__photo:focus-visible::after { opacity: 1; transform: none; }

.rail--reviews { grid-auto-columns: 86%; align-items: stretch; }
.review {
  margin: 0; scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 16px;
  padding: 22px; border-radius: var(--r-md);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .3s;
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__stars { display: inline-flex; gap: 2px; color: var(--brass); }
.review__stars svg { width: 15px; height: 15px; fill: currentColor; stroke: none; }
.review__tag { padding: 5px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.review__text { flex: 1; margin: 0; font-size: 0.9375rem; line-height: 1.7; color: var(--text); }
.review__text::before { content: "\201C"; display: block; height: 22px; margin-bottom: 4px; font-family: var(--f-head); font-size: 3rem; line-height: 1; color: var(--brass); }
.review__by { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px dashed rgba(14,23,38,.14); }
.review__by strong { display: block; font-size: 0.9375rem; color: var(--ink); }
.review__by small { display: block; font-size: 0.75rem; color: var(--muted); }
.review__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--brass-soft); font-family: var(--f-head); font-weight: 600; }

/* ---------- 5. FAQ & Konsultasi ---------- */
.ask { background: var(--paper); }
.ask__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ask__head { margin-bottom: 28px; }
.ask__lead { color: var(--muted); max-width: 30rem; margin: 0; }

/* Accordion */
.faq { padding: 4px 20px; border-radius: var(--r-lg); background: #fff; box-shadow: 0 1px 0 rgba(14,23,38,.04), 0 20px 40px -28px rgba(14,23,38,.35); }
.faq__item:last-child { border-bottom: 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item h3 { margin: 0; font: inherit; letter-spacing: 0; }
.faq__q {
  width: 100%; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  padding: 18px 0; text-align: left; color: var(--ink);
  font-weight: 500; font-size: 1rem; line-height: 1.4;
}
.faq__icon {
  position: relative; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff;
  transition: background-color .35s, border-color .35s, transform .45s var(--ease);
}
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; border-radius: 2px;
  background: var(--ink); transform: translate(-50%, -50%); transition: transform .45s var(--ease), background-color .3s;
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__q:hover .faq__icon { border-color: var(--ink); }
.faq__item.is-open .faq__icon { background: var(--ink); border-color: var(--ink); transform: rotate(180deg); }
.faq__item.is-open .faq__icon::before, .faq__item.is-open .faq__icon::after { background: #fff; }
.faq__item.is-open .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0; padding: 0 48px 20px 0; color: var(--muted); font-size: 0.9375rem; line-height: 1.7; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease); }
.faq__a a { color: var(--ink); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__item.is-open .faq__a p { opacity: 1; transform: none; transition-delay: .08s; }

/* Composer (form → WhatsApp) */
.composer {
  display: grid; gap: 20px; padding: 22px 18px;
  border-radius: var(--r-lg); background: var(--ink); color: rgba(255,255,255,.78);
  box-shadow: 0 30px 60px -30px rgba(14,23,38,.55);
}
.composer__head h3 { color: #fff; font-size: 1.375rem; font-weight: 600; margin-bottom: 6px; }
.composer__head p { margin: 0; font-size: 0.875rem; color: rgba(255,255,255,.6); }
.composer__step { margin: 0; padding: 0; border: 0; min-width: 0; }
.composer__label { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; padding: 0; font-size: 0.875rem; font-weight: 500; color: #fff; }
.composer__label span {
  display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-light); font-size: 0.6875rem; color: var(--brass-soft); font-family: var(--f-head);
  transition: background-color .3s, color .3s, border-color .3s;
}
.composer__step.is-done .composer__label span { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.composer__label em { font-style: normal; font-weight: 400; color: rgba(255,255,255,.45); }
.composer__input {
  width: 100%; min-height: 52px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--line-light);
  background: rgba(255,255,255,.05); color: #fff; font-size: 1rem; /* 16px: cegah zoom iOS */
  outline: none; resize: none; appearance: none;
  transition: border-color .3s, background-color .3s, box-shadow .3s;
}
textarea.composer__input { min-height: 76px; line-height: 1.5; }
.composer__input::placeholder { color: rgba(255,255,255,.35); }
.composer__input:focus { border-color: var(--brass); background: rgba(255,255,255,.08); box-shadow: 0 0 0 4px rgba(176,141,87,.18); }
.composer__step.is-invalid .composer__input { border-color: var(--off); }
.composer__step.is-invalid .select { animation: shake .4s; }
.select { position: relative; }
.select select { padding-right: 44px; cursor: pointer; }
.select select:invalid { color: rgba(255,255,255,.4); }
.select option { color: var(--ink); background: #fff; }
.select svg { position: absolute; right: 16px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: rgba(255,255,255,.6); pointer-events: none; transition: transform .3s var(--ease); }
.select:focus-within svg { transform: translateY(-50%) rotate(180deg); color: var(--brass-soft); }

/* CTA kirim */
.send {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px;
  padding: 8px 20px 8px 8px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 600; font-size: 1rem;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.send::before { /* kilau yang menyapu */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 35%, rgba(176,141,87,.28) 50%, transparent 65%);
  transform: translateX(-120%); animation: sweep 3.6s var(--ease) 1.2s infinite;
}
.send__icon {
  display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; transition: background-color .35s, transform .5s var(--ease);
}
.send__icon svg { width: 20px; height: 20px; fill: currentColor; stroke: none; }
.send__label { flex: 1; text-align: left; }
.send__arrow { width: 18px; height: 18px; stroke-width: 2.2; transition: transform .4s var(--ease); }
.send:hover { box-shadow: 0 16px 34px -14px rgba(0,0,0,.6), 0 0 0 4px rgba(176,141,87,.25); transform: translateY(-2px); }
.send:hover .send__icon { background: var(--brass); transform: rotate(-12deg) scale(1.06); }
.send:hover .send__arrow { transform: translateX(4px); }
.send:active { transform: scale(.98); }
.send.is-ready .send__icon { animation: readyPulse 1.8s var(--ease) infinite; }
@keyframes sweep { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
@keyframes readyPulse { 0% { box-shadow: 0 0 0 0 rgba(176,141,87,.6); } 100% { box-shadow: 0 0 0 12px rgba(176,141,87,0); } }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.picks--inline { display: flex; flex-wrap: wrap; }
.pick { position: relative; display: block; }
.pick input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.pick span {
  display: flex; align-items: center; height: 100%; min-height: 44px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--line-light);
  font-size: 0.8125rem; line-height: 1.3; color: rgba(255,255,255,.82);
  transition: background-color .25s, color .25s, border-color .25s, transform .3s var(--ease);
}
.picks--inline .pick span { border-radius: 999px; padding: 0 16px; }
.pick:hover span { border-color: rgba(255,255,255,.4); }
.pick input:checked + span { background: #fff; color: var(--ink); border-color: #fff; font-weight: 500; }
.pick input:active + span { transform: scale(.97); }
.pick input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }


/* ---------- Footer ---------- */
.footer { margin-top: -1px; background: var(--ink); color: rgba(255,255,255,.6); padding: 8px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 0.875rem; }
.footer__grid { display: grid; gap: 32px; padding-block: 40px 36px; }
.footer__tagline { margin: 16px 0 0; max-width: 24rem; line-height: 1.65; color: rgba(255,255,255,.62); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 24px; align-content: start; }
.footer a:hover { color: #fff; }
.footer__label { margin: 0 0 12px; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.socials { display: flex; flex-wrap: wrap; gap: 10px; }
.social {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-light); color: #fff;
  transition: background-color .3s, color .3s, border-color .3s, transform .4s var(--ease);
}
.social svg { width: 17px; height: 17px; fill: currentColor; stroke: none; }
.social:hover, .social:focus-visible { background: #fff; color: var(--ink) !important; border-color: #fff; transform: translateY(-3px); }
.footer__legal { display: grid; gap: 6px; padding-top: 20px; border-top: 1px solid var(--line-light); font-size: 0.75rem; color: rgba(255,255,255,.45); }
.footer__legal p { margin: 0; }
.footer__legal a { color: rgba(255,255,255,.75); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); color: #fff;
  box-shadow: 0 0 0 1px rgba(176,141,87,.35), 0 14px 30px -10px rgba(14,23,38,.55);
  opacity: 0; visibility: hidden; transform: translateY(14px) scale(.85);
  transition: opacity .45s var(--ease), transform .5s var(--ease), visibility .45s, background-color .3s, box-shadow .3s;
}
.wa-float svg { width: 26px; height: 26px; fill: currentColor; stroke: none; transition: transform .4s var(--ease); }
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid var(--brass); opacity: 0; pointer-events: none;
}
.wa-float.is-visible { opacity: 1; visibility: visible; transform: none; }
.wa-float.is-visible::before { animation: waRing 2.6s var(--ease) 1s infinite; }
.wa-float:hover { background: var(--navy-2); box-shadow: 0 0 0 1px var(--brass), 0 18px 36px -10px rgba(14,23,38,.6); }
.wa-float:hover svg { transform: rotate(-12deg) scale(1.08); }
.wa-float:active { transform: scale(.93); }
@keyframes waRing { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

/* ---------- Sheet (dialog) ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; color: inherit; }
dialog::backdrop { background: rgba(14,23,38,.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sheet { width: 100%; margin: auto 0 0; background: transparent; }
.sheet__panel {
  background: #fff; border-radius: 24px 24px 0 0;
  padding: 10px 20px calc(20px + env(safe-area-inset-bottom));
  max-height: 86svh; overflow-y: auto;
  animation: sheetUp .5s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet__grip { display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
.sheet__head { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: start; margin-bottom: 16px; }
.sheet__kicker { grid-column: 1; margin: 0; font-size: 0.75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sheet__head h3 { grid-column: 1; font-size: 1.5rem; font-weight: 600; }
.sheet__head .round { grid-column: 2; grid-row: 1 / span 2; }
.sheet__body ul { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: d; }
.sheet__body li { counter-increment: d; display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.9375rem; }
.sheet__body li::before { content: counter(d, decimal-leading-zero); font-family: var(--f-head); font-size: 0.8125rem; color: var(--brass); padding-top: 2px; }
.sheet__body .note { padding: 12px 14px; border-radius: 12px; background: var(--steel-soft); font-size: 0.875rem; color: var(--navy); }
.sheet .btn { margin-top: 8px; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; height: 100%; background: rgba(8,13,22,.96); color: #fff; }
.lightbox[open] { display: grid; grid-template-rows: 1fr auto; place-items: center; padding: 64px 12px calc(16px + env(safe-area-inset-bottom)); }
.lightbox::backdrop { background: rgba(8,13,22,.9); }
.lightbox__fig { margin: 0; display: grid; gap: 12px; justify-items: center; max-height: 100%; min-height: 0; }
.lightbox__fig img { max-width: 100%; max-height: calc(100svh - 190px); object-fit: contain; border-radius: 12px; animation: fadeIn .4s var(--ease); }
.lightbox__fig figcaption { font-size: 0.875rem; color: rgba(255,255,255,.7); text-align: center; }
.lightbox__close { position: absolute; top: 12px; right: 12px; }
.lightbox__nav { display: flex; align-items: center; gap: 20px; font-size: 0.875rem; color: rgba(255,255,255,.7); font-variant-numeric: tabular-nums; }
@keyframes fadeIn { from { opacity: 0; transform: scale(.98); } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom)); z-index: 90;
  padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 0.875rem;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   ≥ 640px  large phones / small tablets
   ========================================================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .hero__cta { width: auto; gap: 18px; }
  .rail { grid-auto-columns: 46%; }
  .rail--reviews { grid-auto-columns: 62%; }
  .profile__media { grid-template-columns: 1fr 1fr; }
  .profile__text { font-size: 1.0625rem; }
}

/* =========================================================
   ≥ 768px  tablet
   ========================================================= */
@media (min-width: 768px) {
  :root { --header-h: 76px; }
  .section { padding-block: 104px; }
  .hero__frame { min-height: min(880px, calc(100svh - var(--header-h) - 48px)); border-radius: 32px; clip-path: inset(0 round 32px); }
  .hero__content { padding: 48px 48px 44px; }
  .hero__title { font-size: clamp(3.5rem, 8.4vw, 4.5rem); margin-bottom: 20px; }
  .hero__lead { font-size: 1.0625rem; max-width: 27rem; margin-bottom: 28px; }
  .hero__media img { object-position: 50% 22%; }
  .carousel { margin-inline: 0; }
  .reviews__head { grid-template-columns: 1fr auto; align-items: end; gap: 32px; margin-bottom: 36px; }
  .rail--reviews { grid-auto-columns: calc(50% - 8px); }
  .review { padding: 26px; }
  .reviews__media { gap: 16px; }
  .carousel::before, .carousel::after { width: 96px; }
  .rail { grid-auto-columns: calc(44.444% - 7.11px); gap: 16px; padding: 14px 20px 36px; margin-inline: -20px; scroll-padding-inline: 20px; }
  .edge-arrows { display: block; }
  .edge-arrow {
    position: absolute; top: calc(50% - 10px); z-index: 3;
    width: 48px; height: 48px; border-radius: 50%;
    display: grid; place-items: center;
    background: #fff; color: var(--ink); font-size: 20px;
    box-shadow: 0 0 0 1px rgba(14,23,38,.05), 0 8px 22px -8px rgba(14,23,38,.38);
    transform: translateY(-50%);
    transition: opacity .25s, transform .3s var(--ease), color .2s, box-shadow .25s;
  }
  .edge-arrow svg { stroke-width: 2; }
  .edge-arrow--prev { left: 0; }
  .edge-arrow--next { right: 0; }
  .edge-arrow:hover:not(:disabled) { transform: translateY(-50%) scale(1.08); box-shadow: 0 0 0 1px rgba(14,23,38,.05), 0 12px 28px -8px rgba(14,23,38,.45); }
  .edge-arrow:active:not(:disabled) { transform: translateY(-50%) scale(.95); }
  .edge-arrow:disabled { opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.8); }
  .svc { min-height: 380px; padding: 28px; }
  .facts { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .fact { min-height: 168px; }
  .composer { padding: 32px; }
  .picks { grid-template-columns: repeat(3, 1fr); }
  .footer { padding-bottom: 96px; }
  .footer__grid { grid-template-columns: 1.6fr 1fr auto; align-items: start; }
  .footer__nav { display: grid; gap: 10px; }
  .footer__legal { grid-template-columns: 1fr auto; }
  .toast { bottom: 32px; }
  .sheet { width: min(560px, calc(100% - 48px)); margin: auto; }
  .sheet__panel { border-radius: 24px; padding: 28px 32px 32px; animation: fadeIn .4s var(--ease); }
  .sheet__grip { display: none; }
}

/* =========================================================
   ≥ 1024px  laptop
   ========================================================= */
@media (min-width: 1024px) {
  :root { --gutter: 40px; }
  .burger { display: none; }
  .nav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.6); border: 1px solid var(--line); backdrop-filter: blur(10px); }
  .nav a { position: relative; padding: 9px 16px; border-radius: 999px; font-size: 0.875rem; font-weight: 500; color: var(--muted); transition: color .3s, background-color .3s; }
  .nav a:hover { color: var(--ink); }
  .nav a.is-active { color: var(--ink); font-weight: 700; }
  .header__cta { display: inline-flex; }

  .hero__content { padding: 64px 64px 56px; }
  .hero__frame {
    min-height: min(760px, calc(100svh - var(--header-h) - 24px));
    background:
      radial-gradient(120% 90% at 0% 100%, rgba(176,141,87,.16), transparent 55%),
      linear-gradient(160deg, #1a2a46 0%, var(--ink) 70%);
  }
  /* foto hanya di sisi kanan, memudar ke panel navy */
  .hero__media { inset: -6% 0 -6% 44%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%); mask-image: linear-gradient(90deg, transparent 0, #000 34%); }
  .hero__media img { object-position: 36% 40%; }
  .hero__shade { background: linear-gradient(0deg, rgba(14,23,38,.55) 0%, rgba(14,23,38,0) 35%); }

  .hero__title { font-size: clamp(3.5rem, 5.2vw, 5rem); }
  .hero__lead { font-size: 1.125rem; max-width: 30rem; }

  .profile__grid { grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: stretch; }
  .profile__intro { display: flex; flex-direction: column; justify-content: center; }
  .profile__text { font-size: 1.0625rem; line-height: 1.8; }
  .facts { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: 100%; }
  .fact { min-height: 0; padding: 26px; }
  .fact__icon { font-size: 26px; }
  .fact__value { font-size: clamp(2rem, 3vw, 2.625rem); }
  .fact__label { font-size: 0.875rem; }
  .profile__media { gap: 16px; margin-top: 56px; }

  .rail { grid-auto-columns: calc(30.303% - 14.55px); }
  .svc { min-height: 420px; }



  .reviews__layout { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; align-items: stretch; }
  .reviews__media { order: 0; gap: 14px; align-items: start; }
  .reviews__photo { aspect-ratio: auto; height: calc(100% - 56px); min-height: 260px; }
  .reviews__photo--b { margin-top: 56px; }
  .rail--reviews { grid-auto-columns: calc(50% - 8px); }

  .ask__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
  .ask__faq { display: flex; flex-direction: column; }
  .faq { flex: 1; padding: 8px 32px; }
  .composer { padding: 36px; align-content: space-between; }
  .picks { grid-template-columns: 1fr 1fr; }
  .faq__q { font-size: 1.0625rem; padding: 22px 0; }
}

/* Hover only where it exists */
@media (hover: none) {
  .svc:hover, .review:hover { transform: none; box-shadow: none; }
  .reviews__photo::after { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
