/* =========================================================
   Power Pearl Resources Sdn. Bhd. — stylesheet
   Professional, text-only. Fixed sidebar layout on desktop,
   expandable service panels. Graphite + signal orange.
   ========================================================= */

:root {
  --graphite-900: #161c22;
  --graphite-800: #1f272e;
  --graphite-600: #3b4651;
  --orange: #d4561c;
  --orange-dark: #b04512;
  --orange-soft: #f1a47f;
  --stone: #eef0f1;
  --paper: #ffffff;
  --ink: #1b242c;
  --muted: #56626d;
  --line: #d9dee2;
  --radius: 2px;
  --side-w: 290px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 500;
  line-height: 1.2;
  color: var(--graphite-900);
  margin: 0 0 0.5em;
}
p { margin: 0 0 1rem; }
a { color: var(--orange-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-dark);
  margin: 0 0 1rem;
  padding-top: 0.7rem;
  border-top: 2px solid var(--orange);
}
.label-light { color: var(--orange-soft); border-top-color: var(--orange-soft); }
.muted { color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.2s ease, color 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--orange); color: var(--paper); }
.btn-primary:hover { background: var(--orange-dark); color: var(--paper); }
.btn-outline { background: transparent; color: var(--paper); border-color: rgba(255, 255, 255, 0.55); }
.btn-outline:hover { border-color: var(--paper); color: var(--paper); }

/* ---------- Shell: sidebar + main ---------- */
.side {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--side-w);
  background: var(--graphite-900);
  color: #c4cbd1;
  padding: 36px 30px 28px;
  display: flex;
  flex-direction: column;
  z-index: 50;
}
.brand { display: block; color: var(--paper); }
.brand:hover { text-decoration: none; }
.brand-main {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1.1;
}
.brand-sub {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-soft);
}
.nav { margin-top: 3rem; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.nav li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.nav a {
  display: block;
  padding: 0.8rem 0;
  font-size: 0.95rem;
  color: #c4cbd1;
}
.nav a:hover { color: var(--paper); text-decoration: none; }
.nav .nav-cta { color: var(--orange-soft); font-weight: 600; }
.side-foot {
  margin: auto 0 0;
  font-size: 0.82rem;
  color: #8b949c;
  line-height: 1.6;
}
.nav-toggle { display: none; }

.main { margin-left: var(--side-w); min-width: 0; }

/* ---------- Intro (hero) ---------- */
.intro {
  background: var(--graphite-800);
  color: #c4cbd1;
  padding: 110px 64px 96px;
}
.intro .label { color: var(--orange-soft); border-top-color: var(--orange-soft); }
.intro h1 {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  color: var(--paper);
  max-width: 21ch;
  margin-bottom: 0.6em;
}
.lead { font-size: 1.1rem; max-width: 56ch; color: #b4bcc4; }
.intro-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- Blocks ---------- */
.block { padding: 88px 64px; }
.block-stone { background: var(--stone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-dark { background: var(--graphite-900); color: #c4cbd1; }
.block-dark h2, .block-dark h3 { color: var(--paper); }
.block h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); max-width: 24ch; }
.prose { max-width: 62ch; }
.prose p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Accordion ---------- */
.accordion { margin-top: 2rem; border-top: 1px solid var(--graphite-900); }
details { border-bottom: 1px solid var(--line); background: transparent; }
summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  gap: 1.4rem;
  padding: 1.5rem 0;
}
summary::-webkit-details-marker { display: none; }
.acc-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
  color: var(--orange);
  min-width: 2.2rem;
}
.acc-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.35rem;
  color: var(--graphite-900);
  flex: 1;
}
summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--graphite-600);
}
details[open] summary::after { content: "\2212"; }
.acc-body { padding: 0 0 1.8rem 3.6rem; max-width: 64ch; }
.acc-body p { color: var(--muted); }

.dash-list { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.dash-list li { position: relative; padding-left: 1.2rem; font-size: 0.95rem; }
.dash-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.68em;
  width: 8px; height: 2px;
  background: var(--orange);
}

/* ---------- Support list ---------- */
.support-list { margin: 2rem 0 0; border-top: 1px solid var(--graphite-900); max-width: 760px; }
.support-list > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
}
.support-list dt { font-family: "Fraunces", Georgia, serif; font-size: 1.2rem; color: var(--graphite-900); }
.support-list dd { margin: 0; color: var(--muted); }

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 2.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
  max-width: 820px;
}
.steps li { border-top: 1px solid rgba(255, 255, 255, 0.25); padding-top: 1.1rem; }
.s-num { display: block; font-family: "Fraunces", Georgia, serif; font-size: 1.8rem; color: var(--orange-soft); line-height: 1; margin-bottom: 0.6rem; }
.steps h3 { font-size: 1.15rem; margin-bottom: 0.3em; }
.steps p { margin: 0; color: #aab3bb; font-size: 0.95rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 2.2rem;
  align-items: start;
}
.contact-list { margin: 0; border-top: 1px solid var(--graphite-900); }
.contact-list > div { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.contact-list dt {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--graphite-600); margin-bottom: 0.3rem;
}
.contact-list dd { margin: 0; }

.contact-form { background: var(--stone); border: 1px solid var(--line); padding: 1.9rem; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 0.35rem; }
.field input, .field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid #c5ccd2;
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: var(--paper);
}
.field input:focus, .field textarea:focus { border-color: var(--graphite-600); }
.form-note { font-size: 0.9rem; margin: 0.8rem 0 0; min-height: 1.2em; }
.form-note.ok { color: #1e6a45; }
.form-note.err { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  padding: 26px 64px;
  background: #0f1317;
  color: #8b949c;
  font-size: 0.88rem;
}
.site-footer strong { color: var(--paper); font-weight: 600; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .intro, .block { padding-left: 40px; padding-right: 40px; }
  .site-footer { padding-left: 40px; padding-right: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 900px) {
  .side {
    position: sticky;
    width: auto;
    bottom: auto;
    padding: 0 24px;
    flex-direction: column;
  }
  .side-top { display: flex; align-items: center; justify-content: space-between; height: 68px; }
  .brand-main { font-size: 1.3rem; display: inline; }
  .brand-sub { display: none; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
  .nav-toggle span { width: 24px; height: 2px; background: var(--paper); }
  .nav { margin-top: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
  .nav.open { max-height: 460px; padding-bottom: 1rem; }
  .side-foot { display: none; }
  .main { margin-left: 0; }
  .intro { padding: 64px 24px 56px; }
  .block { padding: 60px 24px; }
  .site-footer { padding: 24px; }
  .support-list > div { grid-template-columns: 1fr; gap: 4px; }
  .steps { grid-template-columns: 1fr; }
  .acc-body { padding-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
