/*
 * style.css — Fixed Version
 * Perbaikan:
 *  1. Fallback ditambahkan pada var(--white)
 *  2. -webkit-backdrop-filter ditambahkan untuk Safari
 *  3. min() diganti calc() + max-width untuk kompatibilitas browser lama
 *  4. Catatan Google Fonts import (tambahkan di header WordPress)
 *
 * PENTING: Pastikan Google Fonts sudah di-import di header WordPress:
 * <link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600&family=Cormorant+Garamond:ital,wght@1,500&display=swap" rel="stylesheet">
 */

:root {
  --bg: #eef4f3;
  --surface: #f5faf9;
  --surface-2: #1a4a45;
  --surface-3: #0d3330;
  --ink: #0d2b28;
  --muted: #4a6560;
  --soft: #a8c8c3;
  --gold: #4db8ae;
  --gold-strong: #2a9e93;
  --line: rgba(13, 43, 40, 0.1);
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(13, 43, 40, 0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(77, 184, 174, 0.12), transparent 30%),
    linear-gradient(180deg, #f5faf9 0%, var(--bg) 100%);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.container {
  /* FIX #3: Ganti min() dengan calc() + max-width agar support browser lama */
  width: calc(100% - 2rem);
  max-width: 1180px;
  margin: 0 auto;
}

.section {
  padding: 88px 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  color: var(--ink);
  margin-bottom: 14px;
}

.section-intro {
  max-width: 720px;
  font-size: 1rem;
  color: var(--muted);
}

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  background: rgba(245, 250, 249, 0.92);
  /* FIX #2: Tambah -webkit- prefix untuk Safari */
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(13, 43, 40, 0.1);
}

.topbar-inner {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-mark {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: transparent;
  border-radius: 4px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text strong {
  display: block;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.brand-text span {
  display: block;
  margin-top: 2px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-style: italic;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  text-decoration: none;
  font-family: 'Cinzel', Georgia, serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #0d3330;
}

.nav a:hover { color: var(--gold-strong); }

.nav .cta {
  padding: 0.82rem 1.4rem;
  background: var(--surface-2);
  /* FIX #1: Tambah fallback pada var(--white) */
  color: var(--white, #ffffff);
  border-radius: 3px;
  font-family: 'Cinzel', Georgia, serif;
  box-shadow: 0 12px 24px rgba(26, 74, 69, 0.22);
}

.nav .cta:hover { color: var(--white, #ffffff); background: #0d3330; }

.hero {
  position: relative;
  min-height: 100vh;
  padding-top: 92px;
  overflow: hidden;
  background: #0a2422;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 520px;
  height: 520px;
  top: -160px;
  right: -160px;
  background: radial-gradient(circle, rgba(77, 184, 174, 0.2), transparent 65%);
}

.hero::after {
  width: 340px;
  height: 340px;
  bottom: -120px;
  left: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06), transparent 70%);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-backdrop video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) brightness(0.45);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 36, 34, 0.75) 0%, rgba(10, 36, 34, 0.45) 52%, rgba(10, 36, 34, 0.2) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
  align-items: center;
  gap: 56px;
  padding: 24px 0 40px;
}

.hero-copy {
  color: var(--white, #ffffff);
  padding: 44px 0 56px;
}

.hero-copy .eyebrow {
  color: var(--gold);
  margin-bottom: 18px;
}

.hero-copy .eyebrow::before { background: currentColor; }

.hero-title {
  font-size: clamp(3rem, 7vw, 5.4rem);
  max-width: 12ch;
  margin-bottom: 14px;
}

.hero-title span { color: var(--gold); }

.hero-subtitle {
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 16px;
}

.hero-text {
  max-width: 640px;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.76);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.button:hover { transform: translateY(-1px); }

.button-primary {
  background: linear-gradient(180deg, #4db8ae 0%, #2a9e93 100%);
  color: #0a2422;
  box-shadow: 0 18px 30px rgba(42, 158, 147, 0.3);
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.04);
  /* FIX #2: Tambah -webkit- prefix untuk Safari */
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.hero-card {
  position: relative;
  width: min(100%, 430px);
  margin-left: auto;
  padding: 16px;
  background: rgba(255, 250, 242, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  /* FIX #2: Tambah -webkit- prefix untuk Safari */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: saturate(0.92);
}

.hero-badge {
  position: absolute;
  left: 0;
  bottom: 28px;
  transform: translateX(-18px);
  background: #e0f4f2;
  color: #0a2422;
  padding: 16px 18px;
  box-shadow: 0 12px 24px rgba(10, 36, 34, 0.22);
}

.hero-badge strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 2rem;
  line-height: 1;
}

.hero-badge span {
  display: block;
  margin-top: 4px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-ribbon {
  margin-top: 28px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-ribbon span {
  position: relative;
  padding-left: 16px;
}

.hero-ribbon span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  transform: translateY(-50%);
}

.section-band {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(234, 246, 244, 1));
}

.about-grid,
.consult-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 42px;
  align-items: center;
}

.portrait {
  position: relative;
  padding: 14px;
  background: var(--surface);
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: var(--shadow);
}

.portrait img {
  width: 100%;
  aspect-ratio: 4 / 5.2;
  object-fit: cover;
  object-position: center top;
}

.caption {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
  background: rgba(255, 250, 242, 0.95);
  padding: 14px 16px;
  box-shadow: 0 10px 22px rgba(10, 16, 28, 0.16);
}

.caption strong {
  display: block;
  font-family: Georgia, serif;
  color: var(--ink);
  font-size: 1rem;
  margin-bottom: 4px;
}

.caption span {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-strong);
}

.copy p + p { margin-top: 14px; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.chip {
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #253041;
}

.services-dark {
  position: relative;
  background: linear-gradient(180deg, #1a4a45 0%, #0d3330 100%);
  /* FIX #1: Tambah fallback pada var(--white) */
  color: var(--white, #ffffff);
  overflow: hidden;
}

.services-dark::before {
  content: "";
  position: absolute;
  inset: 0;
  /* CATATAN: Pertimbangkan memindahkan gambar ini ke server WordPress */
  background-image: url('https://images.unsplash.com/photo-1517048676732-d65bc937f952?w=1600&q=80&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.services-dark .container,
.quote-section .container,
footer .container { position: relative; z-index: 1; }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.card {
  min-height: 176px;
  padding: 22px 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(16, 40, 72, 0.08);
  box-shadow: 0 14px 34px rgba(9, 15, 28, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(9, 15, 28, 0.12);
  border-color: rgba(201, 164, 99, 0.5);
}

.card .num {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: var(--gold-strong);
}

.card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  color: #0d2b28;
}

.card p {
  font-size: 0.86rem;
  color: var(--muted);
}

.card.dark {
  background: rgba(13, 51, 48, 0.85);
  border-color: rgba(77, 184, 174, 0.18);
}

.card.dark h3 { color: var(--white, #ffffff); }
.card.dark p { color: rgba(255, 255, 255, 0.68); }

.values-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.value {
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  text-align: center;
  box-shadow: 0 12px 28px rgba(9, 15, 28, 0.06);
}

.value .icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(77, 184, 174, 0.14);
  color: var(--gold-strong);
  font-size: 1.1rem;
  font-weight: 800;
}

.value h3 { font-size: 1rem; margin-bottom: 8px; }
.value p { font-size: 0.8rem; color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.panel {
  padding: 26px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 34px rgba(9, 15, 28, 0.08);
}

.panel.dark {
  background: rgba(10, 51, 46, 0.92);
  color: var(--white, #ffffff);
  border-color: rgba(77, 184, 174, 0.16);
}

.missions {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.mission {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px 18px 20px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mission strong {
  color: var(--gold-strong);
  font-family: Georgia, serif;
  font-size: 1.2rem;
  line-height: 1;
  flex: 0 0 auto;
}

.mission p { font-size: 0.9rem; color: var(--muted); }

.why-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.why-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.check {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(77, 184, 174, 0.14);
  color: var(--gold-strong);
  font-size: 0.9rem;
  flex: 0 0 auto;
}

.why-item p {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0d3330;
}

.quote-section {
  position: relative;
  padding: 80px 0;
  color: var(--white, #ffffff);
  overflow: hidden;
  background: linear-gradient(180deg, #0d3330 0%, #091f1d 100%);
}

.quote-section::before {
  content: "";
  position: absolute;
  inset: 0;
  /* CATATAN: Pertimbangkan memindahkan gambar ini ke server WordPress */
  background-image: url('https://images.unsplash.com/photo-1415025148099-17fe74102b28?w=1400&q=70&fit=crop');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
}

.quote-mark {
  display: block;
  font-family: Georgia, serif;
  color: var(--gold);
  font-size: 5rem;
  line-height: 0.7;
  opacity: 0.35;
  margin-bottom: 10px;
}

.quote-text {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  font-family: Georgia, serif;
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.88);
}

.quote-line {
  width: 64px;
  height: 1px;
  margin: 26px auto 0;
  background: var(--gold);
}

.consult-grid {
  align-items: stretch;
  margin-top: 34px;
}

.form-shell {
  padding: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: var(--shadow);
}

.form-shell h3,
.contact-panel h3 {
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.field,
.textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 3px;
  background: var(--white, #ffffff);
  font: inherit;
  color: var(--ink);
}

.textarea { min-height: 140px; resize: vertical; margin-top: 12px; }

.contact-panel {
  padding: 28px;
  background: linear-gradient(180deg, rgba(26, 74, 69, 0.97), rgba(13, 51, 48, 0.98));
  color: var(--white, #ffffff);
  border: 1px solid rgba(77, 184, 174, 0.16);
  box-shadow: var(--shadow);
}

.contact-panel p { color: rgba(255, 255, 255, 0.72); }

.contact-list {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.contact-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(77, 184, 174, 0.15);
  color: var(--gold);
  flex: 0 0 auto;
}

.contact-item a { color: rgba(255, 255, 255, 0.84); text-decoration: none; }
.contact-item a:hover { color: var(--gold); }

.mini-box {
  margin-top: 24px;
  padding: 18px;
  border: 1px solid rgba(77, 184, 174, 0.22);
  background: rgba(77, 184, 174, 0.1);
}

.mini-box p { margin-top: 8px; }

footer {
  padding: 28px 0;
  background: #071918;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(77, 184, 174, 0.15);
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-brand {
  display: grid;
  gap: 4px;
  max-width: 480px;
}

.footer-brand strong {
  font-family: Georgia, serif;
  color: var(--white, #ffffff);
  font-size: 1.1rem;
  letter-spacing: 0.04em;
}

.footer-brand span { color: var(--gold); font-size: 0.72rem; }

/* ── Tablet Besar & Laptop Kecil (≤1080px) ── */
@media (max-width: 1080px) {
  .hero-inner,
  .about-grid,
  .consult-grid,
  .split { grid-template-columns: 1fr; }

  .hero-card { margin: 0; width: min(100%, 500px); }
  .values-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { padding: 32px 0 40px; }
}

/* ── Tablet (≤768px) ── */
@media (max-width: 768px) {
  /* FIX #3: Ganti min() dengan calc() + max-width */
  .container {
    width: calc(100% - 2rem);
    max-width: 1180px;
  }
  .section { padding: 64px 0; }

  .topbar-inner {
    min-height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
    gap: 0;
  }
  .brand-mark { width: 46px; height: 46px; }
  .brand-text strong { font-size: 0.85rem; }
  .brand-text span { display: none; }
  .nav {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
    padding: 8px 0 4px;
    border-top: 1px solid rgba(13, 43, 40, 0.08);
    margin-top: 8px;
    flex-wrap: wrap;
  }
  .nav a { font-size: 0.65rem; letter-spacing: 0.12em; }
  .nav .cta { padding: 0.6rem 1rem; font-size: 0.65rem; margin-left: auto; }

  .hero { padding-top: 110px; }
  .hero-inner { min-height: auto; padding: 32px 0 48px; gap: 32px; }
  .hero-title { font-size: clamp(2.4rem, 8vw, 3.8rem); }
  .hero-card { width: min(100%, 420px); }
  .hero-badge { transform: translateX(0); left: 12px; }

  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-grid { grid-template-columns: 1fr; }
  .about-grid { gap: 28px; }
  .split { gap: 14px; }

  .quote-section { padding: 60px 0; }
  .quote-text { font-size: clamp(1rem, 3vw, 1.3rem); }
}

/* ── Mobile Besar (≤600px) ── */
@media (max-width: 600px) {
  .cards-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-card { display: none; }
  .hero-copy { padding: 28px 0 44px; }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; justify-content: center; }
  .section { padding: 52px 0; }
  .consult-grid { gap: 20px; }
  .form-shell, .contact-panel { padding: 20px; }
}

/* ── Mobile Kecil (≤480px) ── */
@media (max-width: 480px) {
  /* FIX #3: Ganti min() dengan calc() + max-width */
  .container {
    width: calc(100% - 1.6rem);
    max-width: 1180px;
  }
  .values-grid { grid-template-columns: 1fr; }
  .nav a:not(.cta) { display: none; }
  .nav .cta { margin-left: 0; }
  .topbar-inner { padding: 10px 0; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-text strong { font-size: 0.8rem; }
  .hero { padding-top: 80px; }
  .hero-inner { padding: 24px 0 40px; }
  .hero-title { font-size: clamp(2.2rem, 14vw, 3rem); }
  .hero-text { font-size: 0.92rem; }
  .section-title { font-size: clamp(1.6rem, 7vw, 2.4rem); }
  .split { grid-template-columns: 1fr; }
  .panel { padding: 20px; }
  .portrait img { aspect-ratio: 4 / 3.5; }
  .caption { left: 12px; right: 12px; bottom: 12px; }
  .footer-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .footer-brand strong { font-size: 1rem; }
  .quote-section { padding: 48px 0; }
}