/* ============================================================
   Udyam MSME Consultancy — Design tokens
   Palette: deep indigo (trust/official), saffron accent (registration/seal),
   teal secondary, warm paper background. Signature element: rubber-stamp seal.
   Type: Fraunces (display, official-but-warm serif) + IBM Plex Sans (body,
   technical/administrative clarity) + IBM Plex Mono (numbers, form fields, refs).
   ============================================================ */

:root {
  --ink: #1b2430;
  --indigo: #1b3a5c;
  --indigo-dark: #10263e;
  --saffron: #c8720f;
  --saffron-deep: #a4590a;
  --teal: #0f766e;
  --paper: #f6f3ec;
  --paper-2: #efe9db;
  --line: #d8d0bd;
  --white: #ffffff;
  --success: #166534;
  --radius: 4px;
  --shadow: 0 8px 24px rgba(27, 58, 92, 0.10);
}

@font-face {
  font-family: 'Fraunces';
  src: local('Fraunces');
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'IBM Plex Sans', -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, serif;
  color: var(--indigo-dark);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.25rem; }

a { color: var(--indigo); }
p { margin: 0 0 1em; }

.mono { font-family: 'IBM Plex Mono', monospace; }

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 2px solid var(--saffron);
  display: flex; align-items: center; justify-content: center;
  color: var(--saffron-deep);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 15px;
}
.brand-text { font-family: 'Fraunces', serif; font-weight: 600; color: var(--indigo-dark); font-size: 1.15rem; }
.brand-text small { display: block; font-family: 'IBM Plex Sans', sans-serif; font-weight: 400; font-size: 0.68rem; color: var(--teal); letter-spacing: 0.04em; text-transform: uppercase; }

nav.main-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
nav.main-nav a { text-decoration: none; color: var(--ink); font-size: 0.95rem; font-weight: 500; }
nav.main-nav a:hover { color: var(--saffron-deep); }

/* Dropdown submenu (e.g. Udyam Services) */
nav.main-nav li.has-dropdown { position: relative; }
nav.main-nav li.has-dropdown > a::after { content: ' \25BE'; font-size: 0.7em; }
nav.main-nav .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  min-width: 230px;
  padding: 6px 0;
  list-style: none;
  z-index: 60;
}
nav.main-nav li.has-dropdown:hover .dropdown-menu,
nav.main-nav li.has-dropdown:focus-within .dropdown-menu { display: block; }
nav.main-nav .dropdown-menu li { display: block; }
nav.main-nav .dropdown-menu a { display: block; padding: 10px 18px; white-space: nowrap; font-weight: 400; }
nav.main-nav .dropdown-menu a::after { content: none; }
nav.main-nav .dropdown-menu a:hover { background: var(--paper-2); }

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: inherit;
}
.btn-primary { background: var(--saffron-deep); color: var(--white); }
.btn-primary:hover { background: var(--saffron); }
.btn-outline { background: transparent; border-color: var(--indigo); color: var(--indigo); }
.btn-outline:hover { background: var(--indigo); color: var(--white); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--indigo) 0%, var(--indigo-dark) 100%);
  color: var(--white);
  padding: 72px 0 88px;
}
.hero .container { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 48px; align-items: center; }
.hero h1 { color: var(--white); }
.hero .eyebrow {
  display: inline-block;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f3d9b1;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero p.lead { color: #d6e0eb; font-size: 1.08rem; max-width: 46ch; }
.hero .cta-row { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero .trust-row { margin-top: 30px; display: flex; gap: 22px; color: #b9c8d8; font-size: 0.85rem; }

/* Signature element: rotated rubber-stamp seal */
.seal {
  width: 220px; height: 220px;
  margin: 0 auto;
  border-radius: 50%;
  border: 3px double #f3d9b1;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(-8deg);
  position: relative;
  color: #f3d9b1;
  font-family: 'Fraunces', serif;
}
.seal::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(243,217,177,0.5);
  border-radius: 50%;
}
.seal-text {
  text-align: center;
}
.seal-text .big { display: block; font-size: 1.5rem; font-weight: 700; }
.seal-text .small { display: block; font-family: 'IBM Plex Mono', monospace; font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* ---------- Sections ---------- */
section { padding: 68px 0; }
.section-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
  display: block;
}

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card .num {
  font-family: 'IBM Plex Mono', monospace;
  color: var(--saffron-deep);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
}

/* Process steps — genuinely sequential, numbering is meaningful here */
.process { counter-reset: step; }
.process-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 20px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.process-step:last-child { border-bottom: none; }
.process-step .step-num {
  counter-increment: step;
  font-family: 'Fraunces', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--saffron-deep);
}
.process-step .step-num::before { content: counter(step, decimal-leading-zero); }

/* Pricing table */
table.pricing { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); }
table.pricing th, table.pricing td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
table.pricing th { background: var(--paper-2); font-family: 'IBM Plex Mono', monospace; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
table.pricing td.price { font-family: 'IBM Plex Mono', monospace; font-weight: 600; color: var(--indigo-dark); }

/* Forms */
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 6px; color: var(--indigo-dark); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
}

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; font-size: 0.92rem; }
.alert-success { background: #e7f3ec; color: var(--success); border: 1px solid #b8dcc7; }
.alert-error { background: #fbe9e7; color: #b3261e; border: 1px solid #f2c2bd; }

/* Footer */
footer.site-footer { background: var(--indigo-dark); color: #b9c8d8; padding: 48px 0 28px; margin-top: 40px; }
footer.site-footer a { color: #e7edf2; }
footer .container { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
footer .foot-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 30px; padding-top: 20px; font-size: 0.82rem; display: flex; justify-content: space-between; }

/* Blog */
.blog-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.blog-card img { width: 100%; height: 170px; object-fit: cover; display: block; }
.blog-card .body { padding: 20px; }
.blog-card .meta { font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; color: var(--teal); text-transform: uppercase; letter-spacing: 0.05em; }

/* Mobile */
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .seal { margin-top: 20px; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  footer .container { grid-template-columns: 1fr; }
  nav.main-nav { display: none; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* Visible keyboard focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
