/* ==========================================================================
   Shastra IT Services — Master Design System (component layer)
   Consumes tokens.css exclusively via var() — no raw hex below this line.
   ========================================================================== */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--color-background);
  color: var(--color-foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); color: var(--color-foreground); }
a { color: var(--color-accent); text-decoration: none; transition: color var(--duration-fast) var(--ease); }
a:hover { color: var(--color-accent-hover); }
img, svg { max-width: 100%; }

/* Visible focus ring everywhere — never remove for a11y */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, .btn:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--color-ring);
  outline-offset: 2px;
}

button, .btn, [role="button"], input[type="submit"], .nav-link, .industry-tag { cursor: pointer; }

/* ---------------------------------------------------------------------
   Typography / section utilities
   --------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--p-space-2);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--p-space-3);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--color-accent);
  display: inline-block;
}
.section { padding: var(--p-space-24) 0; }
.section-alt { background: var(--color-muted); }
.section-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 var(--p-space-3);
}
.section-lead {
  color: var(--color-muted-foreground);
  font-size: 17px;
  max-width: 640px;
  margin: 0 0 var(--p-space-10);
}
.text-accent { color: var(--color-accent); }

/* ---------------------------------------------------------------------
   Navbar (site)
   --------------------------------------------------------------------- */
.site-navbar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-navbar .navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 20px;
  color: var(--color-primary);
  letter-spacing: -.01em;
}
.site-navbar .nav-link {
  font-weight: 500;
  color: var(--color-secondary);
  padding: var(--p-space-2) var(--p-space-3);
  border-radius: var(--radius-sm);
  transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus-visible { color: var(--color-accent); background: var(--color-muted); }

/* ---------------------------------------------------------------------
   Buttons
   --------------------------------------------------------------------- */
.btn {
  font-weight: 600;
  border-radius: var(--radius);
  padding-inline: var(--p-space-5);
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.btn-lg { padding-block: var(--p-space-3); font-size: 16px; }
.btn-primary {
  --bs-btn-bg: var(--color-accent);
  --bs-btn-border-color: var(--color-accent);
  --bs-btn-hover-bg: var(--color-accent-hover);
  --bs-btn-hover-border-color: var(--color-accent-hover);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-dark-ghost {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
}
.btn-dark-ghost:hover { background: rgba(255,255,255,.16); color: #fff; transform: translateY(-1px); }

/* ---------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------- */
.hero {
  background: radial-gradient(1100px 520px at 85% -10%, rgba(3,105,161,.35), transparent 60%), var(--color-primary);
  color: #fff;
  padding: var(--p-space-24) 0 var(--p-space-20);
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--p-space-2);
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  padding: var(--p-space-1) var(--p-space-4);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  margin-bottom: var(--p-space-5);
}
.hero h1 {
  font-size: clamp(38px, 5.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 var(--p-space-5);
  max-width: 820px;
  color: #fff;
}
.hero-description {
  max-width: 620px;
  font-size: 18px;
  line-height: 1.7;
  color: #C9D6E8;
  margin: 0 0 var(--p-space-8);
}

/* Trust strip */
.trust-strip {
  border-top: 1px solid rgba(255,255,255,.12);
  margin-top: var(--p-space-16);
  padding-top: var(--p-space-6);
  display: flex;
  flex-wrap: wrap;
  gap: var(--p-space-8);
}
.trust-item { display: flex; align-items: center; gap: var(--p-space-2); color: #C9D6E8; font-size: 14px; font-weight: 500; }
.trust-item i { color: var(--p-blue-500); font-size: 18px; }

/* ---------------------------------------------------------------------
   Stat / metric band
   --------------------------------------------------------------------- */
.metric-card { text-align: center; padding: var(--p-space-6) var(--p-space-4); }
.metric-card .metric-value {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}
.metric-card .metric-label { color: var(--color-muted-foreground); font-size: 14px; margin-top: var(--p-space-2); }

/* ---------------------------------------------------------------------
   Cards — about / service / why-us / industries / contact
   --------------------------------------------------------------------- */
.surface-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--duration-base) var(--ease), transform var(--duration-base) var(--ease);
}
.surface-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.icon-tile {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  background: var(--color-muted);
  color: var(--color-accent);
  font-size: 22px;
  flex-shrink: 0;
}

.about-card { padding: var(--p-space-6); border-left: 4px solid var(--color-accent); }
.about-card ul { margin: var(--p-space-2) 0 0; padding-left: 18px; }
.about-card ul li { margin-bottom: var(--p-space-1); color: var(--color-muted-foreground); font-size: 14.5px; }
.about-text p { color: var(--color-muted-foreground); font-size: 16px; line-height: 1.75; }

.service-card { padding: var(--p-space-8); height: 100%; }
.service-card .service-header { display: flex; align-items: center; gap: var(--p-space-4); margin-bottom: var(--p-space-5); }
.service-card h3 { font-size: 19px; margin: 0; }
.service-list { columns: 2; column-gap: var(--p-space-6); margin: 0; padding-left: 18px; }
.service-list li { break-inside: avoid; color: var(--color-muted-foreground); font-size: 14.5px; margin-bottom: var(--p-space-2); }
.service-list li::marker { color: var(--color-accent); }

.industry-tag {
  display: flex;
  align-items: center;
  gap: var(--p-space-2);
  justify-content: center;
  padding: var(--p-space-4);
  border-radius: var(--radius);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-secondary);
  font-weight: 600;
  font-size: 13.5px;
  text-align: center;
  height: 100%;
  transition: all var(--duration-base) var(--ease);
}
.industry-tag i { color: var(--color-accent); font-size: 16px; }
.industry-tag:hover { border-color: var(--color-accent); box-shadow: var(--shadow-sm); transform: translateY(-2px); }

.why-card { padding: var(--p-space-8) var(--p-space-5); text-align: center; height: 100%; }
.why-card .icon-tile { margin: 0 auto var(--p-space-4); }
.why-card h3 { font-size: 16.5px; margin: 0 0 var(--p-space-2); }
.why-card p { margin: 0; color: var(--color-muted-foreground); font-size: 14px; line-height: 1.65; }

/* ---------------------------------------------------------------------
   Process timeline
   --------------------------------------------------------------------- */
.process-timeline { position: relative; max-width: 820px; margin: 0 auto; }
.process-timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 8px; bottom: 8px;
  width: 2px;
  background: var(--color-border);
}
.process-step { display: flex; gap: var(--p-space-6); align-items: flex-start; padding: var(--p-space-5) 0; position: relative; }
.step-number {
  width: 56px; height: 56px; min-width: 56px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700; font-size: 18px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  color: var(--color-accent);
  position: relative; z-index: 2;
}
.step-content h3 { font-size: 18px; margin: 0 0 var(--p-space-1); }
.step-content p { margin: 0; color: var(--color-muted-foreground); line-height: 1.65; }

/* ---------------------------------------------------------------------
   Commitment band
   --------------------------------------------------------------------- */
.commitment-block {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  padding: var(--p-space-16) var(--p-space-10);
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.commitment-block h2 { color: #fff; }
.commitment-block p { font-size: 17px; line-height: 1.7; margin: 0 0 var(--p-space-3); color: #C9D6E8; }
.commitment-strong { font-weight: 700; color: #fff !important; font-size: 19px !important; }

/* ---------------------------------------------------------------------
   Contact section
   --------------------------------------------------------------------- */
.contact-band { background: var(--color-primary); color: #fff; }
.contact-band .section-lead { color: #B7C7DC; }
.contact-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: var(--p-space-6) var(--p-space-5);
  text-align: center;
  height: 100%;
}
.contact-card .icon-tile { background: rgba(255,255,255,.1); color: #fff; margin: 0 auto var(--p-space-3); }
.contact-card h3 { margin: 0 0 var(--p-space-2); font-size: 15px; color: #fff; }
.contact-card p { margin: 0; color: #C9D6E8; font-size: 14px; }
.contact-card a { color: #cfe6ff; }

.inquiry-form { max-width: 760px; margin: 0 auto; }
.inquiry-form label { font-weight: 600; margin-bottom: var(--p-space-1); font-size: 14px; color: #E2ECF7; }
.required { color: #ff9b8a; }
.inquiry-form .form-control {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  border-radius: var(--radius);
  padding: 11px 16px;
}
.inquiry-form .form-control::placeholder { color: rgba(255,255,255,.4); }
.inquiry-form .form-control:focus {
  background: rgba(255,255,255,.12);
  border-color: var(--p-blue-500);
  box-shadow: 0 0 0 .2rem rgba(59,130,246,.25);
  color: #fff;
}
.submit-btn { min-width: 220px; min-height: 50px; font-size: 16px; }

/* ---------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------- */
.site-footer { background: var(--color-foreground); color: #93A4BC; padding: var(--p-space-16) 0 var(--p-space-6); }
.footer-brand h4 { color: #fff; margin: 0 0 var(--p-space-2); font-size: 18px; }
.footer-brand p { margin: 0; font-size: 14px; line-height: 1.6; }
.footer-links h4, .footer-contact h4 { color: #fff; margin: 0 0 var(--p-space-3); font-size: 15px; }
.footer-links a { display: block; margin-bottom: var(--p-space-2); font-size: 14px; color: #93A4BC; }
.footer-links a:hover { color: #fff; }
.footer-contact p { margin: 0 0 var(--p-space-1); font-size: 14px; }
.footer-contact a { color: #B7C7DC; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: var(--p-space-5); text-align: center; font-size: 13px; color: #64748B; }

/* ---------------------------------------------------------------------
   Thank-you page
   --------------------------------------------------------------------- */
.confirm-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: var(--p-space-16) var(--p-space-10);
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.confirm-icon {
  width: 80px; height: 80px;
  border-radius: var(--radius-full);
  background: var(--color-success-bg);
  color: var(--color-success);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px;
  margin: 0 auto var(--p-space-6);
}

/* ---------------------------------------------------------------------
   ADMIN / DASHBOARD SURFACE
   --------------------------------------------------------------------- */
[data-surface="admin"] { background: var(--color-background); }

.admin-topbar {
  background: var(--color-primary);
  color: #fff;
  padding: var(--p-space-4) 0;
  box-shadow: var(--shadow-sm);
}
.admin-topbar .navbar-brand { font-family: var(--font-heading); font-weight: 700; color: #fff; font-size: 18px; }
.admin-topbar .btn-dark-ghost { font-size: 13.5px; padding: var(--p-space-2) var(--p-space-4); }

.admin-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: var(--p-space-6);
}
.admin-panel h5, .admin-panel h4 { font-size: 16px; font-weight: 700; margin-bottom: var(--p-space-4); }

.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--p-space-4);
  text-align: center;
  transition: box-shadow var(--duration-base) var(--ease);
}
.stat-card:hover { box-shadow: var(--shadow-sm); }
.stat-card .stat-label { display: block; font-size: 11.5px; color: var(--color-muted-foreground); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.stat-card .stat-value { font-family: var(--font-heading); font-size: 24px; font-weight: 700; color: var(--color-primary); }

.table-admin {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
}
.table-admin thead th {
  background: var(--color-muted);
  color: var(--color-secondary);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 700;
  border-bottom: 1px solid var(--color-border);
  padding: var(--p-space-3) var(--p-space-4);
}
.table-admin td { padding: var(--p-space-4); vertical-align: middle; border-color: var(--color-border); }
.table-admin tbody tr { transition: background var(--duration-fast) var(--ease); }
.table-admin tbody tr:hover { background: var(--color-muted); }

.badge-status { font-weight: 600; font-size: 12px; padding: .4em .7em; border-radius: var(--radius-full); }
.badge-new        { background: var(--color-muted); color: var(--color-secondary); }
.badge-contacted   { background: #DBEAFE; color: #1D4ED8; }
.badge-followup    { background: var(--color-warning-bg); color: #92400E; }
.badge-proposal    { background: #EDE9FE; color: #6D28D9; }
.badge-won         { background: var(--color-success-bg); color: #065F46; }
.badge-lost        { background: var(--color-destructive-bg); color: #991B1B; }
.badge-due { background: var(--color-warning); color: #fff; }

.detail-field label { font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; color: var(--color-muted-foreground); margin-bottom: var(--p-space-1); display: block; }
.detail-field .form-control[readonly] { background: var(--color-muted); border-color: var(--color-border); color: var(--color-foreground); }

/* ---------------------------------------------------------------------
   Responsive
   --------------------------------------------------------------------- */
@media (max-width: 992px) {
  .section { padding: var(--p-space-16) 0; }
}
@media (max-width: 768px) {
  .hero { padding: var(--p-space-16) 0 var(--p-space-12); }
  .service-list { columns: 1; }
}
