/* ============================================
   AK SHUKLA GLOBAL INSTITUTIONS — Design System
   ============================================ */

:root {
  --ink: #1B2A4A;
  --ink-soft: #2E4066;
  --parchment: #F7F4EC;
  --parchment-dim: #EFEAE0;
  --gold: #B8924A;
  --gold-soft: #D9C394;
  --charcoal: #2B2B2B;
  --sage: #7C8B6F;
  --white: #FFFFFF;

  --font-display: "Fraunces", "Source Serif 4", Georgia, serif;
  --font-body: "Source Sans 3", "Inter", -apple-system, sans-serif;

  --max-width: 1200px;
  --section-pad: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--parchment);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Ribbon signature ---------- */
.ribbon {
  height: 3px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold-soft) 55%, transparent 100%);
  width: 100%;
}

.ribbon--center {
  width: 64px;
  height: 3px;
  background: var(--gold);
  margin: 0 auto;
}

/* ---------- Eyebrow / label ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 14px;
  display: block;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(247, 244, 236, 0.97);
  backdrop-filter: blur(6px);
  z-index: 100;
  border-bottom: 1px solid rgba(27, 42, 74, 0.08);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 40px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--gold);
  font-weight: 600;
}

.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 500;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--ink);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gold);
}

.nav-cta {
  background: var(--ink);
  color: var(--parchment) !important;
  padding: 10px 22px;
  border-radius: 2px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.nav-cta:hover { background: var(--ink-soft); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--ink);
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 30px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.02em;
  border-radius: 2px;
  border: 1.5px solid var(--ink);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--ink);
  color: var(--parchment);
}
.btn-primary:hover {
  background: var(--ink-soft);
  border-color: var(--ink-soft);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--parchment);
}

.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.btn-gold:hover {
  background: #A07F3F;
  border-color: #A07F3F;
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 0;
}

.hero-statement {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.06;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  max-width: 920px;
  margin: 0 0 28px;
}

.hero-statement em {
  font-style: italic;
  color: var(--gold);
}

.hero-sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 0 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 64px;
}

/* Letterhead stat strip — signature element */
.stat-strip {
  border-top: 1px solid rgba(27, 42, 74, 0.15);
  border-bottom: 1px solid rgba(27, 42, 74, 0.15);
  padding: 28px 0;
}

.stat-strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat-item {
  padding: 0 28px;
  border-right: 1px solid rgba(27, 42, 74, 0.12);
}
.stat-item:last-child { border-right: none; }

.stat-num {
  font-family: var(--font-display);
  font-size: 34px;
  color: var(--ink);
  font-weight: 600;
  display: block;
}

.stat-label {
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-top: 4px;
}

.hero-image-band {
  margin-top: 0;
  height: 340px;
  background: linear-gradient(120deg, var(--ink) 0%, var(--ink-soft) 100%);
  position: relative;
  overflow: hidden;
}

.hero-image-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(184,146,74,0.08) 0px, rgba(184,146,74,0.08) 1px, transparent 1px, transparent 80px);
}

/* ---------- Sections ---------- */
section {
  padding: var(--section-pad) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}

.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 56px;
  gap: 24px;
}

.section-lede {
  font-size: 16.5px;
  color: var(--ink-soft);
  margin-top: 16px;
}

.divider {
  border: none;
  border-top: 1px solid rgba(27, 42, 74, 0.12);
  margin: 0;
}

/* ---------- Cards / grids ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(27, 42, 74, 0.12);
  border: 1px solid rgba(27, 42, 74, 0.12);
}

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

.card {
  background: var(--parchment);
  padding: 40px 36px;
  transition: background 0.25s;
}

.card:hover { background: var(--parchment-dim); }

.card-icon {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 18px;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--ink);
  margin: 0 0 12px;
  font-weight: 600;
}

.card p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Quote / feature block ---------- */
.feature-block {
  background: var(--ink);
  color: var(--parchment);
  padding: 80px 0;
}

.feature-block .section-title { color: var(--parchment); }
.feature-block .section-lede { color: rgba(247,244,236,0.75); }

.quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  max-width: 760px;
  color: var(--parchment);
}

.quote-attr {
  margin-top: 24px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-soft);
  font-weight: 600;
}

/* ---------- Footer ---------- */
/* ---------- Affiliation strip ---------- */
.affiliation-strip {
  background: var(--parchment-dim);
  border-top: 1px solid rgba(27,42,74,0.1);
  border-bottom: 1px solid rgba(27,42,74,0.1);
  padding: 18px 0;
}

.affiliation-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

.affiliation-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--gold);
  padding: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.affiliation-text {
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink-soft);
}

.affiliation-text strong {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Location & Contact ---------- */
.location-contact {
  background: var(--ink);
  color: rgba(247,244,236,0.85);
}

.lc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.lc-block h2 { color: var(--parchment); }

.lc-block .section-lede { color: rgba(247,244,236,0.65); }

.lc-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  align-items: flex-start;
  font-size: 15px;
  color: rgba(247,244,236,0.8);
}

.lc-row .lc-icon {
  color: var(--gold-soft);
  width: 20px;
  flex-shrink: 0;
}

.lc-row a { color: rgba(247,244,236,0.8); transition: color 0.2s; }
.lc-row a:hover { color: var(--gold-soft); }

.map-embed {
  margin-top: 24px;
  border: 1px solid rgba(247,244,236,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
  filter: grayscale(15%) contrast(1.05);
}

@media (max-width: 768px) {
  .lc-grid { grid-template-columns: 1fr; gap: 40px; }
}

.site-footer {
  background: var(--ink);
  color: rgba(247,244,236,0.85);
  padding-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--parchment);
  margin-bottom: 12px;
}

.footer-desc {
  font-size: 14px;
  color: rgba(247,244,236,0.6);
  max-width: 280px;
}

.footer-col h4 {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 18px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: rgba(247,244,236,0.75);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-soft); }

.footer-bottom {
  border-top: 1px solid rgba(247,244,236,0.12);
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(247,244,236,0.5);
}

.visitor-count {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(247,244,236,0.6);
}

.visitor-count strong {
  color: var(--gold-soft);
  font-family: var(--font-display);
  font-weight: 600;
}

/* ---------- Page header (sub-pages) ---------- */
.page-header {
  padding: 64px 0 56px;
  border-bottom: 1px solid rgba(27, 42, 74, 0.1);
}

.page-title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 54px);
  color: var(--ink);
  font-weight: 600;
  margin: 0;
}

.page-lede {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 600px;
  margin-top: 18px;
}

.breadcrumb {
  font-size: 13px;
  color: var(--sage);
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Forms ---------- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.field { margin-bottom: 24px; }

.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 8px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid rgba(27, 42, 74, 0.2);
  border-radius: 2px;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--charcoal);
  transition: border-color 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-panel {
  background: var(--white);
  border: 1px solid rgba(27, 42, 74, 0.1);
  padding: 48px;
}

.summary-panel {
  background: var(--ink);
  color: var(--parchment);
  padding: 40px;
  position: sticky;
  top: 110px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid rgba(247,244,236,0.15);
  font-size: 14.5px;
}

.summary-row.total {
  border-bottom: none;
  border-top: 1px solid var(--gold);
  margin-top: 8px;
  padding-top: 18px;
  font-weight: 600;
  font-size: 17px;
}

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

.gallery-item {
  aspect-ratio: 4/3;
  background: var(--ink-soft);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(135deg, rgba(184,146,74,0.15) 0px, rgba(184,146,74,0.15) 2px, transparent 2px, transparent 24px);
}

.gallery-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 18px;
  background: linear-gradient(to top, rgba(27,42,74,0.9), transparent);
  color: var(--parchment);
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transition: opacity 0.25s;
}

.gallery-item:hover .gallery-caption { opacity: 1; }

.filter-row {
  display: flex;
  gap: 10px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-pill {
  padding: 9px 20px;
  border: 1.5px solid rgba(27, 42, 74, 0.2);
  border-radius: 20px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.2s;
  background: transparent;
}

.filter-pill.active,
.filter-pill:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--parchment);
}

/* ---------- Timeline (Vision/About) ---------- */
.timeline-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid rgba(27, 42, 74, 0.1);
}

.timeline-year {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gold);
  font-weight: 600;
}

.timeline-item h4 {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 8px;
}

.timeline-item p {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- Job listings (Careers) ---------- */
.job-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid rgba(27, 42, 74, 0.1);
  transition: padding-left 0.2s;
}

.job-row:hover { padding-left: 10px; }

.job-title {
  font-family: var(--font-display);
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 6px;
  font-weight: 600;
}

.job-meta {
  font-size: 13.5px;
  color: var(--sage);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.job-arrow {
  color: var(--gold);
  font-size: 20px;
  transition: transform 0.2s;
}

.job-row:hover .job-arrow { transform: translateX(6px); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .footer-grid, .stat-strip-inner { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .summary-panel { position: static; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 22px; }
  .nav-row { padding: 18px 22px; }
  .grid-3, .footer-grid, .stat-strip-inner { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(27,42,74,0.12); padding: 16px 0; }
  .gallery-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  section { padding: 56px 0; }
}

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

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