/* ==============================================================================
   ISTANA HIJAB — MODEST SILK ATELIER STYLESHEET
   Archetype: Colour-Chapters / Uneven-Photographs
   Typography: Marcellus (Headings) + Plus Jakarta Sans (Body)
   Zero Hairlines, Soft Confident Tone Steps, Strictly Anti-Slop
   ============================================================================== */

:root {
  --bg-deep: #171315;
  --bg-surface: #221a1f;
  --bg-elevated: #2d2228;
  --text-main: #f8f4f2;
  --text-muted: #b8a6af;
  --accent-blush: #dfb4a4;
  --accent-rose: #c08081;
  --surface-border: #362830;
  --font-display: 'Marcellus', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --container-max: 1220px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background-color: var(--bg-deep);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
}

/* ------------------------------------------------------------------------------
   TYPOGRAPHY SPECIFICATION (Strict Taste-Skill Constraints)
   Headlines <= 2 lines across viewports, no eyebrows, strong contrast
   ------------------------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.18;
  color: var(--text-main);
}

h1 {
  font-size: clamp(2.3rem, 4.8vw, 3.8rem);
  max-width: 100%;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.7rem);
  max-width: 100%;
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.7rem);
}

p {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.lead-text {
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: #ebdcd6;
}

/* ------------------------------------------------------------------------------
   LAYOUT CONTAINERS & SURFACES
   ------------------------------------------------------------------------------ */
.site-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-spacing {
  padding: 5rem 0;
}

.surface-card {
  background-color: var(--bg-surface);
  padding: 2.25rem;
}

/* ------------------------------------------------------------------------------
   HEADER & NAVIGATION
   ------------------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: #171315;
  border-bottom: 2px solid var(--surface-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand-badge {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  letter-spacing: 0.05em;
  color: var(--text-main);
}

.brand-sub {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-blush);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  transition: color 0.2s ease;
  padding: 0.4rem 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent-blush);
}

.nav-cta {
  background-color: var(--accent-blush);
  color: #171315;
  padding: 0.65rem 1.35rem;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}

.nav-cta:hover {
  opacity: 0.9;
}

.menu-toggle {
  display: none;
  background: var(--bg-surface);
  border: none;
  color: var(--text-main);
  padding: 0.6rem 1rem;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.9rem;
}

/* ------------------------------------------------------------------------------
   MOBILE NAVIGATION DRAWER
   ------------------------------------------------------------------------------ */
.mobile-nav-panel {
  display: none;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--surface-border);
  padding: 1.5rem;
}

.mobile-nav-panel.is-open {
  display: block;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.mobile-nav-links .nav-link {
  font-size: 1.1rem;
  padding: 0.5rem 0;
}

/* ------------------------------------------------------------------------------
   HERO CHAPTER (Airy Silk Showcase)
   ------------------------------------------------------------------------------ */
.hero-chapter {
  padding: 4.5rem 0 3.5rem;
  background-color: var(--bg-surface);
}

.chapter-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.chapter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.chapter-pill {
  background-color: var(--bg-deep);
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
  color: var(--text-main);
}

.chapter-pill strong {
  color: var(--accent-blush);
}

.hero-visual-frame {
  background-color: var(--bg-deep);
  padding: 1rem;
}

.hero-visual-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ------------------------------------------------------------------------------
   INTERACTIVE TOOL: FACE SHAPE & DRAPE MATCHER
   ------------------------------------------------------------------------------ */
.tool-section {
  background-color: var(--bg-deep);
  padding: 4.5rem 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.tool-card {
  background-color: var(--bg-surface);
  padding: 2.25rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-blush);
  margin-bottom: 0.6rem;
  letter-spacing: 0.05em;
}

.form-select, .form-input {
  width: 100%;
  background-color: var(--bg-deep);
  border: none;
  color: var(--text-main);
  padding: 0.85rem 1rem;
  font-size: 1rem;
  outline: none;
}

.tool-result-panel {
  background-color: var(--bg-surface);
  border-left: 4px solid var(--accent-blush);
  padding: 1.75rem;
  margin-top: 1.5rem;
}

.tool-result-panel h4 {
  color: var(--accent-blush);
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

/* ------------------------------------------------------------------------------
   SPECIMEN GRID (Koleksi Hijab & Busana)
   ------------------------------------------------------------------------------ */
.specimen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
  margin-top: 2.5rem;
}

.specimen-card {
  background-color: var(--bg-surface);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease;
}

.specimen-card:hover {
  transform: translateY(-4px);
}

.specimen-thumb {
  background-color: #1a1417;
  height: 270px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1.5rem;
}

.specimen-thumb img {
  max-height: 100%;
  object-fit: contain;
}

.specimen-body {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.specimen-title {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.specimen-meta {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.specimen-pricing {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
}

.specimen-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent-blush);
}

.btn-action {
  background-color: var(--accent-blush);
  color: #171315;
  padding: 0.65rem 1.25rem;
  font-weight: 600;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: opacity 0.2s ease;
}

.btn-action:hover {
  opacity: 0.9;
}

/* ------------------------------------------------------------------------------
   PROCESS & DRAPE LIST
   ------------------------------------------------------------------------------ */
.process-list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 3rem;
}

.process-step {
  background-color: var(--bg-surface);
  padding: 2.25rem;
}

/* ------------------------------------------------------------------------------
   TABLES
   ------------------------------------------------------------------------------ */
.matrix-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 2rem;
  background-color: var(--bg-surface);
}

.matrix-table th, .matrix-table td {
  padding: 1.2rem 1.25rem;
  text-align: left;
  border-bottom: 2px solid var(--surface-border);
  font-size: 0.95rem;
}

.matrix-table th {
  background-color: var(--bg-elevated);
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--accent-blush);
}

/* ------------------------------------------------------------------------------
   FAQ GRID
   ------------------------------------------------------------------------------ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.faq-card {
  background-color: var(--bg-surface);
  padding: 2.25rem;
}

.faq-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

/* ------------------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------------------ */
.site-footer {
  margin-top: auto;
  background-color: #0f0c0e;
  border-top: 2px solid var(--surface-border);
  padding: 4.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-col h4 {
  font-size: 1.15rem;
  margin-bottom: 1.25rem;
  color: var(--accent-blush);
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--text-main);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ------------------------------------------------------------------------------
   SCROLL REVEAL OBSERVER
   ------------------------------------------------------------------------------ */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------------------------------------------------------
   RESPONSIVE BREAKPOINTS
   ------------------------------------------------------------------------------ */
@media (max-width: 992px) {
  .chapter-grid, .tool-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .nav-desktop {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .specimen-grid {
    grid-template-columns: 1fr;
  }
}
