/* ==========================================================================
   Sarmaya — legal & product pages
   Palette and type match wajahatkanju.com (dark + gold, Cormorant / Manrope)
   ========================================================================== */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eclat-0.ttf') format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eclat-1.ttf') format('truetype');
}
@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/eclat-2.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/eclat-3.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/eclat-4.ttf') format('truetype');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/eclat-5.ttf') format('truetype');
}

:root {
  --bg: #060709;
  --surface: #0d0f14;
  --surface-2: #12151c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(228, 178, 134, 0.38);
  --text: #f5f6f9;
  --muted: #949cae;
  --dim: #5c6373;
  --gold: #e4b286;
  --gold-2: #eed5bf;
  --gold-soft: rgba(228, 178, 134, 0.12);
  --green: #34d399;
  --green-soft: rgba(52, 211, 153, 0.12);
  --max: 1120px;
  --narrow: 820px;
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--gold); color: #1a1207; padding: 0.6rem 1rem; z-index: 100;
  border-radius: 0 0 0.5rem 0;
}
.skip:focus { left: 0; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--narrow)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 7, 9, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.85rem 0;
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); font-weight: 600; }
.brand:hover { text-decoration: none; color: var(--text); }
.brand-mark {
  width: 2.1rem; height: 2.1rem; border-radius: 0.6rem;
  background: linear-gradient(135deg, var(--gold), #b9824f);
  color: #1a1207; display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.25rem; line-height: 1;
  box-shadow: 0 6px 18px -6px rgba(228, 178, 134, 0.5);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.06rem; letter-spacing: 0.02em; }
.brand-tag { font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dim); }

.nav { display: flex; align-items: center; gap: 1.35rem; }
.nav a { color: var(--muted); font-size: 0.9rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--gold); }

.menu-btn {
  display: none; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-radius: 0.55rem; padding: 0.45rem 0.65rem;
  font-size: 1.1rem; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 4.75rem 0 3.25rem; }
.hero::before {
  content: ""; position: absolute; inset: -30% 0 auto 0; height: 70%;
  background: radial-gradient(60% 70% at 50% 0%, rgba(228, 178, 134, 0.13), transparent 70%);
  pointer-events: none;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--border-strong);
  background: var(--gold-soft); padding: 0.35rem 0.8rem; border-radius: 999px;
}
.dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }

h1 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(2.6rem, 6.5vw, 4.7rem);
  line-height: 1.03; letter-spacing: -0.015em; margin: 1.15rem 0 1rem;
}
h1 .grad {
  background: linear-gradient(135deg, #ffffff 15%, var(--gold) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.12rem; max-width: 44rem; margin: 0; }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.8rem 1.35rem; border-radius: 0.7rem;
  font-weight: 600; font-size: 0.95rem; border: 1px solid transparent;
  transition: transform 140ms ease, filter 140ms ease, border-color 140ms ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--gold), #cf9a63); color: #1a1207; }
.btn-primary:hover { color: #1a1207; filter: brightness(1.06); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }

/* ---------- Sections & cards ---------- */
.section { padding: 3.25rem 0; }
.section-head { max-width: 46rem; margin-bottom: 1.75rem; }
.section-head h2 {
  font-family: var(--serif); font-weight: 500; font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  margin: 0 0 0.5rem; letter-spacing: -0.01em;
}
.section-head p { color: var(--muted); margin: 0; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: 1rem; padding: 1.5rem; color: inherit;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}
.card:hover {
  text-decoration: none; transform: translateY(-3px);
  border-color: var(--border-strong); background: var(--surface-2); color: inherit;
}
.card .icon {
  width: 2.4rem; height: 2.4rem; border-radius: 0.6rem;
  display: grid; place-items: center; margin-bottom: 0.9rem;
  background: var(--gold-soft); color: var(--gold); font-size: 1.15rem;
}
.card h3 { margin: 0 0 0.4rem; font-size: 1.08rem; font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }
.card .go { display: inline-block; margin-top: 0.9rem; color: var(--gold); font-size: 0.9rem; font-weight: 600; }

.feature-grid { display: grid; gap: 0.85rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.85rem; padding: 1.1rem 1.2rem;
}
.feature h4 { margin: 0 0 0.25rem; font-size: 0.98rem; color: var(--gold-2); }
.feature p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Legal pages ---------- */
.legal { padding: 3rem 0 5rem; }
.legal-header { border-bottom: 1px solid var(--border); padding-bottom: 1.5rem; margin-bottom: 2rem; }
.legal-header h1 { font-size: clamp(2.1rem, 4.5vw, 3.1rem); margin: 0.4rem 0 0.6rem; }
.meta { color: var(--dim); font-size: 0.85rem; }
.meta strong { color: var(--muted); font-weight: 600; }

.toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 0.85rem; padding: 1.1rem 1.4rem; margin: 0 0 2.25rem;
}
.toc-title { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.5rem; }
.toc ol { margin: 0; padding-left: 1.2rem; columns: 2; column-gap: 2rem; }
.toc li { margin: 0.2rem 0; break-inside: avoid; }
.toc a { color: var(--muted); font-size: 0.9rem; }
.toc a:hover { color: var(--gold); }

.legal h2 {
  font-family: var(--serif); font-weight: 500; font-size: 1.75rem;
  margin: 2.5rem 0 0.7rem; padding-top: 0.4rem; letter-spacing: -0.01em;
  scroll-margin-top: 5rem;
}
.legal h3 { font-size: 1.08rem; margin: 1.5rem 0 0.45rem; color: var(--gold-2); }
.legal p, .legal li { color: #cfd3dc; }
.legal p { margin: 0.7rem 0; }
.legal ul, .legal ol { padding-left: 1.3rem; margin: 0.6rem 0; }
.legal li { margin: 0.3rem 0; }
.legal strong { color: var(--text); }
.legal a { text-decoration: underline; text-underline-offset: 2px; }

.callout {
  background: var(--surface); border: 1px solid var(--border);
  border-left: 3px solid var(--gold); border-radius: 0.6rem;
  padding: 0.95rem 1.2rem; margin: 1.4rem 0;
}
.callout p { margin: 0.2rem 0; color: var(--muted); }
.callout strong { color: var(--gold-2); }

table { width: 100%; border-collapse: collapse; margin: 1.1rem 0; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.65rem 0.7rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--gold-2); font-weight: 600; }
td { color: #cfd3dc; }
.table-wrap { overflow-x: auto; }

.pill {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  padding: 0.15rem 0.55rem; border-radius: 999px;
  background: var(--green-soft); color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}
.pill.no { background: rgba(255, 255, 255, 0.05); color: var(--muted); border-color: var(--border); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0; margin-top: 3rem; color: var(--muted); font-size: 0.9rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.75rem; }
.footer-brand { max-width: 22rem; }
.footer-brand p { margin: 0.5rem 0 0; color: var(--dim); font-size: 0.85rem; }
.footer-col-title { color: var(--text); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.6rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-bottom {
  margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem;
  color: var(--dim); font-size: 0.82rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--border);
    padding: 0.5rem 1.25rem 1rem;
  }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 0.6rem 0; border-bottom: 1px solid var(--border); }
  .nav a:last-child { border-bottom: 0; }
  .menu-btn { display: inline-flex; }
  .toc ol { columns: 1; }
  .hero { padding: 3.5rem 0 2.5rem; }
}

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

/* ---------- Print ---------- */
@media print {
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .toc, .cta-row, .menu-btn { display: none !important; }
  .legal { padding: 0; }
  .legal h2, .legal h3 { color: #111; }
  .legal p, .legal li, td { color: #222; }
  a { color: #111; text-decoration: underline; }
}
