/* ============================================================
   SRI IT SOLUTIONS / TECH BRAINS — MASTER STYLESHEET
   ============================================================ */

:root {
  /* Color tokens — derived from SRI IT Solutions logo (blue globe + deep navy crescent) */
  --ink:          #0E2A4A;   /* deep navy from logo crescent */
  --ink-soft:     #1B4F7A;   /* mid blue */
  --paper:        #F4F8FB;   /* cool white paper */
  --paper-deep:   #E7F1F7;   /* light blue-tinted card bg */
  --accent:       #1F9CD6;   /* logo globe cyan-blue */
  --accent-soft:  #4DC4EF;
  --steel:        #7E97AC;   /* muted steel-blue for captions */
  --steel-light:  #C3D8E6;
  --white:        #FFFFFF;
  --line:         rgba(14,42,74,0.10);
  --line-light:   rgba(244,248,251,0.14);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* Layout */
  --max-width:    1200px;
  --radius:       4px;
  --radius-lg:    8px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); font-weight: 500; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.2em; color: var(--ink-soft); }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 640px;
  line-height: 1.65;
}

/* Eyebrow / ledger label */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.eyebrow::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.eyebrow .idx { color: var(--steel); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245,243,237,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
}

.nav-logo img {
  height: 40px;
  width: 40px;
  object-fit: contain;
}

.nav-logo .brand-accent { color: var(--accent); }

.nav-logo .powered-by {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--steel);
  display: block;
  margin-top: 2px;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}

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

.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
}

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--paper) !important;
  padding: 10px 22px;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover {
  background: var(--accent);
  transform: translateY(-1px);
}

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

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 14px 30px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(31,156,214,0.25);
  color: #fff;
}

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

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover {
  background: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(14,42,74,0.25);
}

/* ============================================================
   SECTION WRAPPER
   ============================================================ */
.section {
  padding: 90px 0;
}
.section-tight { padding: 60px 0; }

.section-dark {
  background: var(--ink);
  color: var(--paper);
}
.section-dark p { color: var(--steel-light); }
.section-dark h2, .section-dark h3 { color: var(--paper); }
.section-dark .eyebrow::after { background: var(--line-light); }
.section-dark .eyebrow .idx { color: var(--steel); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-title {
  margin-bottom: 24px;
}

.hero-title .line2 { color: var(--accent); }

.hero-actions {
  display: flex;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

/* Ledger card — signature visual element */
.ledger-card {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  box-shadow: 0 30px 80px rgba(14,42,74,0.25);
  position: relative;
}

.ledger-card .ledger-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line-light);
  padding-bottom: 14px;
  margin-bottom: 16px;
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.05em;
}

.ledger-card .ledger-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ledger-card .ledger-row:last-child { border-bottom: none; }

.ledger-card .ledger-row .label { color: var(--steel-light); }
.ledger-card .ledger-row .value { color: var(--accent-soft); font-weight: 500; }

.ledger-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(74,222,128,0.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0 rgba(74,222,128,0.5); }
  70%  { box-shadow: 0 0 0 8px rgba(74,222,128,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); }
}

/* ============================================================
   STAT STRIP
   ============================================================ */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat-item {
  padding: 36px 28px;
  border-right: 1px solid var(--line);
  text-align: left;
}
.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  margin-top: 8px;
  letter-spacing: 0.03em;
}

/* ============================================================
   CARD GRID — services / portfolio / blog
   ============================================================ */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(14,42,74,0.08);
  border-color: var(--accent);
}

.card .card-icon {
  width: 48px; height: 48px;
  background: var(--paper-deep);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.95rem; }

.card .card-tags {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 18px;
}
.card .tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--paper-deep);
  color: var(--ink-soft);
  padding: 4px 10px;
  border-radius: 3px;
}

/* ============================================================
   PORTFOLIO / WORK CARD
   ============================================================ */
.work-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.25s, box-shadow 0.25s;
}
.work-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,42,74,0.1); }

.work-card .work-image {
  height: 200px;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.work-card .work-image img { width: 100%; height: 100%; object-fit: cover; }

.work-card .work-body { padding: 24px; }

.work-card .work-meta {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

/* ============================================================
   BLOG CARD
   ============================================================ */
.blog-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: transform 0.25s, box-shadow 0.25s;
}
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(14,42,74,0.1); }

.blog-card .blog-image {
  height: 180px;
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-soft);
  font-size: 2.5rem;
}

.blog-card .blog-body { padding: 22px; }

.blog-card .blog-date {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
  margin-bottom: 10px;
}

.blog-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.blog-card p { font-size: 0.9rem; }

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  margin-top: 14px;
  font-weight: 500;
}

/* ============================================================
   TIMELINE (About page)
   ============================================================ */
.timeline {
  border-left: 2px solid var(--line);
  padding-left: 40px;
  margin-left: 10px;
}

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
  content: '';
  position: absolute;
  left: -46px; top: 4px;
  width: 12px; height: 12px;
  background: var(--accent);
  border: 3px solid var(--paper);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--line);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 500;
}

/* ============================================================
   VALUES GRID
   ============================================================ */
.value-item {
  display: flex;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.value-item:last-child { border-bottom: none; }

.value-item .value-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  flex-shrink: 0;
  padding-top: 4px;
}

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.form-group { margin-bottom: 20px; }

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
}
.form-textarea { resize: vertical; min-height: 130px; }

.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.contact-info-item:first-child { padding-top: 0; }
.contact-info-item:last-child { border-bottom: none; }

.contact-info-icon {
  width: 40px; height: 40px;
  background: var(--paper-deep);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  font-size: 18px;
  flex-shrink: 0;
}

.contact-info-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
  background: var(--ink);
  border-radius: var(--radius-lg);
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(31,156,214,0.18), transparent 70%);
  border-radius: 50%;
}

.cta-band h2 { color: var(--paper); margin-bottom: 16px; }
.cta-band p { color: var(--steel-light); max-width: 480px; margin: 0 auto 32px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: var(--steel-light);
  padding: 70px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--line-light);
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--paper);
  margin-bottom: 14px;
}
.footer-brand .brand-accent { color: var(--accent); }

.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
  font-weight: 500;
}

.footer-col a {
  display: block;
  color: var(--steel-light);
  font-size: 0.92rem;
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-soft); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 26px;
  font-size: 0.82rem;
  color: var(--steel);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: var(--steel); }
.footer-bottom a:hover { color: var(--accent-soft); }

.footer-socials { display: flex; gap: 14px; }
.footer-socials a {
  width: 36px; height: 36px;
  border: 1px solid var(--line-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  transition: border-color 0.2s, color 0.2s;
}
.footer-socials a:hover { border-color: var(--accent); color: var(--accent-soft); }

/* ============================================================
   PAGE HEADER (sub-pages)
   ============================================================ */
.page-header {
  padding: 60px 0 50px;
  border-bottom: 1px solid var(--line);
}
.page-header h1 { margin-bottom: 16px; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 44px;
  margin-bottom: 16px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
}
.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content p, .legal-content li { color: var(--ink-soft); font-size: 0.97rem; }
.legal-content ul { padding-left: 24px; }
.legal-content li { margin-bottom: 8px; }
.legal-content .legal-meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--steel);
  margin-bottom: 30px;
}
.legal-content strong { color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-top: 1px solid var(--line); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-strip { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 60px 0; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* Mobile nav drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  padding: 12px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.nav-drawer a:last-child { border-bottom: none; }
.nav-drawer a.active { color: var(--accent); }
