:root {
  color-scheme: light;
  --bg-ground: #FBF7F2;
  --bg-surface: #FFFFFF;
  --bg-tint: #F2E9E1;
  --bg-ulos: #560F1A;
  --bg-ulos-panel: #6B1624;

  --text-primary: #1C1717;
  --text-muted: #574947;
  --text-on-ulos: #FBF7F2;
  --text-on-ulos-muted: #EAD8D4;

  --border-subtle: #DFD2C8;
  --border-control: #7D6A67;
  --border-ulos: #852434;

  --accent-bg: #6B1320;
  --accent-hover: #520D18;
  --accent-fg: #FFFFFF;
  --accent-gold: #735014;
  --accent-gold-on-ulos: #F0CE86;
  --accent-gold-btn: #E8C374;
  --accent-gold-btn-hover: #D9B15E;

  --err-fg: #991B1B;
  --err-bg: #FEE2E2;
  --focus-ring: #6B1320;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg-ground);
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

a[href],
button:not(:disabled),
select:not(:disabled),
summary,
label[for] {
  cursor: pointer;
}

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

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--bg-ulos);
  color: var(--text-on-ulos);
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  left: 12px;
}

.container {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

/* Signature Ulos Woven Hairline Trim (Purpose-Gate R-07: Batak cultural identity marker) */
.ulos-trim {
  height: 10px;
  width: 100%;
  background-color: var(--bg-ulos);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='10' viewBox='0 0 48 10'%3E%3Crect width='48' height='10' fill='%23560F1A'/%3E%3Cpath d='M0 2H48M0 8H48' stroke='%23E8C374' stroke-width='0.9' stroke-opacity='0.75'/%3E%3Cpath d='M6 5L12 2.2L18 5L12 7.8ZM30 5L36 2.2L42 5L36 7.8Z' fill='%23E8C374'/%3E%3Cpath d='M21 5L24 3.2L27 5L24 6.8Z' fill='%23FBF7F2'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: center;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 66px;
  padding: 8px 0;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 6px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover {
  background: var(--bg-tint);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 6px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent-bg);
  color: var(--accent-fg);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-outline {
  background: var(--bg-surface);
  color: var(--text-primary);
  border-color: var(--border-control);
}

.btn-outline:hover {
  background: var(--bg-tint);
  border-color: var(--text-primary);
}

/* Hero Section (Antique Silk Ivory + Editorial Craft Frame) */
.hero-section {
  padding: 44px 0 54px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-gold);
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 4.4vw, 3.45rem);
  font-weight: 700;
  line-height: 1.08;
  color: var(--text-primary);
}

.hero-lead {
  margin: 0 0 26px;
  max-width: 50ch;
  font-size: 1rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.fact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-gold);
  margin-bottom: 2px;
}

.fact-value {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-primary);
}

.hero-visual {
  margin: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  overflow: hidden;
}

.hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-visual-caption {
  padding: 11px 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-tint);
}

/* Section 2: Layanan Jahit (Deep Ulos Burgundy Band with Interactive Tabs) */
.section-services {
  background: var(--bg-ulos);
  color: var(--text-on-ulos);
  padding: 56px 0;
}

.section-heading {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
}

.section-intro {
  margin: 0 0 24px;
  max-width: 56ch;
  color: var(--text-muted);
}

.section-services .section-intro {
  color: var(--text-on-ulos-muted);
}

.services-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 24px;
  align-items: start;
}

.service-tablist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.service-tab-btn {
  min-height: 52px;
  padding: 12px 16px;
  text-align: left;
  border-radius: 8px;
  border: 1px solid var(--border-ulos);
  background: transparent;
  color: var(--text-on-ulos-muted);
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
}

.service-tab-btn:hover {
  background: var(--bg-ulos-panel);
  color: var(--text-on-ulos);
}

.service-tab-btn.is-active {
  background: var(--accent-gold-btn);
  color: var(--text-primary);
  border-color: var(--accent-gold-btn);
}

.service-tab-btn:focus-visible {
  outline-color: var(--accent-gold-on-ulos);
}

.service-detail-card {
  background: var(--bg-ulos-panel);
  border: 1px solid var(--border-ulos);
  border-radius: 10px;
  padding: 26px;
}

.service-detail-title {
  margin: 0 0 10px;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem);
  font-weight: 700;
  color: var(--accent-gold-on-ulos);
}

.service-detail-summary {
  margin: 0 0 18px;
  color: var(--text-on-ulos);
  font-size: 0.97rem;
}

.service-checklist-label {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-gold-on-ulos);
}

.service-checklist {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-on-ulos-muted);
  font-size: 0.92rem;
}

/* Section 3: Alur Jahit (Editorial 4-Step Track, bukan 3 kartu klise) */
.section-process {
  padding: 56px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  counter-reset: step;
}

.process-step {
  counter-increment: step;
  padding-top: 18px;
  border-top: 2px solid var(--accent-bg);
}

.process-step::before {
  content: "Tahap 0" counter(step);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.process-step h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
}

.process-step p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Section 4: Persiapan Bahan & Catatan Pesanan */
.section-prep {
  padding: 56px 0;
}

.prep-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.form-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: 0.86rem;
  font-weight: 600;
}

.field-control {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-control);
  background: var(--bg-surface);
  color: var(--text-primary);
  font: inherit;
  font-size: 0.93rem;
}

.field-textarea {
  min-height: 82px;
  resize: vertical;
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: var(--err-bg);
  color: var(--err-fg);
  font-size: 0.88rem;
  font-weight: 500;
}

.prep-summary-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.estimate-box {
  background: var(--bg-tint);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.estimate-heading {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
}

.estimate-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.metric-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 12px;
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
}

.metric-value {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent-bg);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.estimate-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.brief-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.brief-title {
  margin: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-muted);
}

.brief-pre {
  margin: 0;
  padding: 14px;
  border-radius: 8px;
  background: var(--bg-ground);
  border: 1px solid var(--border-subtle);
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 0.88rem;
  color: var(--text-primary);
}

.brief-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Section 5: Lokasi & FAQ */
.section-location {
  padding: 54px 0;
  background: var(--bg-tint);
  border-top: 1px solid var(--border-subtle);
}

.location-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.25fr);
  gap: 28px;
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}

.address-block {
  margin: 0;
  font-style: normal;
  font-size: 1.02rem;
  font-weight: 600;
}

.coord-note {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

.location-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.map-frame-wrap {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-surface);
  border: 1px solid var(--border-control);
  border-radius: 10px;
  overflow: hidden;
}

.map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.faq-block {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}

.faq-heading {
  margin: 0 0 16px;
  font-size: 1.55rem;
  font-weight: 700;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  overflow: hidden;
}

.faq-summary {
  list-style: none;
  min-height: 50px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 600;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--accent-bg);
  flex-shrink: 0;
}

.faq-item[open] .faq-summary::after {
  content: "-";
}

.faq-summary:hover {
  background: var(--bg-ground);
}

.faq-answer {
  margin: 0;
  padding: 0 16px 16px;
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* Footer */
.site-footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 24px 0 32px;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-inner p {
  margin: 0;
}

.footer-note {
  max-width: 48ch;
}

/* Toast */
.site-toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(440px, calc(100vw - 24px));
  padding: 11px 16px;
  border-radius: 8px;
  background: var(--bg-ulos);
  color: var(--text-on-ulos);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 14px 32px rgba(28, 23, 23, 0.28);
}

@media (prefers-reduced-motion: no-preference) {
  .btn,
  .nav-link,
  .service-tab-btn,
  .faq-summary {
    transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
  }
}

/* Tablet state (640px - 960px) */
@media (max-width: 960px) {
  .hero-grid,
  .services-layout,
  .prep-grid,
  .location-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .process-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section,
  .section-services,
  .section-process,
  .section-prep,
  .section-location {
    padding: 40px 0;
  }
}

/* Mobile state (< 640px) */
@media (max-width: 639px) {
  .container {
    padding: 0 16px;
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--border-subtle);
    padding-top: 6px;
  }

  .nav-link {
    padding: 0 8px;
    font-size: 0.86rem;
  }

  .hero-section {
    padding: 28px 0 36px;
  }

  .hero-actions,
  .location-actions,
  .brief-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-facts,
  .process-list,
  .field-row,
  .estimate-metrics {
    grid-template-columns: minmax(0, 1fr);
  }

  .service-detail-card,
  .form-card,
  .estimate-box,
  .brief-box {
    padding: 18px;
  }
}

@media print {
  .site-header,
  .hero-section,
  .section-services,
  .section-process,
  .section-location,
  .site-footer,
  .form-card,
  .brief-actions,
  .ulos-trim {
    display: none !important;
  }

  .brief-box {
    border: 1px solid #000;
  }
}
