/* =========================================================
   Shram Sahkari Sangh Limited — Design System
   Navy + Construction Orange, institutional & documentary
   ========================================================= */

:root {
  /* Core palette — sampled from the organisation's own letterhead */
  --navy-900: #071c47;
  --navy-800: #0a2a63;
  --navy-700: #0d357d;   /* primary navy */
  --navy-600: #14448f;
  --navy-100: #e7ecf5;

  --orange-600: #d9600a;
  --orange-500: #ea6c0f; /* primary orange, matched to letterhead helmet */
  --orange-100: #fce9d8;

  --paper: #faf7f1;      /* warm light gray/cream background */
  --paper-deep: #f2ede3;
  --white: #ffffff;
  --charcoal: #23262b;
  --gray-600: #5b6472;
  --gray-400: #8b93a1;
  --hairline: #dcd6c9;

  --serif: "Source Serif 4", "Noto Serif Devanagari", Georgia, serif;
  --sans: "Source Sans 3", "Noto Sans Devanagari", "Segoe UI", Arial, sans-serif;

  --container: 1180px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.22; margin: 0 0 0.5em; color: var(--navy-800); }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.lang-hi { font-family: "Noto Sans Devanagari", var(--sans); }

:focus-visible {
  outline: 3px solid var(--orange-500);
  outline-offset: 2px;
}

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

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

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

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--navy-800);
  color: #fff; padding: 12px 20px; z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Reveal-on-scroll (single subtle pattern, used sparingly) ----------
   Progressive enhancement: content is visible by default so it never
   depends on JavaScript running (no-JS, slow connections, script errors
   all just see the content, unanimated). The "js" class is added by a
   synchronous inline script in <head> — before first paint — so
   JS-capable browsers start already in the pre-reveal state with no
   transition firing on that initial change; the transition then only
   plays once when .is-visible is added by the scroll observer. */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--navy-700);
  box-shadow: 0 1px 0 rgba(13,53,125,0.06);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.brand__logo { height: 56px; width: auto; flex-shrink: 0; }
.brand__text { min-width: 0; }
.brand__hi {
  font-family: "Noto Sans Devanagari", var(--sans);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--navy-800);
  line-height: 1.25;
  white-space: nowrap;
}
.brand__en {
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  color: var(--gray-600);
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.main-nav__list {
  display: flex;
  gap: 4px;
  align-items: center;
}
.main-nav__list a {
  display: inline-block;
  padding: 10px 16px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--navy-800);
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.main-nav__list a:hover,
.main-nav__list a.is-active {
  color: var(--orange-600);
  border-bottom-color: var(--orange-500);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  border-radius: 3px;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  border-color: var(--orange-500);
}
.btn-primary:hover { background: var(--orange-600); border-color: var(--orange-600); }
.btn-outline {
  background: transparent;
  color: var(--navy-800);
  border-color: var(--navy-700);
}
.btn-outline:hover { background: var(--navy-700); color: var(--white); }
.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy-800); border-color: var(--white); }
.btn:active { transform: translateY(1px); }

.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  width: 44px;
  height: 44px;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy-800);
  position: relative;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle__bars::before { position: absolute; top: -8px; }
.nav-toggle__bars::after { position: absolute; top: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(0deg, rgba(6,20,54,0.92) 0%, rgba(7,28,71,0.72) 42%, rgba(7,28,71,0.35) 72%, rgba(7,28,71,0.18) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 60px 0 64px;
  max-width: 760px;
}
.hero__mark {
  font-family: "Noto Sans Devanagari", var(--sans);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.hero__mark-en {
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-100);
  margin-bottom: 28px;
  font-weight: 600;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  margin-bottom: 18px;
}
.hero__hindi-line {
  font-family: "Noto Sans Devanagari", var(--sans);
  font-size: 1.15rem;
  color: var(--paper);
  margin-bottom: 18px;
  line-height: 1.7;
}
.hero__body {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.9);
  max-width: 58ch;
  margin-bottom: 32px;
}
.hero__ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Section scaffolding ---------- */
.section { padding: 96px 0; }
.section--tight { padding: 72px 0; }
.section--paper-deep { background: var(--paper-deep); }
.section--navy {
  background: var(--navy-800);
  color: rgba(255,255,255,0.92);
}
.section--navy h2, .section--navy h3 { color: var(--white); }

.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); }
.section-head p { color: var(--gray-600); font-size: 1.05rem; }
.section--navy .section-head p { color: rgba(255,255,255,0.78); }

.eyebrow-rule {
  width: 56px;
  height: 3px;
  background: var(--orange-500);
  margin-bottom: 20px;
}

/* ---------- Split: text / image ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--hairline);
}
.split__media figcaption {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 8px;
}
.split--reverse .split__media { order: 2; }
.split--reverse .split__text { order: 1; }

.body-copy p { font-size: 1.05rem; color: #3a3f47; max-width: 60ch; }

/* ---------- Work areas (numbered list — genuine sequence of focus areas) ---------- */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
}
.work-item {
  background: var(--white);
  padding: 40px;
}
.work-item__num {
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--orange-600);
  font-weight: 700;
  margin-bottom: 18px;
  display: block;
}
.work-item h3 { font-size: 1.25rem; margin-bottom: 10px; }
.work-item p { color: var(--gray-600); margin-bottom: 0; font-size: 0.98rem; }

/* ---------- Editorial photo triptych ---------- */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.triptych figure { margin: 0; }
.triptych img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border: 1px solid var(--hairline);
}
.triptych figcaption {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 1.02rem;
  color: var(--navy-800);
  font-weight: 600;
}
.triptych figcaption span {
  display: block;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-top: 3px;
}

/* ---------- Cooperative process ---------- */
.process {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 0 12px;
}
.process__step {
  flex: 1 1 0;
  min-width: 150px;
  text-align: center;
  padding: 28px 16px;
  border-top: 3px solid var(--orange-500);
  background: var(--white);
}
.process__step .lang-hi {
  display: block;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--navy-800);
}
.process__step .en {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--gray-600);
  margin-top: 4px;
}
.process__arrow {
  flex: 0 0 auto;
  color: var(--orange-500);
  font-size: 1.4rem;
  padding: 0 4px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy-900);
  color: var(--white);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); max-width: 720px; margin: 0 auto 14px; }
.cta-band p { color: rgba(255,255,255,0.78); max-width: 560px; margin: 0 auto 30px; font-size: 1.05rem; }
.cta-band__actions { display: flex; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: rgba(255,255,255,0.82);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
}
.footer-brand { display: flex; gap: 14px; margin-bottom: 16px; }
.footer-brand img { height: 54px; width: auto; }
.footer-brand__hi { font-family: "Noto Sans Devanagari", var(--sans); font-weight: 700; color: var(--white); font-size: 1.02rem; }
.footer-brand__en { font-size: 0.76rem; color: rgba(255,255,255,0.6); margin-top: 2px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-weight: 700;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.75); font-size: 0.96rem; }
.footer-col ul a:hover { color: var(--orange-500); }
.footer-col address { font-style: normal; color: rgba(255,255,255,0.75); font-size: 0.96rem; line-height: 1.7; }
.footer-tagline { max-width: 40ch; font-size: 0.92rem; color: rgba(255,255,255,0.6); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 22px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: var(--orange-500); }
.photo-credits { font-size: 0.76rem; color: rgba(255,255,255,0.38); margin-top: 6px; }
.photo-credits a { color: rgba(255,255,255,0.5); }

/* ---------- Page hero (About / Contact) ---------- */
.page-hero {
  position: relative;
  color: var(--white);
  padding: 84px 0 76px;
  background-color: var(--navy-800);
  background-size: cover;
  background-position: center;
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(7,28,71,0.94) 22%, rgba(7,28,71,0.62) 100%);
}
.page-hero__content { position: relative; z-index: 2; max-width: 700px; }
.page-hero h1 { color: var(--white); font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,0.85); font-size: 1.08rem; max-width: 56ch; }

.page-hero--plain {
  background: var(--navy-800);
}
.page-hero--plain::after { display: none; }

/* ---------- About page ---------- */
.focus-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.focus-card {
  padding: 32px 28px;
  background: var(--white);
  border: 1px solid var(--hairline);
  border-top: 4px solid var(--navy-700);
}
.focus-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.focus-card p { color: var(--gray-600); font-size: 0.97rem; margin-bottom: 0; }

.pull-quote {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--navy-800);
  line-height: 1.5;
  border-left: 4px solid var(--orange-500);
  padding-left: 28px;
  margin: 0;
  max-width: 62ch;
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: start;
}
.contact-info-list { margin-bottom: 32px; }
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item__icon {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-100);
  color: var(--navy-700);
  display: flex; align-items: center; justify-content: center;
}
.contact-info-item h4 {
  font-family: var(--sans);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
  font-weight: 700;
}
.contact-info-item a, .contact-info-item span { font-size: 1.05rem; color: var(--charcoal); font-weight: 600; }

.map-embed {
  border: 1px solid var(--hairline);
  overflow: hidden;
  margin-top: 8px;
}
.map-embed iframe { width: 100%; height: 280px; border: 0; display: block; }

.form-card {
  background: var(--white);
  border: 1px solid var(--hairline);
  padding: 40px;
}
.form-row { margin-bottom: 22px; }
.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 8px;
}
.form-row .required { color: var(--orange-600); }
.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cfc9ba;
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--charcoal);
  border-radius: 2px;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--navy-700);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 130px; }
.form-error {
  color: #b3261e;
  font-size: 0.85rem;
  margin-top: 6px;
  display: none;
}
.form-row.has-error input,
.form-row.has-error textarea { border-color: #b3261e; }
.form-row.has-error .form-error { display: block; }

.form-status {
  padding: 16px 18px;
  margin-bottom: 24px;
  border-left: 4px solid var(--navy-700);
  background: var(--navy-100);
  font-size: 0.96rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status.is-error { border-color: #b3261e; background: #fbe9e7; }

/* ---------- Footer note / badges row (letterhead identity) ---------- */
.identity-badges {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-top: 6px;
}
.identity-badges img { height: 46px; width: auto; opacity: 0.92; }
.identity-badges__text {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.5;
  max-width: 30ch;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media,
  .split--reverse .split__text { order: initial; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid .footer-col:first-child { grid-column: 1 / -1; }
  .contact-grid { grid-template-columns: 1fr; }
  .focus-grid { grid-template-columns: 1fr; }
  .triptych { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }

  .main-nav {
    position: fixed;
    top: 81px;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 24px 24px;
    border-bottom: 3px solid var(--navy-700);
    transform: translateY(-140%);
    transition: transform 0.25s ease;
    z-index: 90;
  }
  .site-header.nav-open .main-nav { transform: translateY(0); }
  .main-nav__list {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .main-nav__list a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--hairline);
    border-radius: 0;
  }
  /* On mobile the CTA lives inside the sliding panel itself (see markup),
     right after the nav list — normal flow, no fixed positioning to keep
     in sync with the list's height. */
  .main-nav .header-cta {
    display: flex;
    margin-top: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--hairline);
  }
  .main-nav .header-cta .btn-primary {
    width: 100%;
  }
  .site-header.nav-open .nav-toggle .nav-toggle__bars { background: transparent; }
  .site-header.nav-open .nav-toggle .nav-toggle__bars::before { transform: rotate(45deg) translate(6px, 6px); }
  .site-header.nav-open .nav-toggle .nav-toggle__bars::after { transform: rotate(-45deg) translate(6px, -6px); }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { min-height: 82vh; }
  .hero__content { padding: 40px 0 44px; }
  .process { flex-direction: column; }
  .process__arrow { transform: rotate(90deg); padding: 4px 0; }
  .process__step { width: 100%; }
  .work-item { padding: 28px 24px; }
  .form-card { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .brand__hi { font-size: 0.92rem; }
  .brand__en { font-size: 0.62rem; }
  .brand__logo { height: 44px; }
  .cta-band { padding: 56px 0; }
  .identity-badges { flex-wrap: wrap; }
}
