/* ==========================================================================
   INDHAN.COM — EDITORIAL & ARCHITECTURAL DESIGN SYSTEM
   Inspired by high-end architectural publications and modern design studios
   Clean, refined, professional — Zero neon, zero AI tropes.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Spacing Scale (8px base) */
  --space-xs: 0.5rem;   /* 8px */
  --space-sm: 1rem;     /* 16px */
  --space-md: 1.5rem;   /* 24px */
  --space-lg: 2.5rem;   /* 40px */
  --space-xl: 4rem;     /* 64px */
  --space-2xl: 6rem;    /* 96px */

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --max-width: 1120px;
}

/* Light Mode (Default) — Warm Architectural Paper */
[data-theme="light"], :root {
  --bg-page: #FBFBF9;
  --bg-card: #FFFFFF;
  --bg-subtle: #F2F1ED;
  --bg-elevated: #FFFFFF;
  
  --text-main: #14171A;
  --text-body: #4F5660;
  --text-muted: #7C8695;
  
  --border: #E2E1DC;
  --border-subtle: #EBEAE5;
  
  --accent: #8E6D3E;          /* Warm muted bronze / brass */
  --accent-hover: #735730;
  --accent-soft: rgba(142, 109, 62, 0.08);
  
  --tag-bg: #EAE8E2;
  --tag-text: #4A463E;
  
  --nav-bg: rgba(251, 251, 249, 0.94);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  --shadow-modal: 0 20px 40px rgba(0, 0, 0, 0.12);
}

/* Dark Mode — Deep Architectural Slate */
[data-theme="dark"] {
  --bg-page: #0C1017;
  --bg-card: #131924;
  --bg-subtle: #192231;
  --bg-elevated: #1C2637;
  
  --text-main: #F4F6F8;
  --text-body: #9EABBE;
  --text-muted: #6B788C;
  
  --border: #232D3F;
  --border-subtle: #1B2433;
  
  --accent: #C5A475;
  --accent-hover: #D8B98C;
  --accent-soft: rgba(197, 164, 117, 0.12);
  
  --tag-bg: #1B2433;
  --tag-text: #C5A475;
  
  --nav-bg: rgba(12, 16, 23, 0.94);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.35);
  --shadow-modal: 0 24px 60px rgba(0, 0, 0, 0.6);
}

/* ==========================================================================
   RESET & GLOBAL
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-page);
  color: var(--text-body);
  line-height: 1.6;
  transition: background-color 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-body);
  font-size: 1rem;
}

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

button {
  font-family: var(--font-body);
  border: none;
  background: none;
  cursor: pointer;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.brand-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.02em;
}

.brand-since {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-body);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-btn {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
  transition: var(--transition);
}

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

.mobile-toggle {
  display: none;
  font-size: 1.4rem;
  color: var(--text-main);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--text-main);
  color: var(--bg-page);
  border: 1px solid var(--text-main);
}

.btn-primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}

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

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

/* ==========================================================================
   SECTION COMMON
   ========================================================================== */

.section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
  display: block;
}

.section-heading {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.1rem;
  max-width: 680px;
  color: var(--text-body);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.hero-section {
  padding-top: clamp(3rem, 5vw, 4.5rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 1.25rem;
  color: var(--text-main);
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.hero-lede {
  font-size: 1.1rem;
  color: var(--text-body);
  line-height: 1.68;
  margin-bottom: 2rem;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
  display: block;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 6px;
  display: block;
}

.hero-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  background: var(--bg-card);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .hero-media {
  box-shadow: 0 24px 60px -16px rgba(0, 0, 0, 0.6);
}

.hero-media:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 52px -12px rgba(0, 0, 0, 0.14);
}

.hero-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   EDITORIAL 3-CARD SHOWCASE (CROSS-BORDER ENGAGEMENTS)
   ========================================================================== */

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.editorial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.editorial-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.card-img-wrap {
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.editorial-card:hover .card-img-wrap img {
  transform: scale(1.04);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.card-title {
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.3;
}

.card-text {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.card-meta-list {
  list-style: none;
  border-top: 1px solid var(--border-subtle);
  padding-top: 12px;
  margin-top: auto;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.card-meta-list li {
  margin-bottom: 4px;
}

/* ==========================================================================
   PRACTICES SECTION (6 CLEAN PILLARS)
   ========================================================================== */

.practices-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.practice-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}

.practice-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.practice-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.practice-index {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.practice-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.practice-item-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--text-main);
  line-height: 1.35;
}

.practice-item-text {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.62;
  flex: 1;
}

/* ==========================================================================
   CLIENT TRACK RECORD DIRECTORY
   Authentic engineering ledger
   ========================================================================== */

.dossier-filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-btn {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-body);
  transition: var(--transition);
  letter-spacing: 0.01em;
}

.pill-btn:hover {
  border-color: var(--accent);
  color: var(--text-main);
  background: var(--bg-subtle);
}

.pill-btn.active {
  background: var(--text-main);
  color: var(--bg-page);
  border-color: var(--text-main);
}

.search-input-wrap {
  width: 240px;
}

.search-input-wrap input {
  width: 100%;
  padding: 8px 12px;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: inherit;
  outline: none;
}

.search-input-wrap input:focus {
  border-color: var(--accent);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.directory-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: var(--shadow-card);
}

.directory-item:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
}

.dir-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.dir-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.015em;
}

.dir-origin {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  background: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  letter-spacing: 0.04em;
}

.dir-domain {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.dir-scope {
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}

.dir-detail-btn {
  align-self: flex-start;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.dir-detail-btn:hover {
  color: var(--text-main);
  transform: translateX(4px);
}

/* ==========================================================================
   LEADERSHIP & CREDO
   ========================================================================== */

.credo-quote-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px 40px;
  margin-bottom: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  box-shadow: var(--shadow-card);
}

.credo-col-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.credo-col-text {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text-main);
  line-height: 1.35;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.leader-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 36px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.leader-box:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.leader-title-role {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.leader-title-name {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}

.degrees-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.degree-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-main);
}

.leader-bio-text {
  font-size: 0.94rem;
  color: var(--text-body);
  line-height: 1.65;
}

.heritage-note {
  margin-top: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  gap: 24px;
  align-items: center;
}

.heritage-img {
  width: 140px;
  height: 100px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.heritage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.heritage-text h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.heritage-text p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.6;
}

/* ==========================================================================
   CONSULTATION / CONTACT
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info-list {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card-item {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.contact-card-item h5 {
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 2px;
}

.contact-card-item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.inquiry-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-main);
  margin-bottom: 6px;
}

.form-field input, .form-field select, .form-field textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-page);
  color: var(--text-main);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  border-color: var(--accent);
}

.form-field textarea {
  min-height: 90px;
  resize: vertical;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  padding: 48px 0 28px;
  font-size: 0.88rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.footer-copy {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MODAL DIALOG
   ========================================================================== */

.modal-layer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-layer.open {
  display: flex;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-modal);
  padding: 32px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.4rem;
  color: var(--text-muted);
}

.modal-close:hover {
  color: var(--text-main);
}

/* ==========================================================================
   TOAST
   ========================================================================== */

.toast-msg {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--text-main);
  color: var(--bg-page);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  z-index: 1100;
  box-shadow: var(--shadow-modal);
  display: none;
}

/* ==========================================================================
   RESPONSIVE (MOBILE & TABLET)
   ========================================================================== */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .editorial-grid {
    grid-template-columns: 1fr;
  }
  
  .practices-list {
    grid-template-columns: 1fr;
  }
  
  .directory-grid {
    grid-template-columns: 1fr;
  }
  
  .credo-quote-box {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .leadership-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    box-shadow: var(--shadow-card);
  }
  
  .nav-menu.open {
    display: flex;
  }
  
  .mobile-toggle {
    display: block;
  }
  
  .hero-stats {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .heritage-note {
    flex-direction: column;
    align-items: flex-start;
  }
}
