/* ════════════════════════════════════════════════════════════
   SL Innovation Centre — styles
   Vanilla CSS. Mobile-first. Light, calm, mountain-inspired.
   ════════════════════════════════════════════════════════════ */

:root {
  /* Brand palette */
  --primary:        #1F3864;
  --primary-2:      #2E75B6;
  --primary-soft:   #DCE6F1;
  --link:           #1F66A0;  /* darker than primary-2 for WCAG AA text-link contrast */
  --accent-green:   #5F7C4A;  /* Himachal pine */
  --accent-gold:    #7A551C;  /* warm gold — WCAG AAA on cream */
  --accent-gold-2:  #B7842B;  /* original gold — for decorative use on dark backgrounds */
  --bg:             #FAF8F2;  /* warm cream */
  --bg-2:           #FFFFFF;
  --ink:            #1A2330;
  --ink-soft:       #57637A;
  --ink-soft-2:     #6E7588;  /* darkened for WCAG AA on small text */
  --border:         #E6E2D7;
  --shadow:         0 2px 24px rgba(31,56,100,0.06);
  --shadow-lift:    0 8px 40px rgba(31,56,100,0.10);

  /* Tricolour accents (design only — no claim, no emblem) */
  --tc-saffron:     #FF9933;
  --tc-white:       #FFFFFF;
  --tc-green:       #138808;

  /* Blue-collar industrial accents */
  --steel:          #4A5566;
  --steel-soft:     #E1E4EA;

  /* Type */
  --f-sans: 'Inter', system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-deva: 'Noto Sans Devanagari', 'Inter', system-ui, sans-serif;

  /* Sizes */
  --container: 1140px;
  --gap-section: clamp(4rem, 8vw, 7rem);
  --radius: 14px;
  --radius-sm: 8px;
}

/* ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }

/* Devanagari renders crisper with this font */
.hi, [lang="hi"], em { font-family: var(--f-deva); font-style: normal; }
em { color: var(--primary); font-weight: 500; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

h1, h2, h3 { color: var(--ink); margin: 0 0 .8rem; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 600; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.18rem); color: var(--ink); }
.subtle { color: var(--ink-soft-2); font-size: .92rem; }
.centered { text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin: 0 0 .8rem;
}
.eyebrow.centered { display: block; }
.eyebrow-light { color: var(--accent-gold); }

/* ──────────────────────────────────────────────────────────── */
/* Nav                                                           */
/* ──────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem clamp(1rem, 4vw, 2rem);
  background: rgba(250, 248, 242, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: .65rem; color: var(--primary); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 6px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 600; font-size: 1rem; color: var(--primary); }
.brand-loc { font-size: .72rem; color: var(--ink-soft); margin-top: 2px; }

.nav-links {
  display: none;
  gap: 1.4rem;
  align-items: center;
}
.nav-links a {
  color: var(--ink-soft);
  font-size: .92rem;
  font-weight: 500;
  padding: .5rem 0;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta {
  color: var(--bg-2) !important;
  background: var(--primary);
  padding: .55rem 1.1rem !important;
  border-radius: 8px;
  font-weight: 500;
}
.nav-cta:hover { background: var(--primary-2); }

.nav-toggle {
  display: flex; flex-direction: column; gap: 5px;
  width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--border); border-radius: 8px;
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span {
  width: 18px; height: 2px; background: var(--primary); border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .nav-links { display: flex; }
}

/* Mobile dropdown */
.nav-links.is-open {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--border);
  padding: .5rem clamp(1rem, 4vw, 2rem) 1rem;
}
.nav-links.is-open a {
  width: 100%;
  padding: .85rem 0;
  border-bottom: 1px solid var(--border);
}
.nav-links.is-open a:last-child { border-bottom: 0; margin-top: .5rem; }
.nav-links.is-open .nav-cta { width: 100%; text-align: center; }

/* ──────────────────────────────────────────────────────────── */
/* Hero                                                          */
/* ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse at top left, rgba(46,117,182,0.08), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(95,124,74,0.08), transparent 50%),
    var(--bg);
}
.hero-glow {
  position: absolute; inset: -20% -10% auto auto;
  width: 60%; height: 60%;
  background: radial-gradient(circle, rgba(46,117,182,0.10), transparent 60%);
  filter: blur(40px); z-index: 0; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; text-align: center; }
.hero-logo {
  width: clamp(72px, 12vw, 110px);
  height: auto;
  margin: 0 auto 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.hero-eyebrow {
  font-size: .82rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent-gold); font-weight: 600; margin: 0 0 1rem;
}
.hero-title {
  margin: 0 auto 1.3rem; max-width: 800px;
  font-weight: 700; font-size: clamp(2rem, 6vw, 3.6rem);
  line-height: 1.1;
}
.hero-title span { display: block; }
.hero-title .hi {
  font-family: var(--f-deva); color: var(--primary);
  font-size: clamp(1.6rem, 4.5vw, 2.6rem); font-weight: 600;
}
.hero-title .en {
  color: var(--ink);
  margin-top: .5rem;
  font-size: clamp(1.4rem, 3.5vw, 2.2rem);
  font-weight: 500;
  font-family: var(--f-sans);
}
.hero-sub {
  max-width: 640px; margin: 0 auto 2rem;
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  color: var(--ink-soft);
}
.hero-cta {
  display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap;
  margin: 0 0 2.5rem;
}
.hero-foot { font-size: .9rem; color: var(--ink-soft-2); margin: 0; }

.btn {
  display: inline-block; padding: .8rem 1.5rem;
  border-radius: 10px; font-weight: 500; font-size: .98rem;
  transition: transform .15s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--primary); color: var(--bg-2);
  box-shadow: var(--shadow);
}
.btn-primary:hover { background: var(--primary-2); color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-ghost {
  background: transparent; color: var(--primary);
  border: 1px solid var(--primary);
}
.btn-ghost:hover { background: var(--primary); color: var(--bg-2); text-decoration: none; }

/* ──────────────────────────────────────────────────────────── */
/* Sections                                                      */
/* ──────────────────────────────────────────────────────────── */
.section { padding: var(--gap-section) 0; }
.section-tinted {
  background: linear-gradient(180deg, var(--bg-2) 0%, #F4F1E7 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-dark {
  background: linear-gradient(180deg, #14223A 0%, var(--primary) 100%);
  color: var(--bg-2);
}
.section-dark h2, .section-dark p, .section-dark .lead { color: #F4EEDF; }
.lead-light { color: rgba(244, 238, 223, 0.88); }

/* Two-column layout */
.two-col {
  display: grid; gap: clamp(2rem, 4vw, 4rem);
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .two-col { grid-template-columns: 1.2fr 1fr; }
  .two-col.reverse { grid-template-columns: 1fr 1.2fr; }
  .two-col.reverse > :first-child { order: 2; }
  .two-col.reverse > :last-child { order: 1; }
}

/* Vision — pillars */
.pillars {
  margin-top: 3rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .pillars { grid-template-columns: repeat(4, 1fr); } }
.pillar {
  background: var(--bg-2); padding: 1.6rem; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pillar:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pillar-num {
  display: inline-block;
  font-size: .75rem; font-weight: 700; letter-spacing: .14em;
  color: var(--accent-gold);
  background: rgba(183,132,43,0.12); padding: 4px 10px; border-radius: 30px;
  margin-bottom: .8rem;
}
.pillar h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.pillar p { font-size: .94rem; margin: 0; }

/* Tracks */
.tracks {
  margin-top: 2.5rem;
  display: grid; gap: 1.2rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .tracks { grid-template-columns: repeat(2, 1fr); } }
.track {
  background: var(--bg-2); padding: 1.6rem 1.7rem; border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform .2s ease, box-shadow .2s ease;
}
.track:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.track h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: .65rem;
  font-size: 1.18rem; margin-bottom: .5rem;
}
.track-tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  color: var(--primary-2);
  background: var(--primary-soft); padding: 3px 8px; border-radius: 4px;
}
.track p { font-size: .96rem; margin: 0; }

/* Projects */
.projects {
  margin-top: 2.5rem;
  display: grid; gap: 1.8rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .projects { grid-template-columns: repeat(2, 1fr); } }
.project {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.project:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.project-media { background: #0a0e16; aspect-ratio: 16 / 10; overflow: hidden; }
.project-media video, .project-media img { width: 100%; height: 100%; object-fit: cover; }
.project-photos .project-media { aspect-ratio: 4 / 3; }
.project-body { padding: 1.3rem 1.5rem 1.5rem; }
.project-body h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.project-meta {
  font-size: .82rem; color: var(--ink-soft-2);
  margin: 0 0 .7rem; font-family: monospace, ui-monospace;
}
.project-body p { font-size: .94rem; margin: 0; }

/* Collaboration */
.collab { margin: 1.5rem 0 2rem; }
.collab dt {
  font-weight: 600; color: var(--primary); font-size: 1rem;
  margin-top: 1.1rem;
}
.collab dt:first-child { margin-top: 0; }
.collab dd { margin: .3rem 0 0; color: var(--ink-soft); font-size: .95rem; }

.flow {
  display: grid; gap: .75rem; place-items: center;
  background: linear-gradient(180deg, var(--bg-2), #F7F4EA);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 2rem 1.5rem;
}
.flow-step {
  width: 100%; max-width: 280px;
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 1rem 1.2rem; text-align: center;
  font-weight: 600; color: var(--ink);
}
.flow-step span {
  display: inline-block; margin-right: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .12em;
  color: var(--accent-gold); padding: 2px 8px;
  background: rgba(183,132,43,0.12); border-radius: 30px;
}
.flow-step small { display: block; font-weight: 400; font-size: .82rem; color: var(--ink-soft); margin-top: .35rem; }
.flow-step.accent { border-color: var(--primary); background: var(--primary); color: var(--bg-2); }
.flow-step.accent span { color: #FFE699; background: rgba(255,230,153,0.18); }
.flow-step.accent small { color: rgba(244, 238, 223, 0.9); }
.flow-arrow { color: var(--ink-soft-2); font-size: 1.2rem; }

/* Why Dharamshala */
.why-grid {
  margin-top: 2.5rem;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
.why-grid > div {
  background: var(--bg-2); padding: 1.6rem 1.8rem;
  border-left: 3px solid var(--accent-green); border-radius: var(--radius-sm);
}
.why-grid h3 { color: var(--primary); margin-bottom: .35rem; }
.why-grid p { margin: 0; font-size: .96rem; }

/* Roadmap */
.roadmap {
  margin: 2.5rem 0 0; padding: 0; list-style: none;
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .roadmap { grid-template-columns: repeat(3, 1fr); } }
.roadmap li {
  background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  position: relative; overflow: hidden;
}
.roadmap li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}
.roadmap li:nth-child(2)::before { background: linear-gradient(90deg, var(--primary-2), var(--accent-green)); }
.roadmap li:nth-child(3)::before { background: linear-gradient(90deg, var(--accent-green), var(--accent-gold)); }
.rm-phase {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  color: var(--accent-gold); text-transform: uppercase;
}
.roadmap h3 { font-size: 1.2rem; margin: .5rem 0 .4rem; }
.roadmap p { font-size: .95rem; margin: 0; }

/* Contact */
.contact-inner { text-align: center; max-width: 920px; margin: 0 auto; }
.contact-inner h2 { color: var(--bg-2); }
.contact-cards {
  margin-top: 2.5rem;
  display: grid; gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) { .contact-cards { grid-template-columns: repeat(3, 1fr); } }
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 1.6rem 1.4rem; border-radius: var(--radius);
  color: var(--bg-2);
  display: flex; flex-direction: column; gap: .35rem; align-items: flex-start;
  transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.contact-card:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.35);
  text-decoration: none;
  transform: translateY(-2px);
}
.contact-label {
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  color: rgba(255, 230, 153, 0.9); text-transform: uppercase;
}
.contact-value {
  font-size: 1.15rem; font-weight: 600; color: var(--bg-2);
}
.contact-cta {
  font-size: .88rem; color: rgba(255, 230, 153, 0.95);
  margin-top: .5rem;
}

/* Footer */
.footer {
  background: #14223A;
  color: rgba(244, 238, 223, 0.85);
  padding: 2.5rem 0 0;
}
.footer a { color: rgba(255, 230, 153, 0.95); }
.footer a:hover { color: #FFF1D6; }
.footer-inner {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(244, 238, 223, 0.12);
}
.footer-brand p { margin: 0 0 .4rem; color: rgba(244, 238, 223, 0.92); }
.footer-brand em { color: rgba(255, 230, 153, 0.95); font-weight: 500; }
.footer-logo { width: 42px; border-radius: 6px; margin-bottom: .8rem; }
.footer-links {
  display: flex; flex-direction: column; gap: .65rem;
  align-items: flex-start;
}
.footer-links-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(244, 238, 223, 0.55);
  margin-bottom: .15rem;
}
.footer-links a {
  font-size: .94rem;
  padding: .15rem 0;
}
.footer-links a[aria-current="page"] {
  color: #FFF1D6; font-weight: 600;
  border-left: 2px solid var(--accent-gold-2); padding-left: .6rem;
}
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: 1.4fr auto; align-items: flex-start; }
}

.footer-bottom { padding: 1rem 0 1.4rem; }
.footer-bottom-inner {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: .6rem 1.5rem;
}
.footer-copyright {
  font-size: .85rem; color: rgba(244, 238, 223, 0.72); margin: 0;
}
.footer-copyright strong { color: rgba(255, 230, 153, 0.95); font-weight: 600; }
.footer-made {
  font-size: .82rem; color: rgba(244, 238, 223, 0.55); margin: 0;
}

/* ──────────────────────────────────────────────────────────── */
/* Visually hidden (a11y helper — screen-readers only)           */
/* ──────────────────────────────────────────────────────────── */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ──────────────────────────────────────────────────────────── */
/* Hero poetic Hindi — explicit Noto Sans Devanagari + tooltip   */
/* ──────────────────────────────────────────────────────────── */
.hero-poetic {
  font-family: 'Noto Sans Devanagari', 'Mangal', serif;
  position: relative;
  cursor: help;
  display: inline-block;
  border-bottom: 1px dashed transparent;
  transition: border-color .25s ease;
}
.hero-poetic .hero-poetic-line { display: block; }
.hero-poetic:hover,
.hero-poetic:focus-visible {
  border-bottom-color: rgba(140, 99, 32, 0.4);  /* subtle dashed underline on hover/focus */
}
.hero-poetic:focus-visible { outline-offset: 6px; }

/* The styled tooltip (visible to mouse + keyboard; native title is fallback) */
.hero-poetic::after {
  content: attr(data-tip-line1) "\A" attr(data-tip-line2) "\A" attr(data-tip-line3);
  white-space: pre-line;
  position: absolute;
  left: 50%; top: calc(100% + 14px);
  transform: translateX(-50%) translateY(-6px);
  background: #14223A; color: #F4EEDF;
  padding: .85rem 1.1rem; border-radius: 10px;
  font-family: var(--f-sans); font-size: .82rem; font-weight: 400;
  line-height: 1.55; letter-spacing: 0;
  text-align: left;
  max-width: min(360px, 92vw); width: max-content;
  box-shadow: 0 12px 36px rgba(20, 34, 58, 0.28);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
  z-index: 50;
  pointer-events: none;
}
.hero-poetic::before {
  /* tooltip arrow */
  content: ""; position: absolute;
  left: 50%; top: calc(100% + 6px);
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-bottom-color: #14223A;
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
  z-index: 51;
}
.hero-poetic:hover::after,
.hero-poetic:focus-visible::after,
.hero-poetic:hover::before,
.hero-poetic:focus-visible::before {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear 0s;
}
@media (max-width: 560px) {
  /* On narrow screens, anchor tooltip to the viewport-friendly width */
  .hero-poetic::after { font-size: .78rem; padding: .7rem .9rem; }
}
/* Native title fallback only — hide the styled tooltip if reduced motion AND not hovered */
@media (prefers-reduced-motion: reduce) {
  .hero-poetic::after, .hero-poetic::before { transition: none; }
}

/* ──────────────────────────────────────────────────────────── */
/* Skip-to-content link (a11y)                                   */
/* ──────────────────────────────────────────────────────────── */
.skip-link {
  position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden;
  background: var(--primary); color: #fff !important;
  padding: .7rem 1.1rem; border-radius: 0 0 8px 0;
  font-weight: 600; z-index: 200;
}
.skip-link:focus,
.skip-link:focus-visible {
  position: fixed; left: 0; top: 0; width: auto; height: auto; overflow: visible;
  text-decoration: none; outline: 3px solid var(--accent-gold-2); outline-offset: 2px;
}

/* ──────────────────────────────────────────────────────────── */
/* Focus-visible — keyboard accessibility (a11y)                 */
/* ──────────────────────────────────────────────────────────── */
a:focus-visible,
button:focus-visible,
.contact-card:focus-visible,
.recog-value:focus-visible,
.btn:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid var(--accent-gold-2);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn:focus-visible,
.nav-cta:focus-visible { outline-offset: 4px; }

/* ──────────────────────────────────────────────────────────── */
/* Static nav (used on legal pages — no hamburger needed)        */
/* ──────────────────────────────────────────────────────────── */
.nav-links.is-static {
  display: flex; gap: 1.4rem; align-items: center;
}
@media (max-width: 859px) {
  .nav-links.is-static { gap: 1rem; flex-wrap: wrap; justify-content: flex-end; }
  .nav-links.is-static a { font-size: .9rem; }
}

/* ──────────────────────────────────────────────────────────── */
/* Legal pages (privacy, cookies)                                */
/* ──────────────────────────────────────────────────────────── */
.legal-page { padding: clamp(2rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.legal-container { max-width: 760px; margin: 0 auto; padding: 0 clamp(1rem, 4vw, 2rem); }
.legal-page h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 0 .4rem;
  color: var(--primary);
}
.legal-page h2 {
  margin-top: 2.2rem; margin-bottom: .6rem;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--ink);
  border-left: 3px solid var(--accent-gold);
  padding-left: .7rem;
}
.legal-page p, .legal-page li { color: var(--ink-soft); }
.legal-page strong { color: var(--ink); }
.legal-page .lead { color: var(--ink); }
.legal-page ul { padding-left: 1.3rem; margin: .5rem 0 1rem; }
.legal-page li { margin-bottom: .4rem; }
.legal-meta {
  font-size: .88rem; color: var(--ink-soft-2);
  margin: 0 0 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border);
}
.legal-table {
  width: 100%; border-collapse: collapse; margin: .8rem 0 1.2rem;
  font-size: .94rem;
}
.legal-table th, .legal-table td {
  text-align: left; padding: .7rem .8rem;
  border: 1px solid var(--border); vertical-align: top;
}
.legal-table thead th {
  background: var(--primary-soft); color: var(--primary); font-weight: 600; font-size: .88rem;
}
.legal-address {
  font-style: normal; line-height: 1.8;
  background: var(--bg-2); border: 1px solid var(--border); border-left: 3px solid var(--primary);
  padding: 1rem 1.2rem; border-radius: var(--radius-sm);
  margin: .8rem 0;
}
.legal-contact-block { margin-top: 1.2rem; }
.legal-back {
  margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .94rem;
}
.legal-page code {
  background: var(--steel-soft); padding: 1px 6px; border-radius: 3px;
  font-size: .9em; font-family: ui-monospace, Menlo, monospace; color: var(--ink);
}

/* Better mobile table — stack on narrow viewports */
@media (max-width: 560px) {
  .legal-table thead { display: none; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
  .legal-table tr {
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: .7rem; padding: .3rem;
  }
  .legal-table td {
    border: 0; padding: .5rem .6rem;
  }
  .legal-table td:nth-child(1) { font-weight: 600; color: var(--primary); border-bottom: 1px dashed var(--border); }
}

/* ──────────────────────────────────────────────────────────── */
/* Tricolour strip (top of page — design accent only)            */
/* ──────────────────────────────────────────────────────────── */
.tricolor-strip {
  display: flex; height: 5px; width: 100%;
}
.tricolor-strip span { flex: 1 1 0; display: block; }
.tc-saffron { background: var(--tc-saffron); }
.tc-white   { background: var(--tc-white); border-top: 1px solid #E5E0CF; border-bottom: 1px solid #E5E0CF; }
.tc-green   { background: var(--tc-green); }

/* ──────────────────────────────────────────────────────────── */
/* About — workshop illustration                                 */
/* ──────────────────────────────────────────────────────────── */
.about-illustration {
  margin: 0;  /* reset <figure> default */
  border-radius: var(--radius);
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: .9rem .9rem .3rem;
  position: relative;
}
.about-illustration::before {
  /* subtle industrial accent: top stripe in steel */
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--steel), var(--primary-2));
}
.about-illustration img {
  width: 100%; height: auto; display: block; border-radius: 8px;
  /* Portrait crop — matches the source Unsplash photo (788x1400 ≈ 4:7).
     We crop to 4:5 with center focus to keep the hands+phone composition visible
     while balancing the column height alongside the About copy. */
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 35%;
  background: var(--steel-soft);
}
.about-caption {
  text-align: center; margin: .65rem 0 .3rem;
  font-size: .88rem; color: var(--ink-soft-2);
  display: flex; flex-direction: column; gap: .25rem;
}
.about-caption em { color: var(--ink-soft); font-weight: 500; }
.about-credit {
  font-size: .78rem;          /* up from .72rem for legibility + AA */
  color: var(--ink-soft);     /* darker → AA on white card bg */
  letter-spacing: .01em;
}
.about-credit a {
  color: var(--ink); text-decoration: none;
  border-bottom: 1px dotted var(--ink-soft);
}
.about-credit a:hover { color: var(--primary); border-bottom-color: var(--primary); }
.about-credit-note {
  display: inline-block; margin-left: .3rem;
  color: var(--ink-soft);     /* removed opacity; full AA contrast */
  font-style: italic;
}
@media (max-width: 560px) {
  .about-credit { font-size: .74rem; }
  .about-credit-note { display: block; margin-left: 0; }
}

/* ──────────────────────────────────────────────────────────── */
/* Recognition strip (Startup India + parent firm + location)    */
/* Text-only, no emblem reproduction.                            */
/* ──────────────────────────────────────────────────────────── */
.recog-strip {
  background: #FFFFFF;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
  position: relative;
}
.recog-strip::before,
.recog-strip::after {
  /* slim saffron/green hairlines anchoring the strip — civic flavour */
  content: ""; position: absolute; left: 0; right: 0; height: 2px;
}
.recog-strip::before { top: -1px;    background: var(--tc-saffron); opacity: .85; }
.recog-strip::after  { bottom: -1px; background: var(--tc-green);   opacity: .85; }
.recog-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 1rem 1.5rem;
}
.recog-item {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  min-width: 180px;
}
.recog-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft-2);
}
.recog-value {
  font-size: .98rem; font-weight: 600; color: var(--primary);
  margin-top: .15rem;
}
.recog-value:hover { text-decoration: none; color: var(--primary-2); }
.recog-sub {
  display: block; font-size: .78rem; font-weight: 400; color: var(--ink-soft);
  margin-top: 1px; letter-spacing: 0;
}
.recog-divider {
  display: none;
  width: 1px; height: 36px; background: var(--border);
}
@media (min-width: 760px) {
  .recog-divider { display: block; }
  .recog-inner { gap: 1rem 2.2rem; }
}

/* ──────────────────────────────────────────────────────────── */
/* Blue-collar industrial touches (subtle, sitewide)             */
/* ──────────────────────────────────────────────────────────── */
.track::before,
.pillar::before,
.roadmap li::before { /* already exists on roadmap; keep */ }
/* Industrial top-rail on track cards */
.track {
  border-top: 3px solid transparent;
  background-image: linear-gradient(var(--bg-2), var(--bg-2)),
                    linear-gradient(90deg, var(--steel), var(--primary-2));
  background-origin: border-box; background-clip: padding-box, border-box;
}
/* Slightly chunkier numbered pillar tags */
.pillar-num { font-family: ui-monospace, Menlo, monospace; }

/* Fade-in for sections — only when JS is enabled.
   Default state = visible (so crawlers, no-JS, and snapshot renders all work). */
.html-js .section,
.html-js .hero {
  opacity: 0; transform: translateY(12px);
  transition: opacity .8s ease, transform .8s ease;
}
.html-js .section.in,
.html-js .hero.in { opacity: 1; transform: none; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .html-js .section, .html-js .hero { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Print */
@media print {
  .nav, .nav-toggle, .hero-cta, .contact-card { display: none; }
  body { background: #fff; color: #000; }
}
