/* Tarak Solutions homepage.
   Same colour family and fonts as AgentGuard, so every project feels like one studio. */

/* ---------- Fonts (bundled; no font CDN) ---------- */
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F, U+20A0-20C0; /* includes the rupee sign */
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Sans";
  src: url("/assets/fonts/instrument-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-ext-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
  unicode-range: U+0100-024F, U+20A0-20C0;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("/assets/fonts/source-serif-4-latin-ext-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
  unicode-range: U+0100-024F, U+20A0-20C0;
}

/* ---------- Tokens ---------- */
:root {
  --paper: #f5f6f4;
  --sheet: #ffffff;
  --ink: #1a2422;
  --ink-soft: #4b5754;
  --ink-faint: #76817e;
  --line: #dde3e1;
  --brand: #0f4c5c;
  --brand-dark: #0a3742;
  --brand-tint: #e3eef0;
  --saffron: #b26a00;
  --saffron-tint: #fdf1dc;
  --done: #1f7a4d;
  --refused: #b42318;

  --sans: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --radius: 10px;
  --container: 1120px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
}
p {
  margin: 0;
}
a {
  color: var(--brand);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--brand);
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 8px;
  font: 600 16px/1.2 var(--sans);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color 0.15s, border-color 0.15s;
}
.button-primary {
  background: var(--brand);
  color: #fff;
}
.button-primary:hover {
  background: var(--brand-dark);
}
.button-primary:disabled {
  background: #6f9aa4;
  cursor: wait;
}
.button-secondary {
  background: var(--sheet);
  color: var(--ink);
  border-color: var(--line);
}
.button-secondary:hover {
  border-color: var(--ink-faint);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 246, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}
.brand-mark {
  width: 28px;
  height: 28px;
  color: var(--brand);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav .nav-cta {
  color: var(--brand);
  font-weight: 600;
}
.menu-button {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  border-radius: 6px;
  cursor: pointer;
}
.menu-button svg {
  width: 24px;
  height: 24px;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 17ch;
}
.lead {
  margin-top: 22px;
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 54ch;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  margin-top: 22px;
  font-size: 15px;
  color: var(--ink-faint);
}

/* The proof: an AgentGuard approval slip, rebuilt in HTML so it stays sharp. */
.proof {
  margin: 0;
}
.slip {
  position: relative;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px 26px 30px;
  box-shadow: 0 24px 48px -28px rgba(15, 76, 92, 0.35);
  overflow: hidden;
}
.slip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--saffron);
}
.slip-meta {
  font-size: 14px;
  color: var(--ink-soft);
}
.slip-meta strong {
  color: var(--ink);
}
.slip-title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(20px, 2.1vw, 24px);
  line-height: 1.3;
}
.slip-reason {
  margin-top: 12px;
  padding-left: 12px;
  border-left: 2px solid var(--line);
  color: var(--ink-soft);
  font-size: 15px;
}
.slip-why {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--saffron-tint);
  font-size: 14px;
}
.slip-why p:first-child {
  color: var(--saffron);
  font-weight: 600;
}
.slip-buttons {
  display: flex;
  gap: 8px;
  margin-top: 18px;
}
.slip-approve,
.slip-reject {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
}
.slip-approve {
  background: var(--brand);
  color: #fff;
}
.slip-reject {
  border: 1px solid var(--line);
}
.proof figcaption {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-soft);
}
.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--done);
  vertical-align: 1px;
}

/* ---------- Sections ---------- */
.section {
  padding: clamp(56px, 8vw, 96px) 0;
}
.section-alt {
  background: var(--sheet);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}
.section-head h2,
.founder h2,
.contact h2 {
  font-size: clamp(28px, 3vw, 34px);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 18px;
}

/* ---------- Work ---------- */
.project-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 3vw, 40px);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.project-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.project-feature h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 30px;
}
.status {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.status-live {
  background: #e4f2ea;
  color: var(--done);
}
.status-planned {
  background: #eceff0;
  color: var(--ink-soft);
}
.project-summary {
  margin-top: 14px;
  font-size: 18px;
}
.project-points {
  margin: 18px 0 0;
  padding-left: 20px;
  color: var(--ink-soft);
}
.project-points li + li {
  margin-top: 6px;
}
.project-stack {
  margin-top: 18px;
  font-size: 15px;
  color: var(--ink-faint);
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.project-shot {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.project-list {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.project-card {
  padding: 24px 26px;
  border: 1px dashed var(--line);
  border-radius: 14px;
}
.project-card h3 {
  font-size: 20px;
  font-weight: 600;
}
.project-card p {
  margin-top: 8px;
  color: var(--ink-soft);
}

/* ---------- Services ---------- */
.service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 56px;
}
.service-list li {
  border-top: 2px solid var(--brand);
  padding-top: 18px;
}
.service-list h3,
.steps h3 {
  font-size: 20px;
  font-weight: 600;
}
.service-list p,
.steps p {
  margin-top: 8px;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* ---------- Founder ---------- */
.founder {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.founder-name {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--brand);
}
.founder-text p + p {
  margin-top: 16px;
}
.founder-text p:not(.founder-name) {
  max-width: 60ch;
}
.founder-name + p {
  margin-top: 18px;
}
.founder-links {
  display: flex;
  gap: 20px;
  margin-top: 22px;
  font-weight: 600;
}
.facts {
  margin: 0;
  padding: 8px 24px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.facts div {
  padding: 14px 0;
}
.facts div + div {
  border-top: 1px solid var(--line);
}
.facts dt {
  font-size: 14px;
  color: var(--ink-faint);
}
.facts dd {
  margin: 2px 0 0;
}

/* ---------- Process ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font-weight: 600;
}

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
.contact-text > p {
  margin-top: 10px;
  color: var(--ink-soft);
  font-size: 18px;
}
.contact-direct {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}
.contact-direct li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.contact-direct span {
  display: block;
  font-size: 14px;
  color: var(--ink-faint);
}
.contact-direct a {
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact-direct a:hover {
  text-decoration: underline;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(22px, 3vw, 32px);
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}
.field input,
.field textarea {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--sheet);
  color: var(--ink);
  font: 16px/1.5 var(--sans); /* 16px stops iPhones zooming into the field */
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(15, 76, 92, 0.18);
}
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--refused);
}
.trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-form .button {
  align-self: flex-start;
}
.form-status {
  font-size: 15px;
  min-height: 1.6em;
}
.form-status.is-success {
  color: var(--done);
}
.form-status.is-error {
  color: var(--refused);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 15px;
  color: var(--ink-faint);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-row nav {
  display: flex;
  gap: 20px;
}
.footer-row a {
  color: var(--ink-soft);
  text-decoration: none;
}
.footer-row a:hover {
  color: var(--ink);
}

/* ---------- Smaller screens ---------- */
@media (max-width: 900px) {
  .hero-grid,
  .project-feature,
  .founder,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}
@media (max-width: 720px) {
  body {
    font-size: 16px;
  }
  .menu-button {
    display: inline-flex;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav a {
    padding: 12px 0;
    font-size: 17px;
  }
  .project-list,
  .service-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .lead,
  .section-head p,
  .project-summary {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
