/* ==========================================================
   Notaris Rosdafiana, S.H., M.Kn. — base, header, hero
   ========================================================== */
:root {
  --ink: #0f1b2d;
  --ink-2: #16263d;
  --ink-3: #1e3250;
  --ivory: #f8f5ef;
  --paper: #fffdf9;
  --gold: #b08d57;
  --gold-d: #8a6b3a;
  --gold-l: #d9c197;
  --text: #2b3040;
  --muted: #5f6676;
  --line: rgba(15, 27, 45, .12);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --maxw: 1180px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0; color: var(--ink); letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px; }

.container { width: min(100% - 48px, var(--maxw)); margin-inline: auto; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink); padding: 10px 18px; font-weight: 600; border-radius: 2px;
  transition: top .2s;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; font: 500 .8125rem/1 var(--sans);
  letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid transparent; border-radius: 2px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn-gold { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-l); border-color: var(--gold-l); transform: translateY(-1px); }
.btn-ghost { color: var(--ivory); border-color: rgba(217, 193, 151, .55); }
.btn-ghost:hover { border-color: var(--gold-l); background: rgba(217, 193, 151, .1); }
.btn-dark { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.btn-dark:hover { background: var(--ink-3); border-color: var(--ink-3); transform: translateY(-1px); }
.btn-sm { padding: 11px 20px; font-size: .75rem; }

/* ---------- Section primitives ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font: 500 .75rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-d); margin-bottom: 22px;
}
.eyebrow::before { content: ''; width: 36px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(2.1rem, 4.2vw, 3.3rem); max-width: 18ch; }
.section-lead { color: var(--muted); max-width: 58ch; margin-top: 20px; font-size: 1.0625rem; }
.section-head { margin-bottom: clamp(40px, 6vw, 72px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--header-h);
  background: rgba(15, 27, 45, .97); backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(176, 141, 87, .35);
  transition: box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 10px 30px rgba(8, 14, 25, .35); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--ivory); }
.brand-mark {
  width: 44px; height: 44px; border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center; font: 600 1.5rem/1 var(--serif); color: var(--gold-l);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font: 600 1.2rem/1.15 var(--serif); letter-spacing: .02em; }
.brand-role { font: 500 .625rem/1.4 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--gold-l); }

.nav-list { display: flex; align-items: center; gap: 30px; }
.nav-list a {
  font: 500 .75rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  color: rgba(248, 245, 239, .82); padding: 8px 0; position: relative; transition: color .2s;
}
.nav-list a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-list a:not(.btn):hover { color: var(--gold-l); }
.nav-list a:not(.btn):hover::after { transform: scaleX(1); }
.nav-list .btn { color: var(--ink); padding: 11px 20px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; background: none; border: 1px solid rgba(217, 193, 151, .45);
  border-radius: 2px; cursor: pointer; position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ''; position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--gold-l);
  transition: transform .3s, opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { left: 0; right: 0; top: -7px; }
.nav-toggle span::after { left: 0; right: 0; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ivory);
  background:
    radial-gradient(900px 600px at 82% 40%, rgba(176, 141, 87, .16), transparent 62%),
    radial-gradient(700px 500px at 0% 100%, rgba(30, 50, 80, .9), transparent 70%),
    linear-gradient(160deg, var(--ink) 0%, #0a1422 100%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(217, 193, 151, .05) 1px, transparent 1px);
  background-size: 100% 96px;
}
.hero-grid {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.12fr .88fr;
  align-items: center; gap: clamp(32px, 6vw, 88px);
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 120px);
  min-height: min(760px, calc(100svh - var(--header-h)));
}
.hero .eyebrow { color: var(--gold-l); }
.hero h1 { color: var(--ivory); font-size: clamp(2.6rem, 5.6vw, 4.6rem); font-weight: 500; }
.hero h1 em { font-style: italic; color: var(--gold-l); font-weight: 500; }
.hero-lead { color: rgba(248, 245, 239, .78); font-size: 1.125rem; max-width: 52ch; margin: 28px 0 40px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note {
  display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 52px; padding-top: 28px;
  border-top: 1px solid rgba(217, 193, 151, .25);
  font: 500 .75rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-l);
}
.hero-note li { display: flex; align-items: center; gap: 10px; }
.hero-note li::before { content: ''; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); }

.portrait-wrap { position: relative; justify-self: center; width: min(100%, 440px); }
.portrait-wrap::before {
  content: ''; position: absolute; inset: 0; transform: translate(22px, 22px);
  border: 1px solid var(--gold); border-radius: 240px 240px 4px 4px;
}
.portrait {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ink-2);
  border-radius: 240px 240px 4px 4px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; }
.portrait-caption {
  position: absolute; left: -26px; bottom: 36px; z-index: 2; max-width: 250px;
  background: var(--paper); color: var(--ink); padding: 18px 22px; border-left: 3px solid var(--gold);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
}
.portrait-caption strong { display: block; font: 600 1.25rem/1.2 var(--serif); }
.portrait-caption span { font: 500 .6875rem/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-d); }
