/*
  Bhanu Singh — personal site design system
  Replaces the ThemeForest "BHANU" template's style.css / spacing.css / responsive.css
  for the active pages. Self-contained: tokens, reset, layout primitives, components.
*/

/* ============ FONTS ============
   Loaded via <link> in <head> (preconnect + stylesheet), not @import,
   so the browser can discover and fetch them without an extra round trip. */

/* ============ TOKENS ============ */
:root {
  /* Color */
  --bg: #0b0d10;
  --surface: #13161b;
  --surface-raised: #1b1f26;
  --border: #262b33;
  --border-strong: #5b636b;
  --text-primary: #edeff2;
  --text-secondary: #98a0ac;
  --text-tertiary: #7c8591;
  --accent: #c89b4c;
  --accent-strong: #e0b563;
  --accent-on: #14110a;
  --focus-ring: #e0b563;

  /* Type */
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1rem + 0.4vw, 1.3125rem);
  --text-xl: clamp(1.3rem, 1.1rem + 0.8vw, 1.625rem);
  --h4: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --h3: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem);
  --h2: clamp(2.125rem, 1.7rem + 1.8vw, 2.875rem);
  --h1: clamp(2.5rem, 1.9rem + 3vw, 4.25rem);

  /* Spacing (4px base unit) */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --shadow-elevate: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.25);

  --container: 1200px;
  --prose: 720px;

  --dur-fast: 150ms;
  --dur-base: 250ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 76px;
}

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

html {
  scroll-behavior: smooth;
}

body.bs-site {
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.bs-site a {
  color: inherit;
  text-decoration: none;
}

.bs-site ul,
.bs-site ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bs-site h1,
.bs-site h2,
.bs-site h3,
.bs-site h4,
.bs-site p {
  margin: 0;
}

.bs-site button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

.bs-site svg {
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .bs-site,
  .bs-site *,
  .bs-site *::before,
  .bs-site *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ FOCUS ============ */
.bs-site a:focus-visible,
.bs-site button:focus-visible,
.bs-site input:focus-visible,
.bs-site textarea:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============ SKIP LINK ============ */
.bs-skip-link {
  position: absolute;
  top: -48px;
  left: var(--sp-4);
  z-index: 1000;
  background: var(--accent);
  color: var(--accent-on);
  padding: var(--sp-3) var(--sp-6);
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease-out);
}

.bs-skip-link:focus {
  top: var(--sp-4);
}

/* ============ LAYOUT PRIMITIVES ============ */
.bs-container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

@media (min-width: 768px) {
  .bs-container {
    padding-inline: var(--sp-8);
  }
}

.bs-prose {
  max-width: var(--prose);
}

.bs-section {
  padding-block: var(--sp-24);
  border-top: 1px solid var(--border);
}

.bs-section:first-of-type {
  border-top: 0;
}

@media (max-width: 767px) {
  .bs-section {
    padding-block: var(--sp-16);
  }
}

.bs-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.bs-heading {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.bs-section-head {
  max-width: 640px;
  margin-bottom: var(--sp-12);
}

.bs-section-head .bs-heading {
  font-size: var(--h2);
}

.bs-lede {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--sp-4);
}

/* ============ BUTTONS / LINKS ============ */
.bs-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.9rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: var(--text-sm);
  border: 1px solid transparent;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out), transform var(--dur-fast) var(--ease-out);
  cursor: pointer;
}

.bs-btn:active {
  transform: translateY(1px);
}

.bs-btn--primary {
  background: var(--accent);
  color: var(--accent-on);
}

.bs-btn--primary:hover {
  background: var(--accent-strong);
}

.bs-btn--ghost {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.bs-btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.bs-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--text-primary);
  font-weight: 600;
  border-bottom: 1px solid var(--border-strong);
  padding-bottom: 2px;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.bs-link-arrow:hover {
  color: var(--accent);
  border-color: var(--accent);
}

.bs-link-arrow svg {
  transition: transform var(--dur-base) var(--ease-out);
}

.bs-link-arrow:hover svg {
  transform: translateX(3px);
}

/* ============ HEADER / NAV ============ */
.bs-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 13, 16, 0.88);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}

.bs-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.bs-wordmark {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.bs-wordmark span {
  color: var(--accent);
}

.bs-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.bs-nav__list {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
}

.bs-nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.bs-nav__link:hover,
.bs-nav__link[aria-current="page"] {
  color: var(--text-primary);
  border-color: var(--accent);
}

.bs-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
}

.bs-nav__toggle:hover {
  background: var(--surface);
}

@media (max-width: 860px) {
  .bs-nav__toggle {
    display: inline-flex;
  }

  .bs-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: var(--sp-8) var(--sp-6);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }

  .bs-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .bs-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-2);
    width: 100%;
  }

  .bs-nav__link {
    width: 100%;
    padding: var(--sp-4) 0;
    font-size: var(--text-lg);
    border-bottom: 1px solid var(--border);
  }

  .bs-nav__cta {
    margin-top: var(--sp-6);
    width: 100%;
    justify-content: center;
  }
}

/* ============ HERO ============ */
.bs-hero {
  padding-block: var(--sp-32) var(--sp-24);
}

@media (max-width: 767px) {
  .bs-hero {
    padding-block: var(--sp-16) var(--sp-12);
  }
}

.bs-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 340px);
  gap: var(--sp-16);
  align-items: center;
}

@media (max-width: 960px) {
  .bs-hero__grid {
    grid-template-columns: 1fr;
  }

  .bs-hero__media {
    order: -1;
    max-width: 260px;
  }
}

.bs-hero__eyebrow {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.bs-hero h1 {
  font-family: var(--font-display);
  font-size: var(--h1);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.bs-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.bs-hero__lede {
  margin-top: var(--sp-6);
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 56ch;
}

.bs-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
}

.bs-hero__media img {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: top center;
  width: 100%;
  background: var(--surface);
}

/* ============ REVEAL ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ============ GRIDS / CARDS ============ */
.bs-grid {
  display: grid;
  gap: var(--sp-8);
}

.bs-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.bs-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 960px) {
  .bs-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .bs-grid--3,
  .bs-grid--2 {
    grid-template-columns: 1fr;
  }
}

.bs-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out),
    transform var(--dur-base) var(--ease-out);
}

.bs-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-elevate);
  transform: translateY(-2px);
}

.bs-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--accent);
  margin-bottom: var(--sp-6);
}

.bs-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-3);
}

.bs-card p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* ============ TAG LIST ============ */
.bs-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.bs-tag {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
}

/* ============ TIMELINE ============ */
.bs-timeline {
  position: relative;
  border-left: 1px solid var(--border);
  margin-left: var(--sp-2);
}

.bs-timeline__item {
  position: relative;
  padding: 0 0 var(--sp-12) var(--sp-10);
}

.bs-timeline__item:last-child {
  padding-bottom: 0;
}

.bs-timeline__item::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}

.bs-timeline__period {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.bs-timeline__item h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--sp-1);
}

.bs-timeline__company {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
}

.bs-timeline__item p {
  color: var(--text-secondary);
  max-width: var(--prose);
  margin-bottom: var(--sp-4);
}

/* ============ PRODUCTS ============ */
.bs-product {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--sp-8);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}

a.bs-product:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.bs-product__mark {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-2);
}

.bs-product__mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bs-product h3 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.bs-product p {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.bs-product__status {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

/* ============ CONTACT ============ */
.bs-contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--sp-16);
}

@media (max-width: 860px) {
  .bs-contact__grid {
    grid-template-columns: 1fr;
    gap: var(--sp-10);
  }
}

.bs-contact__list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.bs-contact__row {
  display: flex;
  gap: var(--sp-4);
  align-items: flex-start;
}

.bs-contact__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.bs-contact__row h2 {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--sp-1);
}

.bs-contact__row a,
.bs-contact__row p {
  color: var(--text-primary);
  font-size: var(--text-base);
}

.bs-contact__row a:hover {
  color: var(--accent);
}

/* ============ FOOTER ============ */
.bs-footer {
  border-top: 1px solid var(--border);
  padding-block: var(--sp-12);
}

.bs-footer__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-6);
}

.bs-footer__legal {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

.bs-footer__links {
  display: flex;
  gap: var(--sp-6);
}

.bs-footer__links a {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

.bs-footer__links a:hover {
  color: var(--accent);
}

.bs-footer__social {
  display: flex;
  gap: var(--sp-3);
}

.bs-footer__social a {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}

.bs-footer__social a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* ============ BREADCRUMB (secondary pages) ============ */
.bs-page-head {
  padding-block: var(--sp-16) var(--sp-8);
}

.bs-page-head h1 {
  font-family: var(--font-display);
  font-size: var(--h2);
  color: var(--text-primary);
}

.bs-page-head .bs-crumbs {
  display: flex;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: var(--sp-3);
}

.bs-page-head .bs-crumbs a:hover {
  color: var(--accent);
}

/* ============ LEGAL / LONG-FORM CONTENT ============ */
.bs-legal h2 {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
}

.bs-legal > *:first-child h3 {
  margin-top: 0;
}

.bs-legal p {
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
}

.bs-legal ul {
  list-style: disc;
  padding-left: 1.25em;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
}

.bs-legal li {
  margin-bottom: var(--sp-2);
}

.bs-legal a {
  color: var(--accent);
  text-decoration: underline;
}

/* ============ UTIL ============ */
.bs-section--flush {
  border-top: 0;
}

.bs-mt-0 {
  margin-top: 0;
}

.bs-mt-8 {
  margin-top: var(--sp-8);
}

.bs-mt-10 {
  margin-top: var(--sp-10);
}

.bs-mt-16 {
  margin-top: var(--sp-16);
}

.bs-text-center {
  text-align: center;
}

.bs-center {
  margin-inline: auto;
}

.bs-narrow-640 {
  max-width: 640px;
}

.bs-narrow-560 {
  max-width: 560px;
}

.bs-actions--center {
  justify-content: center;
}

.bs-heading--h4 {
  font-size: var(--h4);
  margin-bottom: var(--sp-6);
}

.bs-heading--h2 {
  font-size: var(--h2);
  margin-bottom: var(--sp-6);
}

.bs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
