/* Code Rockit Limited — shared stylesheet
   Brand tokens locked in from the approved design brief:
   bg #F5F1EA · text #1B1B18 · accent #C1572B
   headings + body: IBM Plex Sans — one family, matching the wordmark
*/

:root {
  --bg: #F5F1EA;
  --bg-alt: #EFE9DD;
  --text: #1B1B18;
  --text-soft: rgba(27, 27, 24, 0.65);
  --text-faint: rgba(27, 27, 24, 0.45);
  --accent: #C1572B;
  --accent-ink: #F5F1EA;
  --line: rgba(27, 27, 24, 0.12);
  --line-dark: rgba(245, 241, 234, 0.14);
  --dark: #1B1B18;
  --dark-soft: rgba(245, 241, 234, 0.65);
  --dark-faint: rgba(245, 241, 234, 0.45);
  --radius: 4px;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .serif {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  font-style: normal;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
::selection { background: var(--text); color: var(--bg); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 900px) {
  .wrap { padding-left: 40px; padding-right: 40px; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-dark { background: var(--text); color: var(--bg); }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost-dark { background: transparent; color: var(--bg); border-color: var(--line-dark); }

.link-underline {
  font-size: 15px;
  font-weight: 500;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 2px;
  display: inline-block;
  width: fit-content;
}

/* ---------- Nav ---------- */

.site-nav {
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  display: flex;
  align-items: center;
}

.brand img {
  height: 42px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 36px;
}

.nav-links a:not(.btn) {
  font-size: 15px;
  color: var(--text);
  opacity: 0.72;
  transition: opacity 0.15s ease;
}
.nav-links a:not(.btn):hover { opacity: 1; }
.nav-links a.current { opacity: 1; border-bottom: 1px solid var(--accent); padding-bottom: 3px; }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 1.5px;
  background: var(--text);
  display: block;
}

.nav-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 24px 28px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  padding: 12px 0;
  font-size: 16px;
  border-bottom: 1px solid var(--line);
}
.nav-drawer a:last-child { border-bottom: none; }

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
  .nav-drawer { display: none !important; }
}

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

.hero {
  padding: 88px 0 96px;
}
.hero .eyebrow {
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 38px;
  line-height: 1.08;
  max-width: 760px;
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-soft);
  max-width: 560px;
  margin-top: 26px;
}
.hero .actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  flex-wrap: wrap;
}

@media (min-width: 720px) {
  .hero { padding: 130px 0 120px; }
  .hero h1 { font-size: 58px; }
}
@media (min-width: 1080px) {
  .hero h1 { font-size: 66px; }
}

/* ---------- Section basics ---------- */

section { width: 100%; }

.section-pad { padding: 88px 0; }
@media (min-width: 900px) { .section-pad { padding: 110px 0; } }

.section-dark { background: var(--dark); color: var(--bg); }
.section-alt { background: var(--bg-alt); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 48px;
}
.section-head h2 { font-size: 32px; max-width: 520px; }
.section-head p { font-size: 16px; color: var(--text-soft); max-width: 420px; line-height: 1.65; }
.section-dark .section-head p { color: var(--dark-soft); }

@media (min-width: 860px) {
  .section-head {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
  }
  .section-head h2 { font-size: 40px; }
}

.eyebrow-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-faint);
}
.section-dark .eyebrow-label { color: var(--dark-faint); }

/* ---------- Cards / grids ---------- */

.grid { display: grid; gap: 1px; }

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
}
@media (min-width: 640px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 860px) {
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.card {
  background: var(--dark);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.card .icon { color: var(--accent); }
.card .title { font-size: 19px; font-weight: 500; }
.card p { margin: 0; font-size: 15px; line-height: 1.65; color: var(--dark-soft); }

.card-light {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: 32px 28px;
}
.card-light p { color: var(--text-soft); }

/* CTA banner strip */
.cta-strip {
  border: 1px solid var(--line-dark);
  background: var(--accent);
  color: var(--accent-ink);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 1px;
}
.cta-strip .title { font-size: 19px; font-weight: 500; }
.cta-strip p { margin: 0; font-size: 15px; opacity: 0.85; max-width: 520px; }
.cta-strip a { border-bottom-color: var(--dark); color: var(--dark); font-weight: 600; }

@media (min-width: 720px) {
  .cta-strip { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* Numbered steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
}
@media (min-width: 720px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
}
.step .num { font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 26px; color: var(--accent); letter-spacing: -0.01em; }
.step .title { font-size: 18px; font-weight: 500; margin-top: 10px; }
.step p { font-size: 15px; color: var(--text-soft); margin-top: 8px; line-height: 1.65; }

/* ---------- Service detail rows (services page) ---------- */

.service-row {
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.service-row:last-child { border-bottom: none; }
@media (min-width: 860px) {
  .service-row { grid-template-columns: 300px 1fr; gap: 60px; padding: 68px 0; }
}
.service-row .tag {
  font-size: 13px;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.service-row h3 { font-size: 28px; margin-bottom: 6px; }
.service-row .lead { font-size: 16px; color: var(--text-soft); margin-top: 14px; max-width: 480px; line-height: 1.65; }
.service-row ul {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.service-row li {
  font-size: 15px;
  color: var(--text-soft);
  padding-left: 20px;
  position: relative;
}
.service-row li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Pricing ---------- */

.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 860px) {
  .price-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.price-card {
  border: 1px solid var(--line);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.price-card.featured { border-color: var(--text); background: var(--text); color: var(--bg); }
.price-card .plan { font-size: 13px; letter-spacing: 0.04em; color: var(--text-faint); }
.price-card.featured .plan { color: var(--dark-faint); }
.price-card .amount { font-family: 'IBM Plex Sans', sans-serif; font-weight: 600; font-size: 28px; margin-top: 4px; letter-spacing: -0.02em; }
.price-card .desc { font-size: 14px; color: var(--text-soft); line-height: 1.6; }
.price-card.featured .desc { color: var(--dark-soft); }
.price-card ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; }
.price-card li { font-size: 14px; padding-left: 18px; position: relative; }
.price-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}

/* ---------- Work / case studies ---------- */

.work-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (min-width: 720px) {
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.work-card {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 260px;
}
.work-card .kind { font-size: 13px; color: var(--accent); letter-spacing: 0.02em; }
.work-card h3 { font-size: 24px; }
.work-card p { font-size: 15px; color: var(--text-soft); line-height: 1.6; }
.work-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 14px; }
.work-card .tags span {
  font-size: 12px;
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--text-soft);
}

/* ---------- Forms ---------- */

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 560px;
}
@media (min-width: 640px) {
  .form-row-2 { grid-template-columns: 1fr 1fr; display: grid; gap: 20px; }
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--text-soft);
}
input, select, textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
textarea { resize: vertical; min-height: 130px; }

.form-note { font-size: 13px; color: var(--text-faint); margin-top: -6px; }

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0;
}
.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
@media (min-width: 720px) {
  .site-footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}
.site-footer .legal { font-size: 13px; color: var(--text-faint); line-height: 1.7; }
.site-footer .fnav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer .fnav a { font-size: 14px; color: var(--text-soft); }
.site-footer .fnav a:hover { color: var(--text); }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.max-prose { max-width: 640px; }

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