.nav nav a.active {
  color: var(--ink);
}
.nav nav a.active:after {
  transform: scaleX(1);
}

.page-hero {
  padding: 74px 0 34px;
  background: linear-gradient(180deg, rgba(255, 248, 239, 0.9), transparent);
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(38px, 5.2vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 12px 0 0;
}
.page-hero h1 em {
  font-style: normal;
  color: var(--accent);
}
.page-hero p {
  max-width: 62ch;
  margin-top: 16px;
  color: var(--muted);
  font-size: 17px;
}
.page-hero + .section {
  padding-top: 26px;
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff8ef;
  color: inherit;
  transition:
    transform 0.3s var(--ease),
    box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.link-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 18px 44px rgba(7, 5, 12, 0.08);
}
.link-card b {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.link-card b.card-icon {
  line-height: 0;
  letter-spacing: normal;
}
.link-card b.card-icon svg {
  width: 28px;
  height: 28px;
  display: block;
}
.link-card h3 {
  margin: 4px 0 0;
  font-size: 21px;
}
.link-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 0;
}
.link-card span {
  margin-top: auto;
  padding-top: 12px;
  font-weight: 800;
  font-size: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-content: flex-start;
  font-size: 14px;
  font-weight: 700;
}
.footer-nav a {
  color: inherit;
  opacity: 0.78;
}
.footer-nav a:hover {
  opacity: 1;
}

.appointment-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}
.appointment-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.appointment-feature {
  display: flex;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff8ef;
}
.appointment-feature > b {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.12em;
}
.appointment-feature strong,
.appointment-feature span {
  display: block;
}
.appointment-feature span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 5px;
}
.appointment-form {
  background: #07050c;
  border: 1px solid rgba(255, 248, 239, 0.08);
  padding: 22px;
  border-radius: 22px;
  box-shadow: 0 20px 50px rgba(7, 5, 12, 0.14);
}
.appointment-form input,
.appointment-form select,
.appointment-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255, 248, 239, 0.09);
  border-radius: 14px;
  padding: 13px 14px;
  background: #07050c;
  color: #fff8ef;
  outline: 0;
  margin-bottom: 10px;
}
.appointment-form select {
  color: #fff8ef;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.appointment-form .btn {
  margin-top: 3px;
}
.appointment-result {
  margin-top: 12px;
  padding: 13px;
  border-radius: 13px;
  background: #07050c;
  color: #fff8ef;
  font-size: 13px;
}
.appointment-result a {
  color: var(--accent);
  font-weight: 800;
  margin-right: 12px;
}
.scroll-top-btn {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9998;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff8ef;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(7, 5, 12, 0.12);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.2s ease,
    color 0.2s ease;
}
.scroll-top-btn.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top-btn:hover {
  background: var(--ink);
  color: #fff8ef;
  border-color: var(--ink);
}
@keyframes chatIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 800px) {
  .appointment-grid,
  .form-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .scroll-top-btn {
    left: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
  }
  .page-hero {
    padding: 54px 0 24px;
  }
}

html {
  overflow-x: clip;
}
body {
  overflow-x: clip;
  -webkit-tap-highlight-color: rgba(7, 5, 12, 0.06);
}

@media (max-width: 980px) {
  .nav {
    gap: 12px;
    min-height: 68px;
  }
  .logo {
    min-width: 0;
    flex: 0 1 auto;
    margin-right: auto;
  }
  .logo img {
    width: 168px;
  }
  .nav-cta {
    order: 2;
  }
  .menu-toggle {
    order: 3;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    font-size: 22px;
  }
  .menu-toggle:hover,
  .menu-toggle[aria-expanded="true"] {
    background: rgba(7, 5, 12, 0.06);
  }

  .nav nav {
    top: calc(100% + 8px);
    left: 14px;
    right: 14px;
    padding: 10px;
    gap: 2px;
    align-items: stretch;
    background: var(--surface);
    backdrop-filter: blur(20px);
  }
  .nav nav a {
    padding: 13px 12px;
    border-radius: 12px;
  }
  .nav nav a:after {
    display: none;
  }
  .nav nav a.active {
    background: rgba(232, 99, 106, 0.1);
    color: var(--ink);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }
  .section h2 {
    font-size: clamp(30px, 8.2vw, 40px);
  }
  .split {
    gap: 18px;
    margin-bottom: 28px;
  }
  .center {
    margin-bottom: 30px;
  }
  .split p,
  .center p,
  .cta p {
    font-size: 15.5px;
  }

  .hero {
    padding: 40px 0 64px;
  }
  .hero-grid {
    gap: 36px;
  }
  .hero h1 {
    font-size: clamp(34px, 9.2vw, 44px);
    margin: 10px 0 16px;
    overflow-wrap: break-word;
  }
  .hero-copy > p {
    font-size: 16px;
    margin-bottom: 24px;
  }
  .hero-visual {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  .hero-img {
    position: relative;
    inset: auto;
    height: 300px;
    border-radius: 26px;
  }
  .hero-label {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }
  .hero-label b {
    font-size: 21px;
  }
  .float-card {
    position: static;
    width: 100%;
    padding: 13px 15px;
    border-radius: 15px;
    animation: none;
    box-shadow: 0 10px 26px rgba(7, 5, 12, 0.08);
  }
  .float-card b {
    font-size: 13px;
  }
  .mini-proof {
    gap: 10px 18px;
    margin-top: 24px;
  }

  .actions .btn {
    flex: 1 1 100%;
    justify-content: center;
  }

  .page-hero {
    padding: 40px 0 20px;
  }
  .page-hero h1 {
    font-size: clamp(32px, 8.6vw, 42px);
  }
  .page-hero p {
    font-size: 15.5px;
    margin-top: 12px;
  }
  .page-hero + .section {
    padding-top: 20px;
  }

  .grid3 {
    gap: 14px;
  }
  .info-card,
  .service-card,
  .link-card {
    padding: 22px;
    border-radius: 18px;
  }
  .info-card h3,
  .service-card h3 {
    font-size: 19px;
    margin: 12px 0 6px;
  }
  .link-card h3 {
    font-size: 19px;
    margin: 0;
  }
  .center p {
    margin-top: 10px;
  }
  .info-card:hover,
  .service-card:hover,
  .product:hover,
  .portfolio-card:hover,
  .link-card:hover,
  .btn:hover {
    transform: none;
  }

  .products {
    gap: 14px;
  }
  .pimg {
    height: 190px;
  }
  .pbody {
    padding: 18px;
  }
  .pbody p {
    min-height: 0;
    font-size: 14.5px;
  }
  .search {
    padding: 14px 0;
  }
  .filters {
    gap: 8px;
  }
  .filters button {
    padding: 8px 13px;
    font-size: 13.5px;
  }

  .steps {
    gap: 0;
  }
  .step-card {
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
  }
  .step-card:last-child {
    border-bottom: 0;
  }
  .step-card h3 {
    margin: 8px 0 5px;
  }

  /* --- Portfolio --- */
  .portfolio {
    gap: 14px;
  }
  .portfolio-card {
    min-height: 230px;
    border-radius: 18px;
    padding: 20px;
  }
  .portfolio-card h3 {
    font-size: 21px;
  }

  /* --- Form --- */
  .ctag {
    gap: 28px;
  }
  .appointment-form,
  .cta form {
    padding: 18px;
    border-radius: 18px;
  }
  .appointment-feature {
    padding: 18px;
    border-radius: 14px;
  }

  .appointment-form .btn,
  .cta form .btn {
    width: 100%;
  }

  .foot {
    padding: 34px 0 22px;
    gap: 18px;
  }
  .footer-brand img {
    width: 160px;
  }
  .footer-nav {
    gap: 8px 16px;
  }

  .scroll-top-btn {
    bottom: calc(14px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 400px) {
  .logo img {
    width: 148px;
  }
  .nav-cta {
    padding: 9px 12px;
    font-size: 12.5px;
  }
  .nav {
    gap: 8px;
  }
}

.wa-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 19px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff8ef;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 14px 40px rgba(7, 5, 12, 0.22);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 46px rgba(7, 5, 12, 0.25);
  color: #fff8ef;
}
.wa-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(7, 5, 12, 0.5);
  box-shadow: 0 0 0 4px rgba(7, 5, 12, 0.06);
}

.consult-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.consult-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  text-align: center;
}
.consult-photo {
  height: 200px;
  background: var(--cream);
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
}
.consult-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.consult-body {
  padding: 18px;
}
.consult-body h3 {
  font-family: var(--font-head);
  font-size: 17px;
  margin: 2px 0;
}
.consult-body small {
  display: block;
  color: var(--muted);
  font-size: 12.5px;
}
.consult-body .btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
  padding: 10px 14px;
  font-size: 13.5px;
}

@media (max-width: 900px) {
  .consult-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .wa-float {
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 12px 16px;
    font-size: 13px;
  }
}

#konsultasi {
  scroll-margin-top: 90px;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.profile-item {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.profile-item b {
  display: block;
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.profile-item p {
  margin: 10px 0 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.about-quote {
  margin-top: 28px;
  font-style: italic;
  color: var(--muted);
}

@media (max-width: 900px) {
  .profile-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .profile-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

.partner-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.partner-item {
  aspect-ratio: 1.6 / 1;
  padding: 14px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.partner-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;

  transform-origin: center;
}
.partner-item span {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.testi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.testi-quote {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 18px;
}
.testi-who {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.testi-who img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  object-fit: cover;
}
.testi-who b {
  display: block;
  font-size: 13.5px;
}
.testi-who span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .partner-strip {
    grid-template-columns: repeat(3, 1fr);
  }
  .testi-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .partner-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .testi-card {
    padding: 20px;
  }
}
