/* ===========================================================
   Amar Consultancy — design tokens
   =========================================================== */
:root {
  --ink: #16233A;
  --ink-soft: #3B4A63;
  --paper: #F2EEE3;
  --paper-raised: #FBF9F3;
  --line: #D9D2BF;
  --gold: #B9862B;
  --gold-deep: #92671D;
  --terracotta: #8C5A3C;
  --sage: #5B7B5E;
  --white: #FFFFFF;

  --font-head: "Source Serif 4", "Georgia", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;

  --radius: 3px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 500; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.eyebrow {
  font-family: var(--font-body);
  font-size: .78rem;
  letter-spacing: .04em;
  color: var(--gold-deep);
  font-weight: 600;
  margin: 0 0 .6em;
}
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper-raised); }
.btn-primary:hover { background: var(--gold-deep); border-color: var(--gold-deep); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper-raised); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242,238,227,0.92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 38px; height: 38px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: var(--ink);
  flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-head);
  font-size: 1.15rem;
  color: var(--ink);
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-size: .68rem;
  color: var(--gold-deep);
  font-weight: 600;
  letter-spacing: .03em;
  margin-top: 2px;
}
nav.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.main-nav a {
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
}
nav.main-nav a:hover { color: var(--ink); border-color: var(--gold); }
.nav-cta { display: none; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 72px 0 56px;
  background-image:
    linear-gradient(rgba(242,238,227,.94), rgba(242,238,227,.98)),
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(22,35,58,0.06) 38px, rgba(22,35,58,0.06) 39px),
    repeating-linear-gradient(90deg, transparent, transparent 38px, rgba(22,35,58,0.06) 38px, rgba(22,35,58,0.06) 39px);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
.hero h1 { max-width: 14ch; }
.hero .sub {
  font-size: 1.05rem;
  max-width: 46ch;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.stat-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.stat-strip div {
  padding: 18px 4px 0;
  border-right: 1px solid var(--line);
}
.stat-strip div:last-child { border-right: none; }
.stat-strip .num {
  font-family: var(--font-head);
  font-size: 1.6rem;
  color: var(--gold-deep);
  display: block;
}
.stat-strip .lbl {
  font-size: .78rem;
  color: var(--ink-soft);
}

/* ---------- services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 28px;
}
.service-card {
  background: var(--paper-raised);
  padding: 28px 24px;
}
.service-icon {
  width: 40px; height: 40px;
  margin-bottom: 14px;
  color: var(--gold-deep);
}
.service-card h3 { margin-bottom: .35em; }
.service-card p { font-size: .93rem; margin-bottom: 0; }

/* ---------- gov services ---------- */
.gov-section { background: var(--ink); color: var(--paper); }
.gov-section .eyebrow { color: var(--gold); }
.gov-section h2, .gov-section p { color: var(--paper); }
.gov-section p { color: #C7CEDB; }
.gov-list { margin-top: 24px; border-top: 1px solid rgba(255,255,255,.18); }
.gov-item {
  display: flex;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid rgba(255,255,255,.18);
  align-items: flex-start;
}
.gov-item .mark {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold);
  font-size: .8rem;
}
.gov-item h3 { color: var(--paper); margin-bottom: .25em; font-size: 1.05rem; }
.gov-item p { color: #C7CEDB; font-size: .92rem; margin: 0; }

/* ---------- about ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.about-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: var(--radius);
}
.about-card .role { color: var(--gold-deep); font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
.about-card .who { font-family: var(--font-head); font-size: 1.3rem; margin-bottom: 2px; }

/* ---------- contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 24px;
}
.contact-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.contact-card .lbl {
  font-size: .75rem;
  text-transform: none;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 6px;
}
.contact-card .val { font-size: 1.05rem; font-weight: 500; }
.contact-card a.val { text-decoration: none; }
.contact-card a.val:hover { color: var(--gold-deep); }

/* ---------- footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: .85rem;
  color: var(--ink-soft);
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ---------- responsive ---------- */
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.3fr .9fr; }
  .about-grid { grid-template-columns: 1.1fr .9fr; }
}
@media (min-width: 980px) {
  .services-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-cta { display: inline-flex; }
}
@media (max-width: 900px) {
  nav.main-nav {
    position: fixed;
    inset: 72px 0 0 0;
    background: var(--paper-raised);
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 4px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .18s ease, opacity .18s ease;
  }
  nav.main-nav a { width: 100%; padding: 12px 0; border-bottom: 1px solid var(--line); }
  nav.main-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
