/* Software Chefs: shared stylesheet */

:root {
  --cream: #FFF8EF;
  --ink: #2A1F1A;
  --orange: #FF7A1A;
  --orange-dark: #B8480A;
  --yellow: #FFD24A;
  --yellow-pale: #FFE7A3;
  --mint: #9EDCB8;
  --mint-pale: #E3F6EA;
  --sky-pale: #D7ECFF;
  --muted: #4E3F36;
  --muted-2: #6B5A50;
  --white: #FFFFFF;
  --error: #A3270F;

  --line: 2.5px solid var(--ink);
  --r-sm: 18px;
  --r-md: 24px;
  --r-lg: 32px;
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow: 5px 5px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);

  --font-head: "Fredoka", "Trebuchet MS", system-ui, sans-serif;
  --font-body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
}

/* Base */

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.35rem + 1.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--orange-dark);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
a:hover { color: var(--ink); }

:focus-visible {
  outline: 3px solid var(--orange-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

strong { font-weight: 700; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6em 1.1em;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip:focus { top: 12px; color: var(--cream); }

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

@media (min-width: 768px) {
  .wrap { padding: 0 32px; }
}

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

/* Header */

.site-header { padding: 14px 0; }

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
}

.brand { display: inline-block; border-radius: 10px; }
.brand img { height: 44px; width: auto; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5em;
  min-height: 44px;
  padding: 0.45em 1.1em;
  font: 700 1rem var(--font-body);
  color: var(--ink);
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  cursor: pointer;
}
.menu-toggle svg { width: 20px; height: 20px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav ul {
  display: flex;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav ul a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav ul a:hover,
.site-nav ul a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

@media (min-width: 768px) {
  .brand img { height: 48px; }
}

@media (max-width: 767px) {
  .js .menu-toggle { display: inline-flex; }
  .site-nav {
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 4px 0 8px;
  }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a {
    display: block;
    padding: 12px 4px;
    border-bottom: 2px dashed rgba(42, 31, 26, 0.2);
  }
}

/* Buttons and labels */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 48px;
  padding: 0.8em 1.5em;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); }

.btn-primary { background: var(--orange); box-shadow: var(--shadow-sm); }
.btn-primary:hover { box-shadow: 5px 5px 0 var(--ink); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }

.btn-dark { background: var(--ink); color: var(--cream); }
.btn-dark:hover { color: var(--cream); }

.btn-sm { min-height: 44px; padding: 0.55em 1.15em; font-size: 0.95rem; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 1.5em;
}

.pill {
  display: inline-block;
  margin: 0;
  padding: 0.3em 0.95em;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--yellow-pale);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 0.6em;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-dark);
}

.hl {
  background: var(--yellow);
  padding: 0 0.15em;
  border-radius: 12px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lead {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 62ch;
}

.cta-note {
  margin-top: 14px;
  font-size: 0.9375rem;
  color: var(--muted-2);
}

.text-link { font-weight: 700; }

/* Sections and layout */

.section { padding: 56px 0; }
.section-tight { padding-top: 24px; }

@media (min-width: 768px) {
  .section { padding: 88px 0; }
  .section-tight { padding-top: 32px; }
}

.band-white {
  background: var(--white);
  border-top: var(--line);
  border-bottom: var(--line);
}

.section-head { max-width: 760px; margin-bottom: 32px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }
.center { text-align: center; }

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

@media (min-width: 768px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

@media (min-width: 600px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: 28px; }
}

.split { display: grid; gap: 32px; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
}

/* Cards and colour panels */

.card {
  position: relative;
  padding: 24px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-md);
}
@media (min-width: 768px) {
  .card { padding: 28px; }
}

.card-shadow { box-shadow: var(--shadow); }

.bg-mint { background: var(--mint-pale); }
.bg-yellow { background: var(--yellow-pale); }
.bg-sky { background: var(--sky-pale); }
.bg-orange { background: var(--orange); }
.bg-cream { background: var(--cream); }
.bg-white { background: var(--white); }

.icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border: var(--line);
  border-radius: 16px;
}
.icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon.fill-yellow { background: var(--yellow); }
.icon.fill-mint { background: var(--mint); }
.icon.fill-orange { background: var(--orange); }
.icon.fill-sky { background: var(--sky-pale); }
.icon.fill-white { background: var(--white); }

.icon-xl { width: 120px; height: 120px; border-radius: 30px; box-shadow: var(--shadow); }
.icon-xl svg { width: 60px; height: 60px; stroke-width: 1.8; }

/* Home: hero */

.hero { padding: 24px 0 56px; }
@media (min-width: 768px) {
  .hero { padding: 48px 0 88px; }
}

.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.25fr 0.75fr; gap: 48px; }
}

.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 4.2vw, 4.25rem);
  margin: 0.45em 0 0.35em;
}

.hero-art {
  position: relative;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}
@media (min-width: 900px) {
  .hero-art { max-width: 420px; }
}

.hero-art .blob {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  background: var(--yellow-pale);
  border: var(--line);
  border-radius: 50%;
  box-shadow: var(--shadow-lg);
}
.hero-art .blob img { width: 62%; }

.hero-art::before,
.hero-art::after {
  content: "";
  position: absolute;
  border: var(--line);
  border-radius: 50%;
}
.hero-art::before { width: 13%; aspect-ratio: 1; top: 4%; right: -2%; background: var(--orange); }
.hero-art::after { width: 9%; aspect-ratio: 1; bottom: 14%; left: -3%; background: var(--mint); }

/* Home: who cards */

.who-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.who-card h3 { font-size: 1.45rem; margin-top: 14px; }
.who-card p { color: var(--muted); }
.who-card .punch { color: var(--ink); font-weight: 700; margin-top: 0.25em; }
.who-card .btn { margin-top: auto; }
.who-card .punch + .btn { margin-top: 18px; }

/* Home: problem and fix */

.problem-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr));
  gap: 16px;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}
.problem-list li { padding: 20px; font-weight: 700; }

.fix h2 { font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); }
.fix p { color: var(--muted); max-width: 80ch; }

/* The menu (service cards) */

.menu-groups { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .menu-groups { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.menu-group-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  margin-bottom: 16px;
}

.num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  font-family: var(--font-head);
  font-size: 1rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.num-1 { background: var(--mint); }
.num-2 { background: var(--yellow); }
.num-3 { background: var(--orange); }

.service-list { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }

.service-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 22px;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.service-card:hover { transform: translate(-2px, -2px); box-shadow: var(--shadow); }
.service-card:focus-within { box-shadow: var(--shadow); }
.service-card h3,
.service-card h4 { font-size: 1.2rem; margin: 0; }
.service-card p { margin: 0; color: var(--muted); }
.service-card.bg-orange p { color: var(--ink); }

.service-card .card-link {
  color: var(--ink);
  text-decoration: none;
}
.service-card .card-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r-md);
}
.service-card .card-link:focus-visible { outline: none; }
.service-card .card-link:focus-visible::after { outline: 3px solid var(--orange-dark); outline-offset: 4px; }

.service-card .more {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 700;
  color: var(--orange-dark);
}
.service-card.bg-orange .more { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.price-tag {
  align-self: flex-start;
  padding: 0.15em 0.75em;
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 999px;
}

/* At the pass points */

.point .icon { margin-bottom: 14px; }
.point h3 { font-size: 1.15rem; margin-bottom: 0.4em; }
.point p { color: var(--muted); font-size: 1rem; }

/* FAQ */

.faq { display: grid; gap: 14px; max-width: 840px; margin: 0 auto; }
.faq-left { margin: 0; }

.faq details {
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-sm);
}
.faq details[open] { box-shadow: var(--shadow-sm); }

.faq summary {
  position: relative;
  padding: 18px 60px 18px 22px;
  font-family: var(--font-head);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
  border-radius: var(--r-sm);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  font-family: var(--font-body);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--yellow-pale);
  border: 2px solid var(--ink);
  border-radius: 50%;
  transform: translateY(-50%);
}
.faq details[open] summary::after { content: "\2212"; }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }

/* CTA band */

.cta-band { padding: 24px 0 72px; }

.cta-card {
  padding: 40px 22px;
  text-align: center;
  background: var(--orange);
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .cta-card { padding: 56px 40px; }
}
.cta-card p { max-width: 56ch; margin: 0 auto 1.4em; }
.cta-card .small { margin: 16px auto 0; font-size: 0.9375rem; }

/* Inner page hero */

.page-hero { padding: 16px 0 24px; }
@media (min-width: 768px) {
  .page-hero { padding: 24px 0 40px; }
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted-2);
}
.breadcrumb li + li::before { content: "/"; margin-right: 6px; }
.breadcrumb a { color: var(--muted); }

.hero-panel {
  display: grid;
  gap: 28px;
  align-items: center;
  padding: 32px 22px;
  border: var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .hero-panel { grid-template-columns: 1fr auto; padding: 48px; gap: 40px; }
}
.hero-panel h1 { max-width: 22ch; }
.hero-panel .icon-xl { justify-self: start; }
@media (min-width: 768px) {
  .hero-panel .icon-xl { justify-self: end; width: 160px; height: 160px; border-radius: 40px; }
  .hero-panel .icon-xl svg { width: 80px; height: 80px; }
}

/* Service page parts */

.familiar,
.ticks {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .familiar.cols-2 { grid-template-columns: 1fr 1fr; gap: 16px 32px; }
}

.familiar li,
.ticks li { position: relative; padding-left: 38px; }

.familiar li::before,
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1em;
  width: 26px;
  height: 26px;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.familiar li::before {
  content: "!";
  display: grid;
  place-items: center;
  font-family: var(--font-head);
  font-size: 0.9rem;
  line-height: 1;
  background: var(--yellow);
}

.ticks li::before {
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232A1F1A' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}
@media (min-width: 900px) {
  .steps.cols-2 { grid-template-columns: 1fr 1fr; }
}
.steps li {
  position: relative;
  padding: 20px 20px 20px 74px;
  background: var(--white);
  border: var(--line);
  border-radius: var(--r-sm);
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  font-family: var(--font-head);
  font-size: 1.1rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.stack { display: grid; gap: 20px; }
.stack h2 { font-size: clamp(1.4rem, 1.25rem + 0.8vw, 1.8rem); }

.costs h2 { font-size: clamp(1.4rem, 1.25rem + 0.8vw, 1.8rem); }

/* How we work */

.principles {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: principle;
}
@media (min-width: 768px) {
  .principles { grid-template-columns: 1fr 1fr; gap: 24px; }
}
.principles li { counter-increment: principle; }
.principles h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.4rem;
}
.principles h2::before {
  content: counter(principle);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 38px;
  height: 38px;
  font-size: 1.05rem;
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 50%;
}
.principles p { color: var(--muted); }

.callout {
  display: inline-block;
  margin-top: 8px;
  padding: 0.55em 1.2em;
  font-family: var(--font-head);
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem);
  font-weight: 600;
  background: var(--yellow);
  border: var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
}

/* Contact and form */

.contact-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: 48px; }
}

.form-card { box-shadow: var(--shadow); }
.form-card h2 { font-size: 1.5rem; }

.contact-form .field { margin-bottom: 18px; }
.contact-form .field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) {
  .contact-form .field-row { grid-template-columns: 1fr 1fr; }
}
.contact-form label { display: block; margin-bottom: 6px; font-weight: 700; }
.contact-form .req { color: var(--orange-dark); }
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65em 0.9em;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  border: var(--line);
  border-radius: 14px;
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus-visible,
.contact-form select:focus-visible,
.contact-form textarea:focus-visible { outline: 3px solid var(--orange-dark); outline-offset: 2px; border-radius: 14px; }
.contact-form .btn { margin-top: 4px; }
.contact-form .btn:disabled { opacity: 0.7; cursor: progress; }
.form-note { font-size: 0.9rem; color: var(--muted-2); margin: 0 0 18px; }
.contact-form .btn + .form-note { margin: 16px 0 0; }
.form-error {
  margin: 0 0 16px;
  padding: 12px 16px;
  font-weight: 700;
  color: var(--error);
  background: #FFF0EC;
  border: 2px solid var(--error);
  border-radius: 14px;
}
.form-error a { color: var(--error); }
.form-success h2 { font-size: 1.6rem; }
.form-success:focus { outline: none; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Prose pages */

.prose { max-width: 740px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }

/* 404 */

.not-found { padding: 48px 0 88px; text-align: center; }
.not-found img { width: 180px; margin: 0 auto 24px; }
.not-found .btn-row { justify-content: center; }
.not-found .lead { margin-left: auto; margin-right: auto; }

/* Footer */

.site-footer {
  padding: 44px 0 28px;
  background: var(--yellow-pale);
  border-top: var(--line);
}

.footer-inner { display: grid; gap: 28px; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr; align-items: start; }
}

.footer-inner .brand img { height: 40px; }
.footer-tagline {
  margin: 14px 0 4px;
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 600;
}
.footer-blurb { margin: 0 0 6px; max-width: 46ch; color: var(--muted); }

.footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (min-width: 768px) {
  .footer-nav ul { justify-content: flex-end; }
}
.footer-nav a { color: var(--ink); font-weight: 700; }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.9rem;
  color: var(--muted);
  border-top: 2px dashed rgba(42, 31, 26, 0.25);
}
.footer-base p { margin: 0; }
.footer-base a { color: var(--muted); }
