/* ============================================================
   Sri Arjun Group — Website stylesheet
   Bundled design tokens (fonts, colors, typography, spacing,
   effects, base) + site layout styles. Self-contained: no other
   local CSS files required. Google Fonts + Lucide icons load via
   CDN in each page's <head>/<script> tags.
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

/* ---------- Color tokens ---------- */
:root {
  /* ---- Base palette ---- */
  --ink:        #1B1A18;  /* warm near-black — primary text, dark surfaces */
  --ink-2:      #423E38;  /* secondary text on light */
  --muted:      #837C72;  /* tertiary / captions / meta */
  --faint:      #B7AFA3;  /* disabled, hairline labels */

  --paper:      #F7F4EF;  /* page background — warm off-white */
  --surface:    #FFFFFF;  /* card / elevated surface */
  --surface-2:  #F1ECE4;  /* sunken / alternating band */
  --border:     #E7E1D8;  /* hairline dividers, card borders */
  --border-2:   #D9D2C6;  /* stronger border / input outline */

  /* ---- Accent (warm vermilion) ---- */
  --accent:       #E8542A;  /* primary accent */
  --accent-ink:   #C33F1A;  /* hover / pressed accent */
  --accent-soft:  #FBE7DE;  /* tint fill behind accent content */
  --accent-line:  #F3C4B2;  /* accent hairline on soft fills */

  /* ---- On-dark neutrals (for --ink surfaces) ---- */
  --on-dark:        #F7F4EF;
  --on-dark-muted:  #A8A199;
  --on-dark-border: #34322E;
  --on-dark-surface:#242220;

  /* ---- Semantic aliases ---- */
  --text-strong:   var(--ink);
  --text-body:     var(--ink-2);
  --text-muted:    var(--muted);
  --text-accent:   var(--accent);

  --bg-page:       var(--paper);
  --surface-card:  var(--surface);
  --surface-sunken:var(--surface-2);

  --border-hair:   var(--border);
  --border-strong: var(--border-2);

  --focus-ring:    var(--accent);

  /* ---------- Typography tokens ---------- */
  /* ---- Families ---- */
  --font-display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-body:    'Hanken Grotesk', ui-sans-serif, system-ui, sans-serif;
  --font-mono:    ui-monospace, 'SF Mono', Menlo, monospace;

  /* ---- Weights ---- */
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;
  --fw-black:    800;

  /* ---- Type scale (fluid-friendly rem values) ---- */
  --fs-display:  clamp(2.75rem, 1.6rem + 4.6vw, 5rem);
  --fs-h1:       clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem);
  --fs-h2:       clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);
  --fs-h3:       1.5rem;
  --fs-h4:       1.25rem;
  --fs-lead:     1.25rem;
  --fs-body:     1.0625rem;
  --fs-sm:       0.9375rem;
  --fs-xs:       0.8125rem;
  --fs-eyebrow:  0.75rem;

  /* ---- Line heights ---- */
  --lh-tight:   1.05;
  --lh-snug:    1.2;
  --lh-normal:  1.5;
  --lh-relaxed: 1.65;

  /* ---- Letter spacing ---- */
  --ls-tight:   -0.02em;
  --ls-normal:  0;
  --ls-eyebrow: 0.14em;

  /* ---------- Spacing, layout & radius tokens ---------- */
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  24px;
  --space-6:  32px;
  --space-7:  48px;
  --space-8:  64px;
  --space-9:  96px;
  --space-10: 128px;

  /* ---- Layout ---- */
  --container:      1200px;
  --container-narrow: 880px;
  --container-wide: 1360px;
  --gutter:         clamp(20px, 5vw, 64px);
  --section-y:      clamp(64px, 9vw, 128px);

  /* ---- Radius ---- */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-pill: 999px;

  /* ---------- Shadow, border & motion tokens ---------- */
  --shadow-sm:  0 1px 2px rgba(27, 26, 24, 0.06);
  --shadow-md:  0 4px 16px rgba(27, 26, 24, 0.08);
  --shadow-lg:  0 18px 48px rgba(27, 26, 24, 0.12);
  --shadow-accent: 0 10px 30px rgba(232, 84, 42, 0.28);

  --bw-hair: 1px;
  --bw-med:  1.5px;

  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast:   140ms;
  --dur-base:   240ms;
  --dur-slow:   420ms;
}

/* ---------- Base element styles ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  font-weight: var(--fw-regular);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-strong);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  font-weight: var(--fw-bold);
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--text-accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent); color: #fff; }

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

/* ============================================================
   Site layout — presentational classes for the marketing site
   ============================================================ */

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.wrap-narrow { max-width: var(--container-narrow); }
.section { padding-block: var(--section-y); }
.stack { display: flex; flex-direction: column; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }
.eyebrow.center { justify-content: center; }
.lead { font-size: var(--fs-lead); line-height: var(--lh-relaxed); color: var(--text-muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: var(--fw-semibold); font-size: var(--fs-body);
  line-height: 1; padding: 14px 26px; border-radius: var(--radius-pill); cursor: pointer; white-space: nowrap;
  border: 1px solid transparent; transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-secondary { background: transparent; color: var(--text-strong); border-color: var(--border-strong); border-width: 1.5px; }
.btn-secondary:hover { border-color: var(--text-strong); }
.btn-ghost-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark-border); }
.btn-ghost-dark:hover { background: rgba(255,255,255,0.06); }
.btn-lg { padding: 17px 32px; font-size: var(--fs-lead); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg-page) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: var(--fw-black); font-size: 20px; letter-spacing: -0.02em; color: var(--text-strong); white-space: nowrap; }
.brand .mark { width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--ink); color: var(--accent); display: grid; place-items: center; font-size: 18px; }
.brand-logo { height: 26px; width: auto; display: block; }
.footer-col a[href^="mailto"], .footer-col a[href^="tel"] { color: var(--on-dark-muted); }
.contact-detail a { color: var(--accent); }
.brand .accent { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { font-size: var(--fs-sm); font-weight: var(--fw-medium); color: var(--text-muted); transition: color var(--dur-base) var(--ease-out); }
.nav a:hover, .nav a.active { color: var(--text-strong); }
.header-cta { display: flex; align-items: center; gap: 14px; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--on-dark); }
.hero::before {
  content: ""; position: absolute; right: -8%; top: -30%;
  width: 620px; height: 620px; border-radius: var(--radius-pill);
  background: radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 62%);
  opacity: 0.22; pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; left: 46%; bottom: -40%;
  width: 340px; height: 340px; border: 1.5px solid var(--on-dark-border); border-radius: var(--radius-pill);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(72px, 12vw, 150px); }
.hero h1 { font-size: var(--fs-display); color: var(--on-dark); line-height: var(--lh-tight); max-width: 16ch; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { color: var(--on-dark-muted); max-width: 54ch; font-size: var(--fs-lead); }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: var(--space-6); }

/* ---------- Stat strip ---------- */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }
.stat .num { font-family: var(--font-display); font-weight: var(--fw-black); font-size: var(--fs-h2); line-height: 1; letter-spacing: var(--ls-tight); }
.stat .num .u { color: var(--accent); }
.stat .cap { font-size: var(--fs-sm); color: var(--text-muted); margin-top: 8px; max-width: 22ch; }
.on-dark .stat .num { color: var(--on-dark); }
.on-dark .stat .cap { color: var(--on-dark-muted); }

/* ---------- Cards / grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out), border-color var(--dur-base) var(--ease-out);
}
.card.hover:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card.dark { background: var(--ink); border-color: transparent; color: var(--on-dark); }

/* Division card */
.division { display: flex; flex-direction: column; gap: var(--space-4); text-decoration: none; color: inherit; }
.division .tile {
  height: 168px; border-radius: var(--radius-md); position: relative; overflow: hidden;
  background: var(--ink); display: grid; place-items: center;
}
.division .tile .glyph { font-family: var(--font-display); font-weight: 800; font-size: 54px; color: var(--accent); opacity: 0.9; }
.division .tile::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 120% at 15% 10%, rgba(238,90,43,0.28), transparent 55%); }
.division h3 { font-size: var(--fs-h3); }
.division .go { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-semibold); color: var(--accent); font-size: var(--fs-sm); margin-top: auto; }
.division:hover .go svg { transform: translateX(4px); }
.division .go svg { transition: transform var(--dur-base) var(--ease-out); }

/* ---------- Project list ---------- */
.proj-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-6); }
.chip {
  font-family: var(--font-body); font-size: var(--fs-sm); font-weight: var(--fw-medium);
  padding: 8px 16px; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--surface); color: var(--text-strong); border: 1px solid var(--border);
  transition: all var(--dur-base) var(--ease-out);
}
.chip.active { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.proj {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: var(--space-5); display: flex; flex-direction: column; gap: 10px; transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.proj:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.proj .kind {
  align-self: flex-start; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-muted);
}
.proj .kind.res { background: var(--accent-soft); color: var(--accent-ink); }
.proj .kind.com { background: var(--surface-2); color: var(--ink-2); }
.proj h4 { font-family: var(--font-display); font-size: var(--fs-lead); font-weight: var(--fw-semibold); }
.proj .loc { font-size: var(--fs-sm); color: var(--text-muted); }

/* ---------- Feature rows ---------- */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-8); align-items: center; }
.feature.rev { grid-template-columns: 1fr 1.1fr; }
.feature .visual {
  aspect-ratio: 4/3; border-radius: var(--radius-lg); background: var(--ink); position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.feature .visual .glyph { font-family: var(--font-display); font-weight: 800; font-size: 88px; color: var(--accent); opacity: 0.92; }
.feature .visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 120% at 80% 90%, rgba(238,90,43,0.25), transparent 55%); }
.icon-list { display: flex; flex-direction: column; gap: var(--space-4); margin-top: var(--space-2); }
.icon-list li { display: flex; gap: 14px; align-items: flex-start; list-style: none; }
.icon-list .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.icon-list b { display: block; font-family: var(--font-display); font-size: var(--fs-body); margin-bottom: 2px; }
.icon-list span { color: var(--text-muted); font-size: var(--fs-sm); }
ul { padding: 0; margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--accent); color: #fff; border-radius: var(--radius-xl); padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band h2 { color: #fff; font-size: var(--fs-h2); max-width: 20ch; margin-inline: auto; }
.cta-band .lead { color: color-mix(in srgb, #fff 82%, transparent); margin-inline: auto; margin-top: 14px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: var(--space-4); }
.field label { font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.field input, .field textarea, .field select {
  font-family: var(--font-body); font-size: var(--fs-body); color: var(--text-strong); background: var(--surface);
  padding: 12px 16px; border-radius: var(--radius-md); border: 1px solid var(--border); outline: none;
  transition: border-color var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.contact-detail { display: flex; gap: 14px; align-items: flex-start; padding: var(--space-4) 0; border-bottom: 1px solid var(--border); }
.contact-detail:last-child { border-bottom: 0; }
.contact-detail .ic { flex-shrink: 0; width: 40px; height: 40px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-strong); display: grid; place-items: center; }
.contact-detail b { display: block; font-family: var(--font-display); font-size: var(--fs-body); }
.contact-detail span { color: var(--text-muted); font-size: var(--fs-sm); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-block: var(--space-9) var(--space-6); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-6); padding-bottom: var(--space-7); border-bottom: 1px solid var(--on-dark-border); }
.site-footer .brand { color: var(--on-dark); }
.footer-col h5 { font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: var(--space-4); font-weight: 700; }
.footer-col a, .footer-col p { display: block; font-size: var(--fs-sm); color: var(--on-dark-muted); margin-bottom: 12px; transition: color var(--dur-base) var(--ease-out); }
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-5); font-size: var(--fs-xs); color: var(--on-dark-muted); font-family: var(--font-mono); flex-wrap: wrap; gap: 12px; }
.footnote { font-size: var(--fs-xs); color: var(--on-dark-muted); max-width: 40ch; margin-top: 14px; line-height: 1.6; }

/* ---------- Page hero (division pages) ---------- */
.page-hero { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; right: -6%; top: -50%; width: 480px; height: 480px; border-radius: var(--radius-pill); background: radial-gradient(circle at 40% 40%, var(--accent), transparent 62%); opacity: 0.2; }
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 9vw, 110px); }
.page-hero h1 { color: var(--on-dark); font-size: var(--fs-h2); max-width: 18ch; }
.page-hero .lead { color: var(--on-dark-muted); max-width: 56ch; margin-top: 16px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-family: var(--font-mono); font-size: var(--fs-xs); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: var(--space-5); }
.breadcrumb a { color: var(--accent); }

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
  .grid-3, .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.rev, .contact-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .nav { display: none; }
  .grid-3, .grid-2, .proj-grid, .stat-strip, .footer-top { grid-template-columns: 1fr; }
  .header-cta .btn { display: none; }
}
