/* Go 4 IT Private Limited — company site
   Plain CSS, no build step, no external fonts or requests.
   Palette: chai brown, saffron, cardamom green on warm paper. */

:root {
  color-scheme: light dark;

  --bg: #fbf5ea;
  --bg-alt: #f3e7d1;
  --surface: #fffaf1;
  --ink: #2a1a12;
  --muted: #6b5546;
  --line: #e3d3b8;
  --accent: #9a4508;          /* text-safe saffron: ≥4.5:1 on every light surface */
  --accent-fill: #e8932a;     /* decorative / button fill, ink text on top */
  --accent-soft: #f6dcb4;
  --green: #2c5b4b;
  --green-soft: #d7e7dd;
  --amber-soft: #f7e3b8;
  --shadow: 0 1px 0 rgba(42, 26, 18, 0.04), 0 14px 34px -18px rgba(42, 26, 18, 0.28);

  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 70rem;
  --radius: 1.25rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16100b;
    --bg-alt: #1e150e;
    --surface: #251a12;
    --ink: #f6ebd9;
    --muted: #c3ae97;
    --line: #3b2b1f;
    --accent: #f0a04b;
    --accent-fill: #f0a04b;
    --accent-soft: #3a2713;
    --green: #8fcdb3;
    --green-soft: #1d3329;
    --amber-soft: #3b2c12;
    --shadow: 0 1px 0 rgba(0, 0, 0, 0.3), 0 14px 34px -18px rgba(0, 0, 0, 0.7);
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: var(--accent); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.16em; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 0.35rem;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  border-radius: 0.6rem;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.icon {
  width: 1.5rem;
  height: 1.5rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand img { width: 2rem; height: 2rem; }
.brand-name span { color: var(--accent); }

.nav { display: flex; gap: clamp(0.9rem, 3vw, 2rem); }
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
  font-weight: 550;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--accent); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 8vw, 6.5rem) 0 clamp(3rem, 7vw, 5.5rem);
  background:
    radial-gradient(60rem 28rem at 85% -10%, color-mix(in srgb, var(--accent-fill) 22%, transparent), transparent 70%),
    var(--bg);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 1.25rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 1.8rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  font-weight: 700;
}
h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

.lede {
  max-width: 34rem;
  margin: 1.5rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--muted);
  text-wrap: pretty;
}

.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 2rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: var(--ink);
  color: var(--bg);
  font: inherit;
  font-size: 1rem;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--bg); }

.hero-art { justify-self: center; width: min(100%, 25rem); }
.hero-art svg { width: 100%; height: auto; overflow: visible; }

/* Illustration colours come from the theme so it works in light and dark. */
.art-sun { fill: var(--accent-soft); }
.art-ring { fill: none; stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 3 9; stroke-linecap: round; }
.art-glass { fill: color-mix(in srgb, var(--surface) 70%, transparent); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.art-chai { fill: var(--accent-fill); }
.art-froth { fill: color-mix(in srgb, var(--accent-fill) 55%, var(--surface)); }
.art-saucer { fill: var(--ink); }
.art-steam { fill: none; stroke: var(--muted); stroke-width: 5; stroke-linecap: round; opacity: 0.75; }
.art-tile { fill: var(--surface); stroke: var(--line); stroke-width: 2; }
.art-tile-icon { fill: none; stroke: var(--accent); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.art-tile-live { fill: var(--green); }

.steam { transform-box: fill-box; transform-origin: center; animation: steam 4.8s ease-in-out infinite; }
.steam:nth-of-type(2) { animation-delay: 1.4s; }
.steam:nth-of-type(3) { animation-delay: 2.8s; }
@keyframes steam {
  0%   { opacity: 0;    transform: translateY(14px) scaleY(0.9); }
  35%  { opacity: 0.8; }
  100% { opacity: 0;    transform: translateY(-18px) scaleY(1.05); }
}

.tile { animation: bob 7s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.tile.t2 { animation-delay: -3.5s; }
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* ---------- Sections ---------- */

section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
section.alt { background: var(--bg-alt); }

.section-head { max-width: 40rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; }
.section-head p:not(.kicker) { margin: 1rem 0 0; color: var(--muted); font-size: 1.12rem; text-wrap: pretty; }

.kicker {
  margin: 0 0 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: p;
}
.principles li { counter-increment: p; padding-top: 1.1rem; border-top: 2px solid var(--ink); }
.principles li::before {
  content: "0" counter(p);
  display: block;
  margin-bottom: 0.6rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--accent);
}
.principles h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.principles p { margin: 0; color: var(--muted); }

/* Products */

.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h3 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.card p { margin: 0; color: var(--muted); }
.card .card-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.card .badge {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.9rem;
  background: var(--accent-soft);
  color: var(--accent);
}
.card .badge .icon { width: 1.6rem; height: 1.6rem; }

.card.feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  border-color: color-mix(in srgb, var(--green) 45%, var(--line));
}
.card.feature .main { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.card.feature .main .card-top { width: 100%; }

.covers {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-content: start;
}
.covers li {
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  background: var(--bg);
  border: 1px solid var(--line);
  font-weight: 600;
  line-height: 1.35;
}
.covers li small { display: block; margin-top: 0.2rem; font-weight: 400; font-size: 0.9rem; color: var(--muted); }
.covers-title { margin: 0 0 0.8rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

.note { font-size: 0.95rem; }

.card.dashed { background: transparent; border-style: dashed; box-shadow: none; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
.pill.live { background: var(--green-soft); color: var(--green); }
.pill.dev { background: var(--amber-soft); color: var(--accent); }
.pill.planned { border: 1.5px dashed var(--muted); color: var(--muted); }
.pill.planned::before { background: transparent; border: 1.5px solid currentColor; width: 0.55rem; height: 0.55rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 650;
}
.link-arrow .icon { width: 1.1rem; height: 1.1rem; transition: transform 0.15s ease; }
.link-arrow:hover .icon { transform: translate(2px, -2px); }

/* Book feature card */
.card.book { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); align-items: start; border-color: var(--line); }
.card.book .cover {
  width: 100%;
  height: auto;
  border-radius: 0.5rem 0.9rem 0.9rem 0.5rem;
  box-shadow: -3px 0 0 rgba(0, 0, 0, 0.18) inset, 0 18px 36px -16px rgba(42, 26, 18, 0.55);
}
.card.book h3 small {
  display: block;
  margin-top: 0.35rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--muted);
}
.card.book .byline { color: var(--ink); font-weight: 600; }
.card.book .pull {
  margin: 0.25rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent-fill);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
}
.book-meta { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.4rem 1.25rem; margin: 0.5rem 0 0; font-size: 0.95rem; }
.book-meta dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding-top: 0.15rem; }
.book-meta dd { margin: 0; font-weight: 600; }

/* About */

.about { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); margin-bottom: 1.25rem; }
.about p { margin: 0 0 1rem; color: var(--muted); text-wrap: pretty; }
.about p.big { color: var(--ink); font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.55rem); line-height: 1.4; }

.facts { margin: 0; padding: 1.5rem 1.75rem; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--line); }
.facts div + div { margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line); }
.facts dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0.25rem 0 0; font-weight: 600; }

/* Contact */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) * 1.4);
  background: var(--ink);
  color: var(--bg);
}
.contact h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); }
.contact .intro p:not(.kicker) { margin: 1rem 0 0; color: color-mix(in srgb, var(--bg) 78%, transparent); text-wrap: pretty; }
.contact .kicker { color: var(--accent-fill); }

.contact-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 1.5rem; align-content: center; }
.contact-list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact-list .icon { margin-top: 0.2rem; color: var(--accent-fill); width: 1.6rem; height: 1.6rem; }
.contact-list h3 {
  margin: 0 0 0.2rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: color-mix(in srgb, var(--bg) 62%, transparent);
}
.contact-list address { font-style: normal; }
.contact-list a { color: var(--bg); font-weight: 600; text-decoration-color: var(--accent-fill); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent-fill); }
.contact-list :focus-visible, .contact :focus-visible { outline-color: var(--accent-fill); }

@media (prefers-color-scheme: dark) {
  .contact { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
  .contact .intro p:not(.kicker) { color: var(--muted); }
  .contact-list h3 { color: var(--muted); }
  .contact-list a { color: var(--ink); }
}

/* ---------- Footer ---------- */

.site-footer { padding: 2.5rem 0 3rem; border-top: 1px solid var(--line); font-size: 0.95rem; color: var(--muted); }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: start; }
.site-footer strong { color: var(--ink); }
.site-footer address { font-style: normal; margin-top: 0.3rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; }
.site-footer nav a { color: var(--muted); }
.site-footer nav a:hover { color: var(--accent); }
.site-footer .copy { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--line); margin: 0; font-size: 0.9rem; }

/* ---------- Legal / text pages ---------- */

.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 1rem; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.page-head .updated { margin: 0.8rem 0 0; color: var(--muted); font-size: 0.95rem; }

.prose { max-width: 42rem; padding-bottom: clamp(3rem, 7vw, 5rem); }
.prose > * + * { margin-top: 1.1rem; }
.prose p { margin-bottom: 0; text-wrap: pretty; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4rem; }
.prose ul { padding-left: 1.2rem; }
.prose li + li { margin-top: 0.4rem; }
.prose address { font-style: normal; }

/* 404 */
.lost { min-height: 55vh; display: grid; place-content: center; text-align: center; gap: 1rem; padding: 4rem 0; }
.lost h1 { font-size: clamp(2.5rem, 7vw, 4.5rem); }
.lost p { margin: 0; color: var(--muted); }
.lost .actions { justify-content: center; }

/* ---------- Responsive ---------- */

@media (max-width: 54rem) {
  .hero .wrap, .about, .contact, .card.feature { grid-template-columns: minmax(0, 1fr); }
  .card.book .cover { max-width: 13rem; }
  .hero-art { width: min(80%, 19rem); }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .products { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  .brand { font-size: 1.15rem; }
  .brand img { width: 1.75rem; height: 1.75rem; }
  .nav { gap: 0.85rem; }
  .nav a { font-size: 0.92rem; }
  .covers { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- Motion + print ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .steam { opacity: 0.6; }
}

@media print {
  .site-header, .skip, .hero-art, .actions { display: none; }
  body { background: #fff; color: #000; }
  a { color: #000; }
}
