/* =========================================================
   SHRI RAM INFRASTRUCTURE — DESIGN TOKENS
   Palette:
     --ink      #16140F  deep construction black
     --cream    #F3EEE1  warm off-white background
     --paper    #FBF9F3  lightest panel white
     --orange   #E85D04  construction / safety orange
     --orange-d #B84400  pressed / deep orange
     --olive    #9C9660  logo-matched khaki accent (secondary)
     --line     #D9D2BC  hairline rule on cream
     --grey     #6B6656  muted text on cream
   Type:
     Display : "Big Shoulders Display" (condensed, structural, steel-beam feel)
     Body    : "Public Sans" (clean, engineering-plan legible)
     Mono    : "JetBrains Mono" (blueprint dimension labels / stats)
   ========================================================= */

:root {
  --ink: #16140f;
  --ink-soft: #2b2820;
  --cream: #f3eee1;
  --paper: #fbf9f3;
  --orange: #e85d04;
  --orange-d: #b84400;
  --olive: #9c9660;
  --line: #d9d2bc;
  --grey: #6b6656;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: "Public Sans", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: "Big Shoulders Display", ui-sans-serif, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

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

/* ---------- Blueprint grid motif (signature element) ---------- */
.blueprint-grid {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.5;
}

.blueprint-grid-dark {
  background-image:
    linear-gradient(rgba(243,238,225,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243,238,225,0.08) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* dimension tick line, like an architectural drawing measurement */
.dim-line { position: relative; }
.dim-line::before,
.dim-line::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 6px;
  height: 6px;
  border-top: 2px solid var(--orange);
  border-right: 2px solid var(--orange);
  transform: translateY(-50%) rotate(45deg);
}
.dim-line::before { left: -2px; }
.dim-line::after { right: -2px; transform: translateY(-50%) rotate(225deg); }

/* ---------- Header ---------- */
#site-header { transition: box-shadow .3s ease, background-color .3s ease; }
#site-header.scrolled { box-shadow: 0 2px 24px rgba(22,20,15,0.08); }

.nav-link {
  position: relative;
  font-family: "Public Sans", sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 2px;
  background: var(--orange);
  transition: width .25s ease;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.75rem;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: var(--paper);
}
.btn-primary:hover { background: var(--orange-d); transform: translateY(-2px); }

.btn-outline-dark {
  border: 1.5px solid var(--ink);
  color: var(--ink);
  background: transparent;
}
.btn-outline-dark:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }

.btn-outline-light {
  border: 1.5px solid rgba(243,238,225,0.5);
  color: var(--paper);
  background: transparent;
}
.btn-outline-light:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); transform: translateY(-2px); }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Service / value cards ---------- */
.service-row {
  border-top: 1px solid var(--line);
  transition: background-color .3s ease;
}
.service-row:hover { background-color: rgba(232,93,4,0.04); }
.service-row:hover .service-num { color: var(--orange); }
.service-row .service-img-wrap { overflow: hidden; }
.service-row .service-img-wrap svg { transition: transform .5s ease; }
.service-row:hover .service-img-wrap svg { transform: scale(1.08); }
.service-num { transition: color .3s ease; }

/* ---------- Placeholder photo blocks (no invented imagery) ---------- */
.photo-placeholder {
  position: relative;
  border: 1.5px dashed var(--olive);
  background: repeating-linear-gradient(135deg, rgba(156,150,96,0.08) 0 10px, transparent 10px 20px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

/* ---------- Counter ---------- */
.stat-num { font-variant-numeric: tabular-nums; }

/* ---------- Timeline ---------- */
.timeline-line {
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}
.timeline-line-v {
  background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 16px);
}
.timeline-dot {
  border: 2px solid var(--orange);
  background: var(--paper);
}

/* ---------- Footer ---------- */
footer a:hover { color: var(--orange) !important; }

/* ---------- Floating action buttons ---------- */
.fab {
  box-shadow: 0 8px 24px rgba(22,20,15,0.25);
  transition: transform .2s ease;
}
.fab:hover { transform: translateY(-3px); }

/* ---------- Misc ---------- */
.hairline { border-color: var(--line); }
.eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.no-scrollbar::-webkit-scrollbar { display: none; }

/* Mobile nav panel */
#mobile-nav { transition: transform .35s ease; }

/* ---------- Real photo framing (premium, blueprint corner marks) ---------- */
.img-frame { position: relative; overflow: hidden; background: var(--ink); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s ease; }
.img-frame:hover img { transform: scale(1.05); }
.img-frame .corner { position: absolute; width: 22px; height: 22px; border-color: var(--orange); z-index: 2; pointer-events: none; }
.img-frame .corner-tl { top: 10px; left: 10px; border-top: 2.5px solid var(--orange); border-left: 2.5px solid var(--orange); }
.img-frame .corner-br { bottom: 10px; right: 10px; border-bottom: 2.5px solid var(--orange); border-right: 2.5px solid var(--orange); }

/* ---------- Editorial numbered list (Why Choose Us / Why Trust Us) ---------- */
.trust-item { border-top: 1px solid var(--line); padding: 1.1rem 0; }
.trust-item:last-child { border-bottom: 1px solid var(--line); }

/* ---------- Hero photographic background ---------- */
.hero-photo-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center 30%;
}
.hero-photo-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(22,20,15,0.94) 0%, rgba(22,20,15,0.82) 32%, rgba(22,20,15,0.45) 58%, rgba(22,20,15,0.15) 100%);
}

/* ---------- Stat card ---------- */
.stat-card { border-left: 2px solid var(--orange); }

/* ---------- Quality/safety check list ---------- */
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; }
.check-list li svg { flex-shrink: 0; margin-top: 3px; }

/* ---------- Form field ready-state note ---------- */
.integration-note {
  border: 1px dashed var(--olive);
  background: rgba(156,150,96,0.06);
}

/* ---------- Project detail page status badge ---------- */
.badge-pill {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(232,93,4,0.1);
  color: var(--orange-d);
}
