/* Hindustan DigiSoft — brand light theme (logo blue + lime) */
:root {
  /* Sampled from images/logo.png */
  --brand-blue: #0c70b5;
  --brand-blue-hover: #095a91;
  --brand-lime: #accf4f;
  --brand-lime-hover: #8fad3d;
  --brand-lime-dark: #5a6f2a;
  --bg: #f4f8fb;
  --bg-page: #ffffff;
  --bg-elevated: #ffffff;
  --surface: #eef4f9;
  --border: #d8e4ef;
  --border-strong: #b8cad9;
  --text: #153450;
  --text-muted: #4a6780;
  --accent: var(--brand-blue);
  --accent-hover: var(--brand-blue-hover);
  --accent-soft: rgba(12, 112, 181, 0.1);
  --accent-ring: rgba(12, 112, 181, 0.22);
  --accent-secondary: var(--brand-lime);
  --accent-secondary-hover: var(--brand-lime-hover);
  --accent-secondary-soft: rgba(172, 207, 79, 0.2);
  --shadow-sm: 0 1px 2px rgba(21, 52, 80, 0.05);
  --shadow-md: 0 4px 14px rgba(21, 52, 80, 0.07);
  --shadow-card: 0 2px 8px rgba(21, 52, 80, 0.04), 0 12px 28px rgba(12, 112, 181, 0.06);
  --radius: 10px;
  --radius-lg: 16px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1100px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(12, 112, 181, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(172, 207, 79, 0.07) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo:hover {
  text-decoration: none;
  opacity: 0.92;
}

.logo-img {
  height: clamp(35px, 4.55vw, 48px);
  width: auto;
  max-width: min(266px, calc(100vw - 5.75rem));
  object-fit: contain;
  object-position: left center;
  display: block;
}

.footer-brand .logo-img {
  height: clamp(32px, 3.5vw, 41px);
  max-width: min(224px, 100%);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-page);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: currentColor;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
}

.nav a:hover {
  color: var(--text);
  background: var(--surface);
  text-decoration: none;
}

.nav a[aria-current="page"] {
  color: var(--accent);
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-secondary-soft));
  font-weight: 600;
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding: 3.5rem 0;
}

section:first-of-type {
  padding-top: 2.5rem;
}

/* Hero */
.hero {
  padding: 3rem 0 4rem;
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin-top: 1.5rem;
  padding-left: clamp(1.5rem, 4vw, 2.5rem);
  padding-right: clamp(1.5rem, 4vw, 2.5rem);
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.hero.wrap {
  width: min(100% - 2rem, var(--max));
}

.hero h1 {
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 0 0 1.125rem;
  max-width: 22ch;
  color: var(--text);
}

.hero-lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 54ch;
  margin: 0 0 1.75rem;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-meta {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}

.hero-meta dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0 0 0.35rem;
  font-weight: 600;
}

.hero-meta dd {
  margin: 0;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6875rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}

.btn:hover {
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(21, 52, 80, 0.08), 0 2px 10px rgba(12, 112, 181, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(12, 112, 181, 0.35);
  color: #ffffff;
}

.btn-ghost {
  background: var(--bg-page);
  color: var(--accent);
  border: 1px solid rgba(12, 112, 181, 0.38);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:hover {
  background: var(--accent-secondary-soft);
  border-color: var(--accent-secondary);
  color: var(--accent-hover);
}

/* Page header */
.page-header {
  padding: 2.5rem 0 1.75rem;
  border-bottom: 1px solid var(--border);
}

.page-header h1 {
  margin: 0 0 0.625rem;
  font-size: clamp(1.625rem, 3.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.page-header p {
  margin: 0;
  color: var(--text-muted);
  max-width: 58ch;
  font-size: 1.0625rem;
}

/* Cards & grids */
.grid-2 {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.625rem 1.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  border-color: rgba(12, 112, 181, 0.24);
  box-shadow: var(--shadow-card);
}

.card h2,
.card h3 {
  margin: 0 0 0.625rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.card a {
  font-weight: 600;
  font-size: 0.9rem;
}

.card a:hover {
  text-decoration: underline;
}

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent-secondary-soft));
  display: grid;
  place-items: center;
  margin-bottom: 0.875rem;
  font-size: 1.1rem;
  color: var(--accent);
  border: 1px solid rgba(12, 112, 181, 0.16);
}

.grid-3 .card:nth-child(5) .card-icon,
.grid-3 .card:nth-child(6) .card-icon {
  color: var(--brand-lime-dark);
  border-color: rgba(172, 207, 79, 0.4);
}

.section-title {
  margin: 0 0 0.375rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-lime-dark);
  font-weight: 600;
}

.section-heading {
  margin: 0 0 1.75rem;
  font-size: clamp(1.375rem, 2.8vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 1.625rem;
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-secondary);
  font-weight: 700;
  font-size: 0.85em;
}

/* CTA band */
.cta-band {
  margin: 2rem 0 0;
  padding: 2.75rem 2rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(12, 112, 181, 0.08) 0%, rgba(172, 207, 79, 0.12) 100%);
  border: 1px solid rgba(12, 112, 181, 0.2);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.cta-band h2 {
  margin: 0 0 0.625rem;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cta-band p {
  margin: 0 auto 1.375rem;
  color: var(--text-muted);
  max-width: 46ch;
  font-size: 0.975rem;
}

/* Contact form */
.form-grid {
  display: grid;
  gap: 1.125rem;
  max-width: 560px;
}

.form-captcha {
  min-height: 68px;
}

.form-captcha .cf-turnstile {
  max-width: 100%;
}

.form-error {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #b42318;
}

.captcha-hint {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 600px) {
  .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.125rem;
  }
}

label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.6875rem 0.875rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-page);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-block {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.contact-block h2 {
  margin: 0 0 1rem;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.contact-block dl {
  margin: 0;
}

.contact-block dt {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 1.125rem;
  font-weight: 600;
}

.contact-block dt:first-child {
  margin-top: 0;
}

.contact-block dd {
  margin: 0.2rem 0 0;
  color: var(--text);
  font-size: 0.9375rem;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2.75rem 0;
  border-top: 1px solid var(--border);
  background: var(--bg-page);
  position: relative;
  z-index: 1;
  box-shadow: 0 -1px 0 var(--border);
}

.site-footer .wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .site-footer .wrap {
    grid-template-columns: 1.5fr 1fr 1fr;
    align-items: start;
  }
}

.footer-brand p {
  margin: 0.625rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  max-width: 34ch;
  line-height: 1.55;
}

.footer-col h3 {
  margin: 0 0 0.75rem;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--accent-secondary-hover);
}

.site-footer .footer-bottom {
  grid-column: 1 / -1;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Prose */
.prose {
  max-width: 65ch;
}

.prose p {
  color: var(--text-muted);
  margin: 0 0 1.125rem;
  font-size: 0.975rem;
}

.prose h2 {
  margin: 1.75rem 0 0.625rem;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

/* Timeline */
.timeline {
  border-left: 2px solid var(--border);
  margin-left: 0.5rem;
  padding-left: 1.5rem;
}

.timeline-item {
  position: relative;
  padding-bottom: 1.75rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: calc(-1.5rem - 6px);
  top: 0.3rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-page);
  box-shadow: 0 0 0 1px var(--border);
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item strong {
  display: block;
  color: var(--brand-lime-dark);
  font-size: 0.8125rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: 0.02em;
}

.timeline-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    gap: 0.125rem;
    background: var(--bg-page);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 0.75rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn-primary:hover {
    transform: none;
  }
}
