/* ==========================================================================
   Satya Suwarna — Studio Arsitektur & Interior
   Style: Exaggerated Minimalism · warm white / ink / gold
   ========================================================================== */

:root {
  /* Warna */
  --ink: #171717;
  --ink-soft: #404040;
  --paper: #fdfcfa;
  --surface: #f6f4f0;
  --gold: #c6a75e;          /* aksen dekoratif */
  --gold-deep: #a16207;     /* teks emas di latar terang (WCAG) */
  --gold-bright: #e0c07c;   /* teks emas di latar gelap */
  --dark: #131313;
  --dark-2: #1c1b19;
  --line: #e7e2d9;
  --line-dark: #2e2c28;

  /* Tipografi */
  --font-display: "Cinzel", serif;
  --font-body: "Josefin Sans", sans-serif;

  /* Ritme */
  --space-section: clamp(5rem, 12vw, 9rem);
  --container: 1200px;
  --radius: 2px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 300ms;
}

/* ---------- Reset ringkas ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; background: none; border: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
em { font-style: normal; color: var(--gold-bright); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 5vw, 2.5rem); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  padding-block: 1.1rem;
  transition: background-color var(--dur) ease, box-shadow var(--dur) ease, padding var(--dur) ease;
  color: #fff;
}
.nav--solid {
  background: rgba(253, 252, 250, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  color: var(--ink);
  padding-block: 0.65rem;
}
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.7rem; }
.nav__logo { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25)); }
.nav--solid .nav__logo { filter: none; }
.nav__name {
  font-family: var(--font-display); font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.95rem;
  white-space: nowrap;
}
.nav__links { display: flex; align-items: center; gap: clamp(1.25rem, 3vw, 2.25rem); }
.nav__link {
  font-size: 0.82rem; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 400;
  padding: 0.5rem 0.1rem; position: relative;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0.15rem;
  width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current]::after { transform: scaleX(1); }
.nav__link--cta {
  border: 1px solid var(--gold); color: var(--gold-bright);
  padding: 0.65rem 1.3rem;
  transition: background-color var(--dur) ease, color var(--dur) ease;
}
.nav--solid .nav__link--cta { color: var(--gold-deep); }
.nav__link--cta:hover { background: var(--gold); color: var(--ink); }
.nav__link--cta::after { display: none; }

.nav__toggle { display: none; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100dvh;
  display: grid; place-items: center;
  overflow: hidden; color: #fff; text-align: center;
}
.hero__media, .hero__media img {
  position: absolute; inset: 0; width: 100%; height: 100%;
}
.hero__media img { object-fit: cover; animation: kenburns 18s ease-out both; }
@keyframes kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(10, 9, 8, 0.82) 0%, rgba(10, 9, 8, 0.35) 45%, rgba(10, 9, 8, 0.45) 100%);
}
.hero__content { position: relative; z-index: 1; padding: 6rem 1.5rem 4rem; max-width: 60rem; }
.hero__eyebrow {
  font-size: 0.8rem; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--gold-bright); margin-bottom: 1.4rem; font-weight: 400;
}
.hero__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.6rem, 9vw, 6.5rem);
  line-height: 1.05; letter-spacing: 0.06em; text-transform: uppercase;
  text-wrap: balance;
}
.hero__tagline {
  margin: 1.6rem auto 2.4rem; max-width: 34rem;
  font-size: clamp(1rem, 2.2vw, 1.2rem); font-weight: 300; line-height: 1.8;
  color: rgba(255, 255, 255, 0.88);
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 1; color: rgba(255,255,255,0.85); padding: 0.75rem;
  animation: floaty 2.6s ease-in-out infinite;
}
@keyframes floaty { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* Animasi masuk hero */
.anim { opacity: 0; transform: translateY(26px); animation: rise 0.9s var(--ease-out) forwards; animation-delay: calc(var(--d, 0) * 160ms + 200ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ==========================================================================
   Tombol
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 48px; padding: 0.85rem 2rem;
  font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 500;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color var(--dur) ease, color var(--dur) ease, border-color var(--dur) ease, transform 150ms ease;
  cursor: pointer;
}
.btn:active { transform: scale(0.97); }
.btn--gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* ==========================================================================
   Section umum
   ========================================================================== */
.section { padding-block: var(--space-section); }
.section--dark { background: var(--dark); color: rgba(255, 255, 255, 0.92); }

.section__head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section__eyebrow {
  font-size: 0.78rem; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--gold-deep); margin-bottom: 0.9rem; font-weight: 500;
}
.section--dark .section__eyebrow { color: var(--gold-bright); }
.section__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(1.9rem, 5vw, 3.2rem); line-height: 1.15; letter-spacing: 0.02em;
  text-wrap: balance; max-width: 28ch;
}

/* ==========================================================================
   Filter
   ========================================================================== */
.filter { display: flex; gap: 0.5rem 1.75rem; flex-wrap: wrap; margin-bottom: clamp(2rem, 5vw, 3rem); }
.filter__btn {
  position: relative; padding: 0.6rem 0.2rem;
  font-size: 0.85rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ink-soft); transition: color var(--dur) ease;
  min-height: 44px;
}
.filter__btn::after {
  content: ""; position: absolute; left: 0; bottom: 0.35rem;
  width: 100%; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}
.filter__btn:hover { color: var(--ink); }
.filter__btn.is-active { color: var(--ink); font-weight: 500; }
.filter__btn.is-active::after { transform: scaleX(1); }

/* ==========================================================================
   Grid karya
   ========================================================================== */
.grid {
  display: grid; gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(3, 1fr);
}
.card {
  position: relative; display: block; overflow: hidden;
  aspect-ratio: 4 / 3; background: var(--surface);
  border-radius: var(--radius);
  cursor: zoom-in;
}
.card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out);
}
.card:hover img, .card:focus-visible img { transform: scale(1.06); }
.card__body {
  position: absolute; inset-inline: 0; bottom: 0; z-index: 1;
  padding: 2.2rem 1.4rem 1.2rem;
  background: linear-gradient(to top, rgba(10, 9, 8, 0.78), transparent);
  color: #fff;
  transform: translateY(6px); opacity: 0.95;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) ease;
}
.card:hover .card__body { transform: none; opacity: 1; }
.card__title { font-family: var(--font-body); font-weight: 500; font-size: 1.02rem; letter-spacing: 0.04em; }
.card__sub { font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-bright); margin-top: 0.2rem; }

.card.is-hidden { display: none; }
.card.is-filtering { animation: cardIn 500ms var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   Tentang / Filosofi
   ========================================================================== */
.about__text {
  max-width: 46rem; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.9;
  color: rgba(255, 255, 255, 0.78);
}
.values {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(3rem, 7vw, 5rem);
}
.values__item { border-top: 1px solid var(--line-dark); padding-top: 1.6rem; }
.values__num { font-family: var(--font-display); color: var(--gold-bright); font-size: 0.95rem; letter-spacing: 0.2em; }
.values__title { font-family: var(--font-body); font-weight: 500; font-size: 1.15rem; margin: 0.8rem 0 0.5rem; letter-spacing: 0.03em; }
.values__text { font-size: 0.98rem; color: rgba(255, 255, 255, 0.65); }

/* ==========================================================================
   Layanan
   ========================================================================== */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 3vw, 2rem); }
.service {
  background: var(--surface); border: 1px solid var(--line);
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: var(--radius);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) ease, border-color var(--dur) ease;
}
.service:hover {
  transform: translateY(-6px);
  border-color: var(--gold);
  box-shadow: 0 18px 40px -18px rgba(23, 23, 23, 0.18);
}
.service__icon { width: 44px; height: 44px; color: var(--gold-deep); margin-bottom: 1.4rem; }
.service__title { font-family: var(--font-display); font-weight: 500; font-size: 1.25rem; margin-bottom: 0.7rem; letter-spacing: 0.03em; }
.service__text { font-size: 0.98rem; color: var(--ink-soft); }

/* ==========================================================================
   Kontak
   ========================================================================== */
.contact { background: var(--dark-2); }
.contact__inner { text-align: center; max-width: 42rem; margin-inline: auto; }
.contact__logo { width: 88px; height: 88px; object-fit: contain; margin: 0 auto 1.6rem; }
.contact__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.15; letter-spacing: 0.02em;
  text-wrap: balance;
}
.contact__text { margin: 1.3rem auto 2.4rem; color: rgba(255, 255, 255, 0.72); max-width: 32rem; }

/* Form WhatsApp */
.contact__form { max-width: 30rem; margin-inline: auto; text-align: left; display: grid; gap: 1.4rem; }
.form__field { display: grid; gap: 0.5rem; }
.form__label {
  font-size: 0.75rem; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold-bright); font-weight: 500;
}
.form__input {
  font: inherit; font-weight: 300; color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 0.85rem 1rem; min-height: 48px; width: 100%;
  transition: border-color var(--dur) ease, background-color var(--dur) ease;
}
.form__input::placeholder { color: rgba(255, 255, 255, 0.62); }
.form__input:hover { border-color: #4a4741; }
.form__input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.06); }
.form__input--area { resize: vertical; min-height: 7rem; }
.form__input.is-invalid { border-color: #e0655a; }
.form__error { font-size: 0.85rem; color: #e0938b; }
.contact__submit { width: 100%; }
.form__hint { font-size: 0.85rem; color: rgba(255, 255, 255, 0.66); text-align: center; }
.form__input:disabled, .btn:disabled { opacity: 0.5; cursor: default; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background: var(--dark-2); border-top: 1px solid var(--line-dark); padding-block: 1.75rem; }
.footer__inner { text-align: center; font-size: 0.85rem; color: rgba(255, 255, 255, 0.55); letter-spacing: 0.06em; }

/* ==========================================================================
   Lightbox
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  background: rgba(8, 7, 6, 0.94);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 250ms ease;
}
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__figure { max-width: min(1100px, 92vw); }
.lightbox__img {
  max-width: 100%; max-height: 78dvh; object-fit: contain; margin-inline: auto;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: lbIn 350ms var(--ease-out);
}
@keyframes lbIn { from { opacity: 0; transform: scale(0.96); } to { opacity: 1; transform: none; } }
.lightbox__caption { text-align: center; color: #fff; margin-top: 1.2rem; display: grid; gap: 0.2rem; }
.lightbox__title { font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.08em; }
.lightbox__sub { font-size: 0.75rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-bright); }
.lightbox__close, .lightbox__nav {
  position: absolute; z-index: 1; color: rgba(255, 255, 255, 0.8);
  width: 52px; height: 52px; display: grid; place-items: center;
  transition: color var(--dur) ease, background-color var(--dur) ease;
  border-radius: 50%;
}
.lightbox__close:hover, .lightbox__nav:hover { color: var(--gold-bright); background: rgba(255, 255, 255, 0.06); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: clamp(0.25rem, 2vw, 1.5rem); }
.lightbox__nav--next { right: clamp(0.25rem, 2vw, 1.5rem); }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   Responsif
   ========================================================================== */
@media (max-width: 1023px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .services { grid-template-columns: 1fr; max-width: 34rem; }
  .values { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 767px) {
  .grid { grid-template-columns: 1fr; }
  .nav__name { display: none; }

  /* Menu seluler */
  .nav__toggle {
    display: grid; gap: 7px; padding: 12px; z-index: 2;
    width: 48px; height: 48px; place-content: center;
  }
  .nav__toggle span {
    display: block; width: 26px; height: 1.5px; background: currentColor;
    transition: transform var(--dur) var(--ease-out);
  }
  .nav.is-open .nav__toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
  .nav.is-open .nav__toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

  .nav__links {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 2.2rem;
    background: rgba(15, 14, 13, 0.97);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: #fff;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity var(--dur) ease, visibility 0s linear var(--dur);
  }
  .nav.is-open .nav__links {
    opacity: 1; visibility: visible; pointer-events: auto;
    transition: opacity var(--dur) ease;
  }
  .nav.is-open { color: #fff; }
  .nav__link { font-size: 1.05rem; }
  .nav.is-open .nav__link--cta { color: var(--gold-bright); }
}

/* ==========================================================================
   Reduced motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .hero__media img { animation: none; }
  .hero__scroll { animation: none; }
  .card img, .card__body, .service, .lightbox__img { transition: none; animation: none; }
}
