/* ==========================================================================
   GOWIN Software Solutions — stylesheet
   Palette: deep ink ground, cream paper, warm amber accent.
   No frameworks, no build step. Edit values in :root to reskin the site.
   ========================================================================== */

:root {
  /* Brand */
  --ink:        #0F1A24;
  --ink-2:      #16232E;
  --ink-3:      #24333F;
  --amber:      #E0912F;
  --amber-deep: #8F5210;  /* AA-safe amber for small text on light grounds */
  --amber-soft: #F6E3C6;
  --teal:       #026363;  /* the logo's own green, sampled from the letterhead */
  --teal-deep:  #014A4A;
  --cream:      #FAF7F2;
  --cream-2:    #F2EDE4;

  /* Text */
  --text:       #16232E;
  --muted:      #5B6B78;
  --on-ink:     #FAF7F2;
  --on-ink-dim: #A9B6C1;

  /* Lines */
  --line:       rgba(15, 26, 36, .12);
  --line-soft:  rgba(15, 26, 36, .07);
  --line-ink:   rgba(250, 247, 242, .15);

  /* Type */
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Rhythm */
  --wrap:    1240px;
  --gutter:  clamp(20px, 5vw, 40px);
  --section: clamp(76px, 9.5vw, 136px);
  --radius:  14px;
}

/* --- Reset ---------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 { margin: 0; font-weight: 400; letter-spacing: -.015em; line-height: 1.12; }
p  { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2.5px solid var(--amber-deep);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection { background: var(--amber-soft); color: var(--ink); }

/* --- Layout primitives ---------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 7vw, 92px); }

.section--ink {
  background: var(--ink);
  color: var(--on-ink);
}
.section--ink .eyebrow { color: var(--amber); }
.section--ink .lede,
.section--ink .muted { color: var(--on-ink-dim); }

.section--paper { background: var(--cream-2); }

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--ink);
  color: var(--on-ink);
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 100;
  font-size: 15px;
}
.skip:focus { left: 16px; }

/* --- Type ----------------------------------------------------------------- */

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--amber-deep);
  margin-bottom: 22px;
  display: block;
}

.h-display {
  font-family: var(--serif);
  font-size: clamp(2.9rem, 8.2vw, 6rem);
  line-height: 1.02;
  letter-spacing: -.022em;
}

.h-section {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.6vw, 3.15rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  max-width: 20ch;
}

.h-card {
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.35;
}

.lede {
  font-size: clamp(1.06rem, 1.7vw, 1.26rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 60ch;
}

.muted { color: var(--muted); }
.small { font-size: .93rem; line-height: 1.6; }

.section-head { margin-bottom: clamp(44px, 5.5vw, 68px); }
.section-head .lede { margin-top: 22px; }

/* --- Buttons -------------------------------------------------------------- */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--cream);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 27px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .arw { transition: transform .18s ease; }
.btn:hover .arw { transform: translateX(3px); }

.btn--amber { --btn-bg: var(--amber); --btn-fg: var(--ink); font-weight: 700; }
.btn--amber:hover { --btn-bg: #EFA245; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--text);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

.section--ink .btn--ghost { --btn-fg: var(--on-ink); border-color: var(--line-ink); }
.section--ink .btn--ghost:hover { border-color: var(--on-ink); }

.btn--sm { padding: 11px 20px; font-size: 14.5px; }

/* Inline text link with an amber underline that fills on hover */
.link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(var(--amber), var(--amber));
  background-size: 100% 1.5px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  padding-bottom: 2px;
  transition: background-size .2s ease;
}
.link:hover { background-size: 100% 100%; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 242, .82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background-color .25s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line-soft); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
/* The logo is the letterhead badge, so height alone sets it and width must
   follow — constraining both squashes the wordmark. The band line stops
   reading below about 44px, which is the floor for every size here. */
.brand picture { display: flex; }
.brand img { height: 50px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  transition: color .16s ease;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }

.nav-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  color: var(--ink);
}

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

.hero {
  position: relative;
  padding-top: clamp(64px, 9vw, 116px);
  padding-bottom: clamp(76px, 9vw, 124px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -320px; right: -180px;
  width: 760px; height: 760px;
  background: radial-gradient(circle, rgba(224,145,47,.16) 0%, rgba(224,145,47,0) 66%);
  pointer-events: none;
}
.hero > .wrap { position: relative; }

.hero h1 { max-width: 24ch; }   /* spans the full container at every width */

.hero-rule {
  width: 66px; height: 4px;
  background: var(--amber);
  border-radius: 2px;
  margin: 34px 0 30px;
}

.hero .lede { max-width: 58ch; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}

/* --- Grids and cards ------------------------------------------------------ */

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

.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px 32px;
  transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.card:hover {
  border-color: rgba(15,26,36,.26);
  transform: translateY(-3px);
  box-shadow: 0 14px 34px -22px rgba(15,26,36,.42);
}
.card p { margin-top: 12px; color: var(--muted); font-size: 15.6px; line-height: 1.62; }

.card-num {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--amber-deep);
  display: block;
  margin-bottom: 14px;
}

.card-icon {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  margin-bottom: 20px;
}
.card-icon svg { width: 20px; height: 20px; }

/* Service list: hairline rows, no boxes — quieter than cards */
.rows { border-top: 1px solid var(--line); }
.row {
  display: grid;
  grid-template-columns: 4rem 1fr 1.15fr;
  gap: 20px 34px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.row-idx {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--amber-deep);
  padding-top: 2px;
}
.row h3 { font-size: 1.32rem; font-weight: 600; letter-spacing: -.012em; }
.row p { color: var(--muted); font-size: 15.8px; }

/* Process steps on the ink section */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line-ink);
}
.step:last-child { border-bottom: 1px solid var(--line-ink); }
.step-n {
  font-family: var(--serif);
  font-size: 1.7rem;
  color: var(--amber);
  line-height: 1;
  padding-top: 4px;
}
.step h3 { font-size: 1.3rem; font-weight: 600; color: var(--on-ink); }
.step p { margin-top: 10px; color: var(--on-ink-dim); font-size: 16px; max-width: 62ch; }

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 44px;
}
.pill {
  padding: 9px 17px;
  border: 1px solid var(--line-ink);
  border-radius: 999px;
  font-size: 14px;
  color: var(--on-ink-dim);
}

/* --- Case study ----------------------------------------------------------- */

.case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}
.case-tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--amber-soft);
  color: var(--amber-deep);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.case h2 { font-family: var(--serif); font-size: clamp(1.9rem, 3.5vw, 2.6rem); line-height: 1.12; }
.case-body > p { margin-top: 20px; color: var(--muted); font-size: 16.4px; max-width: 56ch; }

.checks { margin-top: 6px; display: grid; gap: 16px; }
.checks li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 14px;
  font-size: 15.8px;
  line-height: 1.58;
  color: var(--text);
}
.checks svg { width: 18px; height: 18px; color: var(--amber-deep); margin-top: 4px; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.stat-n {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  line-height: 1;
  color: var(--ink);
}
.stat-l {
  margin-top: 10px;
  font-size: 13.4px;
  line-height: 1.45;
  color: var(--muted);
}

/* --- Capability columns --------------------------------------------------- */

.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 44px; }
.col h3 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-deep);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.col ul { margin-top: 16px; display: grid; gap: 9px; }
.col li { font-size: 15.4px; color: var(--muted); }

/* --- Engagement models ---------------------------------------------------- */

.plan { display: flex; flex-direction: column; height: 100%; }
.plan-kicker {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber-deep);
}
.plan h3 { margin-top: 14px; font-family: var(--serif); font-size: 1.85rem; }
.plan-meta {
  margin-top: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -.005em;
}
.plan p { flex: 1; }

/* --- About ---------------------------------------------------------------- */

.about { display: grid; grid-template-columns: 1fr 1.35fr; gap: clamp(36px, 6vw, 84px); align-items: start; }
.about-body p { margin-top: 22px; font-size: 16.6px; line-height: 1.72; color: var(--on-ink-dim); max-width: 60ch; }
.about-body p:first-child { margin-top: 0; }
.about-body strong { color: var(--on-ink); font-weight: 600; }

.about-card {
  border: 1px solid var(--line-ink);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.about-card dl { margin: 0; display: grid; gap: 20px; }
.about-card dt {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--amber);
}
.about-card dd { margin: 6px 0 0; font-size: 15.4px; color: var(--on-ink); }

/* --- Contact -------------------------------------------------------------- */

.contact { text-align: center; }
.contact h2 { margin-inline: auto; }
.contact .lede { margin: 24px auto 0; }

.contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 40px;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  text-decoration: none;
  color: var(--ink);
  border-bottom: 2px solid var(--amber);
  padding-bottom: 6px;
  transition: color .18s ease;
  word-break: break-word;
}
.contact-mail:hover { color: var(--amber-deep); }

.contact-hints {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 16px;
  margin-top: 40px;
}
.hint {
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--muted);
  background: var(--cream);
}

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

.site-footer {
  background: var(--ink);
  color: var(--on-ink-dim);
  padding-block: 60px 44px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-ink);
}
.site-footer .brand img { height: 56px; }
.footer-tag { margin-top: 16px; font-size: 15px; max-width: 40ch; }
.footer-nav { display: grid; gap: 11px; }
.footer-nav a { font-size: 14.6px; text-decoration: none; color: var(--on-ink-dim); transition: color .16s ease; }
.footer-nav a:hover { color: var(--on-ink); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  justify-content: space-between;
  padding-top: 26px;
  font-size: 13.6px;
}

/* --- 404 ------------------------------------------------------------------ */

.center-page {
  min-height: 74vh;
  display: grid;
  place-items: center;
  text-align: center;
}
.center-page .lede { margin: 22px auto 34px; }

/* --- Scroll reveal -------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .62s cubic-bezier(.22,.61,.36,1), transform .62s cubic-bezier(.22,.61,.36,1);
}
.reveal.is-in { opacity: 1; transform: none; }

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

@media (max-width: 980px) {
  .grid--3, .cols { grid-template-columns: repeat(2, 1fr); }
  .case, .about { grid-template-columns: 1fr; }
  .row { grid-template-columns: 3rem 1fr; }
  .row p { grid-column: 2; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
}

@media (max-width: 760px) {
  body { font-size: 16.5px; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--cream);
    border-block: 1px solid var(--line-soft);
    padding: 8px var(--gutter) 18px;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 13px 0; font-size: 16.5px; border-bottom: 1px solid var(--line-soft); }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
  .nav-cta { display: none; }
  /* The header stays sticky here too. It used to be set back to `relative` on
     small screens, which is exactly where a persistent way back to the top
     matters most — the pages are long and there is no other navigation once
     the bar has scrolled away. The dropdown below hangs off this element, and
     `sticky` positions it just as `relative` did. */
  .brand img { height: 44px; }

  .grid--3, .grid--2, .cols { grid-template-columns: 1fr; }
  .hero h1 { max-width: none; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step-n { font-size: 1.35rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .card { padding: 28px 24px; }
  .footer-top { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .nav-toggle, .hero::before { display: none; }
  body { background: #fff; color: #000; }
  .section--ink { background: #fff; color: #000; }
}
