/* ============================================================
   3S Indah Teguh — Shared Site CSS
   Dark + gold luxury, refined editorial typography
   ============================================================ */

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

:root {
  /* Color */
  --bg:           #0A0907;
  --bg-alt:       #110F0B;
  --surface:      #15130E;
  --surface-2:    #1C1A14;
  --line:         rgba(201,169,97,0.16);
  --line-strong:  rgba(201,169,97,0.36);
  --gold:         #C9A961;
  --gold-warm:    #E0C078;
  --gold-deep:    #8E7434;
  --text:         #ECE4D0;
  --text-2:       #B5AA90;
  --text-3:       #7C7460;
  --red:          #C84141;     /* logo accent — used sparingly */
  --blue:         #2E4D8A;     /* logo accent — used sparingly */

  /* Type */
  --f-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --f-sans:    'Inter Tight', 'Helvetica Neue', system-ui, sans-serif;
  --f-mono:    'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Layout */
  --pad-x: clamp(1.25rem, 4vw, 4rem);
  --max:   1440px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-weight: 350;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

::selection { background: var(--gold); color: var(--bg); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem var(--pad-x);
  background: rgba(10,9,7,0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
  transition: padding .25s ease, background .25s ease;
}
.nav.scrolled { padding: 0.7rem var(--pad-x); background: rgba(10,9,7,0.94); }

.nav-brand { display: flex; align-items: center; gap: 0.8rem; }
.nav-brand img { width: 38px; height: 38px; }
.nav-brand-txt { display: flex; flex-direction: column; line-height: 1; }
.nav-brand-name {
  font-family: var(--f-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.04em;
}
.nav-brand-sub {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  color: var(--text-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

.nav-links { display: flex; gap: 2.2rem; list-style: none; align-items: center; }
.nav-links a {
  font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-2);
  position: relative;
  padding: 0.4rem 0;
  transition: color .2s;
}
.nav-links a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-cta {
  background: transparent; border: 1px solid var(--line-strong);
  color: var(--gold); padding: 0.55rem 1.3rem;
  font-family: var(--f-sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  transition: all .25s;
}
.nav-cta:hover { background: var(--gold); color: var(--bg); border-color: var(--gold); }

.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.nav-burger span {
  display: block; width: 22px; height: 1px;
  background: var(--text-2); transition: all .25s;
}

/* ============================================================
   PAGE STRUCTURE
   ============================================================ */
main { padding-top: 78px; }

section {
  padding: clamp(4rem, 8vw, 7rem) var(--pad-x);
  position: relative;
}
.container { max-width: var(--max); margin: 0 auto; }

/* Eyebrow + title block */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ''; width: 24px; height: 1px; background: var(--gold);
  display: inline-block;
}

.eyebrow-plain {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
}

h1, h2, h3 { font-family: var(--f-display); font-weight: 600; color: var(--text); line-height: 1.05; letter-spacing: -0.005em; }
h1 { font-size: clamp(2.6rem, 6vw, 5.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 1.6vw, 1.5rem); line-height: 1.2; }

h1 em, h2 em { font-style: italic; color: var(--gold); font-weight: 500; }

.lede {
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  color: var(--text-2);
  line-height: 1.75;
  max-width: 56ch;
  font-weight: 350;
}

.gold-rule { width: 56px; height: 1px; background: var(--gold); margin: 1.4rem 0 2.2rem; }
.thin-rule { width: 100%; height: 1px; background: var(--line); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.95rem 1.7rem;
  font-family: var(--f-sans);
  font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: 1px solid transparent;
  transition: all .25s ease;
}
.btn-gold { background: var(--gold); color: var(--bg); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-warm); border-color: var(--gold-warm); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--gold); border-color: var(--gold); }
.btn .arrow { transition: transform .25s; }
.btn:hover .arrow { transform: translateX(4px); }

/* Index numbers (P-001, S-01 etc) */
.idx {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--text-3);
}

/* ============================================================
   PAGE HERO (sub-pages — non-index)
   ============================================================ */
.page-hero {
  padding: 7rem var(--pad-x) 4.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-hero .container { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 3rem; }
.page-hero .meta { font-family: var(--f-mono); font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.1em; text-align: right; }
.page-hero .meta strong { display: block; color: var(--gold); font-weight: 500; margin-bottom: 4px; }
.page-hero h1 { font-size: clamp(2.6rem, 5vw, 4.4rem); }
.page-hero .lede { margin-top: 1.4rem; }

.crumbs {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 1.6rem;
}
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 4.5rem var(--pad-x) 2rem;
}
.foot-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.foot-brand img { width: 56px; height: 56px; margin-bottom: 1.2rem; }
.foot-brand .name { font-family: var(--f-display); font-size: 1.4rem; color: var(--gold); margin-bottom: 0.3rem; }
.foot-brand .reg { font-family: var(--f-mono); font-size: 0.7rem; color: var(--text-3); letter-spacing: 0.1em; margin-bottom: 1rem; }
.foot-brand .addr { font-size: 0.82rem; color: var(--text-2); line-height: 1.7; max-width: 28ch; }

.foot-col h4 {
  font-family: var(--f-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.foot-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.foot-col a { font-size: 0.84rem; color: var(--text-2); transition: color .2s; }
.foot-col a:hover { color: var(--gold); }
.foot-col p { font-size: 0.84rem; color: var(--text-2); line-height: 1.7; }

.foot-bot {
  max-width: var(--max); margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline; gap: 2rem;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--text-3);
  text-transform: uppercase;
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  .nav-mobile {
    position: fixed; top: 0; right: 0; bottom: 0; width: 100%;
    background: var(--bg);
    z-index: 200;
    transform: translateX(100%);
    transition: transform .3s ease;
    display: flex; flex-direction: column;
    padding: 6rem 2rem 2rem;
  }
  .nav-mobile.open { transform: translateX(0); }
  .nav-mobile a {
    font-family: var(--f-display);
    font-size: 1.8rem;
    color: var(--text);
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-mobile-close {
    position: absolute; top: 1.6rem; right: 1.6rem;
    background: none; border: none; color: var(--gold);
    font-size: 2rem; line-height: 1;
  }

  .foot-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .foot-brand { grid-column: 1 / -1; }

  .page-hero .container { grid-template-columns: 1fr; }
  .page-hero .meta { text-align: left; }
}

@media (max-width: 540px) {
  .foot-grid { grid-template-columns: 1fr; }
  body { font-size: 14.5px; }
}
