/* ============================================================
   Inspyre Research — SEBI Registered Research Analyst
   inspyreresearch.com | Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --teal:       #007352;
  --teal-dark:  #005C41;
  --teal-light: #F4FBF8;
  --teal-border:#BFE8D9;
  --gold:       #087A57;
  --gold-light: #EAF7F1;
  --white:      #FFFFFF;
  --bg:         #F8FAFC;
  --border:     #E6EAEE;
  --text:       #111827;
  --muted:      #4B5563;
  --light-text: #4B5563;
  --footer-bg:  #0E2A22;
  --font-h:     'Plus Jakarta Sans', system-ui, sans-serif;
  --font-b:     'Plus Jakarta Sans', sans-serif;
  --radius:     6px;
  --shadow:     0 4px 24px rgba(0,115,82,0.10);
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* sticky nav is 70px + 1px border: keep focused / linked targets clear of it
     (WCAG 2.2 - 2.4.11 Focus Not Obscured) */
  scroll-padding-top: 88px;
}
:target, [id] { scroll-margin-top: 88px; }

/* respect a reduced-motion preference (WCAG 2.3.3) */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* the skip-link target must not draw a stray ring when focused programmatically */
main:focus { outline: none; }
main:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
body { font-family: var(--font-b); color: var(--text); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── Skip Nav ── */
.skip-nav {
  position: absolute; top: -100px; left: 16px;
  background: var(--teal); color: var(--white);
  padding: 8px 16px; border-radius: var(--radius);
  font-size: 13px; font-weight: 600; z-index: 9999;
  transition: top 0.2s;
}
.skip-nav:focus { top: 16px; }

/* ── Nav ── */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 40px; height: 70px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-img {
  height: 36px; width: auto; display: block; flex-shrink: 0;
  object-fit: contain;
}
.logo-text { line-height: 1.25; }
.logo-name { font-family: var(--font-h); font-weight: 700; font-size: 14px; color: var(--text); }
.logo-reg  { font-size: 11.5px; color: var(--light-text); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-size: 13px; color: var(--muted); text-decoration: none;
  font-weight: 500; transition: color 0.2s; padding: 4px 0;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--teal); }
.nav-links a[aria-current="page"] {
  font-weight: 600;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 2px;
}
.nav-cta {
  background: var(--teal); color: var(--white);
  font-family: var(--font-b); font-size: 13px; font-weight: 600;
  padding: 10px 22px; border: none; cursor: pointer;
  border-radius: var(--radius); text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--teal-dark); }

/* ── Page Header (inner pages) ── */
.page-header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 48px 40px;
  max-width: 100%;
}
.page-header-inner { max-width: 1200px; margin: 0 auto; }
.page-header-tag {
  font-size: 11px; font-weight: 600; color: var(--gold);
  letter-spacing: 0.08em; margin-bottom: 10px; display: block;
}
.page-header h1 {
  font-family: var(--font-h); font-weight: 700; font-size: 36px;
  color: var(--text); margin-bottom: 10px; line-height: 1.1;
}
.page-header p { font-size: 15px; color: var(--muted); max-width: 560px; line-height: 1.8; }

/* ── Section Utilities ── */
.section { padding: 72px 40px; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.bg-light { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bg-white { background: var(--white); }
.bg-teal-light { background: var(--teal-light); border-top: 1px solid var(--teal-border); border-bottom: 1px solid var(--teal-border); }

.sec-eyebrow {
  font-size: 11px; font-weight: 600; color: #087A57;
  letter-spacing: 0.08em; margin-bottom: 10px; display: block;
}
.gold-line { width: 40px; height: 3px; background: #0FA978; margin-bottom: 14px; }

.page-header-tag {
  font-size: 11px; font-weight: 600; color: #087A57;
  letter-spacing: 0.08em; margin-bottom: 10px; display: block;
}
.sec-title {
  font-family: var(--font-h); font-weight: 700; font-size: 32px;
  color: var(--text); margin-bottom: 12px; line-height: 1.1;
}
.sec-sub {
  font-size: 14px; color: var(--muted);
  max-width: 500px; line-height: 1.8; margin-bottom: 40px;
}

/* ── Buttons ── */
.btn-primary {
  background: var(--teal); color: var(--white);
  font-family: var(--font-b); font-size: 14px; font-weight: 600;
  padding: 13px 26px; border: none; cursor: pointer;
  border-radius: var(--radius); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--teal-dark); }
.btn-outline {
  background: var(--white); color: var(--teal);
  font-family: var(--font-b); font-size: 14px; font-weight: 600;
  padding: 12px 24px; border: 1.5px solid var(--teal); cursor: pointer;
  border-radius: var(--radius); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background 0.2s, color 0.2s;
}
.btn-outline:hover { background: var(--teal-light); }

/* ── Footer ── */
.footer { background: var(--footer-bg); padding: 56px 40px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; text-decoration: none; }
.footer-logo .logo-mark { border-color: rgba(255,255,255,0.3); color: var(--white); }
.footer-logo .logo-name { color: var(--white); }
.footer-logo .logo-reg  { color: #9CA3AF; }
.footer-desc { font-size: 12px; color: #9CA3AF; line-height: 1.8; max-width: 240px; margin-bottom: 20px; }
.footer-sebi {
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  background: rgba(255,255,255,0.04);
  font-size: 11px; color: #9CA3AF; line-height: 1.9;
}
.footer-sebi strong { color: #D1D5DB; }
.footer-col h3 {
  font-family: var(--font-h); font-size: 11px; font-weight: 600;
  color: #9CA3AF; letter-spacing: 0.08em;
  margin-bottom: 16px; text-transform: uppercase;
}
.footer-col a {
  display: block; font-size: 13px;
  color: #9CA3AF; text-decoration: none;
  margin-bottom: 10px; transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: #9CA3AF; text-decoration: none;
  font-size: 14px; font-weight: 600; transition: background 0.2s, color 0.2s;
  margin-bottom: 0;
}
.footer-social a:hover { background: var(--teal); color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 11px; color: #9CA3AF;
}

/* ── Focus Indicators (SC 2.4.7) ── */
:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
  border-radius: 2px;
}
.nav-cta:focus-visible,
.btn-primary:focus-visible,
.btn-outline:focus-visible { outline-offset: 2px; }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text); margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-b); font-size: 14px; color: var(--text);
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(10,107,94,0.12);
}
.form-group textarea { resize: vertical; min-height: 100px; }
.form-note { font-size: 11px; color: var(--light-text); margin-top: 4px; }
.form-success { display: none; background: var(--teal-light); border: 1px solid var(--teal-border); border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: var(--teal); margin-top: 12px; }
.form-error  { display: none; background: #FEF2F2; border: 1px solid #FECACA; border-radius: var(--radius); padding: 14px 18px; font-size: 14px; color: #B91C1C; margin-top: 12px; }

/* ── Tables ── */
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.data-table th {
  background: var(--bg); text-align: left;
  padding: 12px 16px; font-weight: 600; font-size: 12px;
  color: var(--muted); letter-spacing: 0.04em;
  border-bottom: 2px solid var(--border);
}
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.data-table th[scope="row"] {
  background: none; font-weight: 400; color: var(--text);
  letter-spacing: 0; font-size: 13px; border-bottom: 1px solid var(--border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:last-child th[scope="row"] { border-bottom: none; }
.data-table tr:hover td, .data-table tr:hover th[scope="row"] { background: var(--bg); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* ── Content Blocks (compliance pages) ── */
.content-body { max-width: 820px; }
.content-body h2 {
  font-family: var(--font-h); font-weight: 700; font-size: 20px;
  color: var(--text); margin: 40px 0 12px;
  padding-top: 40px; border-top: 1px solid var(--border);
}
.content-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.content-body h3 {
  font-family: var(--font-h); font-weight: 600; font-size: 16px;
  color: var(--text); margin: 24px 0 8px;
}
.content-body p { font-size: 14px; color: var(--muted); line-height: 1.9; margin-bottom: 14px; }
.content-body ul, .content-body ol { padding-left: 20px; margin-bottom: 14px; }
.content-body li { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 6px; }
.content-body strong { color: var(--text); font-weight: 600; }
.content-body a { color: var(--teal); text-decoration: underline; }
.info-box {
  background: var(--teal-light); border-left: 4px solid var(--teal);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}
.info-box p { color: var(--teal); margin-bottom: 0; font-size: 13px; line-height: 1.7; }
.warning-box {
  background: var(--gold-light); border-left: 4px solid var(--gold);
  padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 20px 0;
}
.warning-box p { color: #7A5C10; margin-bottom: 0; font-size: 13px; line-height: 1.7; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .section { padding: 48px 24px; }
}

/* ── MOBILE NAV HAMBURGER ── */
.nav-hamburger {
  display: none;
  flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; border-radius: 4px;
}
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: flex; flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 8px 20px 16px;
  gap: 2px;
}
.nav-mobile[hidden] { display: none; }
.nav-mobile a {
  font-family: var(--font-b); font-size: 14px; font-weight: 500;
  color: var(--text); text-decoration: none;
  padding: 10px 12px; border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.nav-mobile a:hover { background: var(--bg); color: var(--teal); }
.nav-mobile a[aria-current="page"] {
  color: var(--teal);
  font-weight: 700;
  background: var(--bg);
}
.nav-mobile .nav-mobile-cta {
  background: var(--teal); color: #fff !important;
  font-weight: 600; text-align: center;
  margin-top: 8px;
}
.nav-mobile .nav-mobile-cta:hover { background: var(--teal-dark); }

@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  .nav-cta-desktop { display: none; }
}

/* INSPYRE ADDITIONS */
.accent-bar { height: 4px; background: linear-gradient(90deg, #007352, #0FA978); }
.logo-mark-svg { width: 36px; height: 36px; flex-shrink: 0; }
.footer-sebi a { color: #6FDCB4; }
.placeholder-note { background: #FFF8E1; border: 1px dashed #B7791F; color: #5F370E; padding: 10px 14px; border-radius: 6px; font-size: 12px; }

.policy-list { display: grid; gap: 12px; margin-top: 8px; }
.policy-list details { border: 1px solid var(--border); border-radius: 10px; background: var(--white); }
.policy-list summary { cursor: pointer; padding: 16px 20px; font-family: var(--font-h); font-weight: 700; font-size: 16px; color: var(--text); list-style: none; position: relative; }
.policy-list summary::-webkit-details-marker { display: none; }
.policy-list summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; color: var(--teal); }
.policy-list details[open] summary::after { content: "–"; }
.policy-list details > *:not(summary) { margin: 0 20px 14px; font-size: 14px; color: var(--muted); line-height: 1.8; }
.policy-list ul { padding-left: 18px; }
.policy-list h3 { font-family: var(--font-h); font-size: 15px; color: var(--text); }
.policy-list a { color: var(--teal); }


/* Scrollable table regions get a tab stop when they overflow (WCAG 2.1.1);
   Firefox and Safari do not focus scroll containers on their own. */
.table-wrap:focus-visible,
.matrix-wrap:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
}
