/* Jainsons Group: Institutional design system */
:root {
  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-text: #1c1917;
  --color-text-muted: #57534e;
  --color-accent: #78716c;
  --color-border: #e7e5e4;
  --color-hero-bg: #1c1917;
  --color-hero-text: #fafaf9;
  --font: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  /* Type scale: tight, similar sizes across nav, titles, body */
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1rem;
  --text-lead: 1.0625rem;
  --text-sub: 1rem;
  --text-h3: 1.125rem;
  --text-h2: 1.25rem;
  --text-h1: 1.375rem;
  --text-hero: 1.875rem;
  --line-tight: 1.25;
  --line-body: 1.6;
  --space-xs: 0.375rem;
  --space-sm: 0.75rem;
  --space-md: 1.125rem;
  --space-lg: 1.75rem;
  --space-xl: 2.75rem;
  --space-2xl: 4rem;
  --max-width: 72rem;
  --transition: 0.2s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--text-base);
  line-height: var(--line-body);
  color: var(--color-text);
  background: var(--color-bg);
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

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

/* Typography: single font, scale-based */
h1, h2, h3 {
  font-family: var(--font);
  font-weight: 600;
  line-height: var(--line-tight);
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

h1 {
  font-size: var(--text-h1);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 600;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  color: var(--color-text);
}

p {
  margin: 0 0 var(--space-md);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

p:last-child {
  margin-bottom: 0;
}

.lead {
  font-size: var(--text-lead);
  line-height: var(--line-body);
  color: var(--color-text);
}

/* Layout */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 249, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 4rem;
  gap: var(--space-md);
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  margin-right: auto;
  position: relative;
  z-index: 102;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--color-text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.site-header.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

.site-header.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-list {
  display: flex;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: var(--space-sm) var(--space-lg);
}

@media (max-width: 991px) {
  .hamburger {
    margin-right: 0;
  }

  .site-header .container {
    justify-content: space-between;
  }

  .site-header nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-md) var(--space-lg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    z-index: 99;
  }

  .site-header.nav-open nav {
    display: flex;
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--color-border);
  }

  .nav-list li:last-child {
    border-bottom: none;
  }

  .nav-list a {
    display: block;
    padding: var(--space-sm) 0;
  }
}

@media (min-width: 992px) {
  .hamburger {
    display: none;
  }

  .site-header .container {
    justify-content: center;
  }
}

.nav-list a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
}

.nav-list a:hover,
.nav-list a.active {
  color: var(--color-text);
}

/* Hero */
.hero {
  min-height: 32vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: var(--color-hero-bg) url("../assets/hero-kailash.png") center / cover no-repeat;
  color: var(--color-hero-text);
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  margin-top: 3.5rem;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 25, 23, 0.72);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: var(--text-hero);
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
  margin-bottom: var(--space-sm);
}

.hero .tagline {
  font-family: var(--font);
  font-size: 1.125rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
  margin: 0;
}

/* Sections */
.section {
  padding: var(--space-xl) 0;
}

.section--alt {
  background: var(--color-surface);
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  margin-bottom: var(--space-xs);
}

.section-title .sub {
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
}

/* About block (home) */
.about-preview {
  max-width: 52rem;
  margin: 0 auto;
  text-align: center;
}

.about-preview .lead {
  margin-bottom: var(--space-lg);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-hero-bg);
  background: var(--color-hero-text);
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}

.btn:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-text);
}

.btn--outline:hover {
  background: var(--color-text);
  color: var(--color-bg);
}

.venture-website-cta {
  margin-top: var(--space-md);
  margin-bottom: 0;
  text-align: center;
}

/* Page header (inner pages) */
.page-header {
  padding: calc(3.5rem + var(--space-2xl)) 0 var(--space-lg);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
  margin-bottom: var(--space-xs);
}

.page-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.page-title-row .venture-logo {
  height: 2.25rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.page-title-row--align-logo h1 {
  transform: translateY(0.15em);
}

.section-title-with-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.section-title-with-logo .section-logo {
  height: 1.75rem;
  width: auto;
  display: block;
  flex-shrink: 0;
}

.page-header .breadcrumb {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Content */
.content-block {
  max-width: 48rem;
}

.content-block + .content-block {
  margin-top: var(--space-xl);
}

.about-top {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.about-top-content {
  max-width: 48rem;
}

.about-top-images {
  display: flex;
  gap: var(--space-md);
  width: 100%;
  max-width: 48rem;
}

.about-top-images img {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 200px;
  object-fit: contain;
  object-position: center center;
  display: block;
  border-radius: 4px;
  background: #f5f4f3;
}

.content-block h2 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-sm);
}

.content-block .content-list {
  list-style: disc;
  padding-left: 1.5rem;
  margin: var(--space-sm) 0 0;
}

.content-block .content-list li {
  margin-bottom: var(--space-xs);
}

.content-block .content-list ul {
  list-style: circle;
  padding-left: 1.25rem;
  margin-top: 0.25rem;
}

/* Dabiri page: feature image + caption */
.dabiri-feature {
  margin-top: var(--space-lg);
}

.dabiri-figure {
  margin: 0 auto;
  max-width: 36rem;
}

.dabiri-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.dabiri-caption {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.02em;
}

/* Shared page feature image (Reja Gems, etc.) — same as Dabiri */
.page-feature {
  margin-top: var(--space-lg);
}

.page-feature-figure {
  margin: 0 auto;
  max-width: 20rem;
}

@media (max-width: 768px) {
  .page-feature-figure {
    max-width: 14rem;
  }
}

.page-feature-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.page-feature-caption {
  margin-top: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-align: center;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 0.35rem;
}

.page-feature-caption .caption-linkedin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0;
  color: var(--color-text-muted);
  transition: color var(--transition);
  line-height: 1;
}

.page-feature-caption .caption-linkedin:hover {
  color: var(--color-accent);
}

.page-feature-caption .caption-linkedin svg {
  width: 1.125rem;
  height: 1.125rem;
}

/* Leadership / cards */
.leadership-grid {
  display: grid;
  gap: var(--space-xl);
  margin-top: var(--space-xl);
}

.leadership-item h3 {
  font-family: var(--font);
  font-size: var(--text-h3);
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.leadership-item .role {
  font-size: var(--text-sm);
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

/* Timeline / history — single line with round dot markers */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 1.5rem;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 0.6em;
  bottom: 0.6em;
  width: 2px;
  background: #d6d4d2;
  z-index: 0;
}

.timeline li {
  padding-left: 0.75rem;
  padding-right: 0;
  padding-bottom: var(--space-lg);
  position: relative;
  z-index: 1;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline-with-images > li:not(.timeline-item-with-image) {
  padding-left: calc(12rem + var(--space-lg) + 0.75rem);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.4em;
  width: 8px;
  height: 8px;
  background: var(--color-text);
  border-radius: 50%;
  margin-left: 2px;
}

.timeline .year {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: 0.2rem;
}

.timeline .year + p {
  margin-top: 0;
}

.timeline-item-with-image {
  padding-left: 0 !important;
}

.timeline-item-with-image::before {
  left: -1.5rem;
  margin-left: 2px;
}

.timeline-item-inner {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
  padding-bottom: 0;
}

.timeline-item-inner .timeline-image {
  width: 12rem;
  min-width: 12rem;
  height: auto;
  display: block;
  border-radius: 4px;
  object-fit: cover;
  object-position: top center;
  flex-shrink: 0;
}

.timeline-item-inner .timeline-content {
  flex: 1;
  padding-left: 0.75rem;
  margin-left: 0;
  position: relative;
  border: none;
  min-width: 0;
}

.timeline-item-inner .timeline-content::before {
  display: none;
}

.timeline-item-inner .timeline-content .year {
  display: block;
}

@media (max-width: 768px) {
  .about-top-images {
    display: flex;
    align-items: stretch;
  }

  .about-top-images img {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    width: auto;
    object-fit: contain;
    object-position: center center;
    flex: 1 1 0;
    min-width: 0;
  }

  .timeline-with-images > li:not(.timeline-item-with-image) {
    padding-left: 0;
  }

  .timeline-item-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .timeline-item-inner .timeline-image {
    margin-top: 0;
    margin-bottom: 0;
    width: 100%;
    min-width: 0;
    max-width: 16rem;
  }

  .timeline-item-inner .timeline-content {
    padding-left: 0;
    padding-right: 0.75rem;
  }
}

/* Contact */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-list li {
  margin-bottom: var(--space-md);
}

.contact-list a {
  font-weight: 500;
  color: var(--color-text);
}

.contact-list a:hover {
  color: var(--color-accent);
}

.contact-addresses li {
  color: var(--color-text-muted);
}

.venture-list {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
}

.venture-list li {
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--text-base);
  color: var(--color-text-muted);
}

.venture-list li:last-child {
  border-bottom: none;
}

.venture-list strong {
  color: var(--color-text);
}

.venture-list a {
  font-weight: 500;
  color: var(--color-text);
}

/* Footer */
.site-footer {
  margin-top: var(--space-xl);
  padding: var(--space-lg) 0 var(--space-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.site-footer .logo {
  font-size: var(--text-sub);
}

.site-footer .logo.logo-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
}

.site-footer .logo-img {
  height: 2rem;
  width: auto;
  display: block;
}

.site-footer .nav-list {
  gap: var(--space-md);
}

.site-footer .footer-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.site-footer .footer-social:hover {
  color: var(--color-accent);
}

.site-footer .footer-social svg {
  width: 1.5rem;
  height: 1.5rem;
}

.site-footer small {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Utilities */
.text-center { text-align: center; }
.mt-lg { margin-top: var(--space-lg); }
