/* Brewprint: site styles
   Palette and type follow the Brewprint brand brief v1.1 (coffee-strategy brewprint/brand-brief.md).
   The logo artwork (images/logo.png) is used as supplied and never recoloured. */

:root {
  --ink: #172B3A;
  --ink-soft: #2C4050;
  --muted: #4A5B68;
  --blue: #0052DE;
  --blue-dark: #003FAD;
  --paper: #F6F4EF;
  --paper-deep: #EDE9E0;
  --white: #FFFFFF;
  --copper: #A65F3D;
  --copper-text: #8A4B2E;
  --pale-blue: #E8EEF7;
  --line: #D9D4C8;
  --line-cool: #C9D5E6;

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(56px, 8vw, 104px);
  --shadow: 0 1px 2px rgba(23, 43, 58, 0.06), 0 8px 24px rgba(23, 43, 58, 0.06);
}

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

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }

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

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

a { color: var(--blue); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--blue-dark); text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 2px; }
.section-ink :focus-visible, .site-footer :focus-visible { outline-color: #FFFFFF; }

h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 0.5em; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.25rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 1.25rem + 1.3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.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-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--radius);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

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

.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper-text);
  margin-bottom: 16px;
}

.lead { font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem); color: var(--ink-soft); max-width: 40em; }

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

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  font-family: var(--font-sans); font-size: 1rem; font-weight: 600; line-height: 1.2;
  border-radius: var(--radius); border: 2px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--white); }
.btn-light { background: var(--white); color: var(--ink); }
.btn-light:hover { background: var(--pale-blue); color: var(--ink); }
.btn-ghost-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, 0.7); }
.btn-ghost-light:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-sm { min-height: 44px; padding: 10px 16px; font-size: 0.9375rem; }

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

.text-link {
  font-weight: 600; text-decoration: none; color: var(--blue);
  display: inline-flex; align-items: center; gap: 6px;
}
.text-link::after { content: "\2192"; transition: transform 0.15s ease; }
.text-link:hover { text-decoration: underline; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Header and navigation ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px); }
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }

.brand { display: inline-flex; flex-shrink: 0; border-radius: 2px; }
.brand img { height: 40px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.site-nav ul a {
  display: block; padding: 10px 12px; border-radius: var(--radius);
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.site-nav ul a:hover { background: var(--paper); color: var(--ink); }
.site-nav ul a[aria-current="page"] { color: var(--blue); box-shadow: inset 0 -2px 0 var(--blue); border-radius: 0; }

.nav-toggle {
  display: none;
  align-items: center; gap: 10px;
  min-height: 44px; padding: 8px 12px;
  background: transparent; border: 1px solid var(--line); border-radius: var(--radius);
  font: 600 0.9375rem/1 var(--font-sans); color: var(--ink); cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 1px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 879px) {
  .brand img { height: 34px; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 12px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .js .nav-open .site-nav { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 14px 4px; border-bottom: 1px solid var(--paper-deep); border-radius: 0; font-size: 1.0625rem; }
  .site-nav ul a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); padding-left: 14px; }
  .site-nav .btn { width: 100%; }
  /* Without JavaScript the menu stays visible and wraps under the logo. */
  html:not(.js) .header-inner { flex-wrap: wrap; padding-bottom: 12px; }
  html:not(.js) .site-nav { flex-wrap: wrap; gap: 12px; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .site-nav ul a { border-bottom: 0; }
}

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

main { display: block; }

.section { padding: var(--section) 0; }
.section-white { background: var(--white); }
.section-tint { background: var(--pale-blue); }
.section-ink { background: var(--ink); color: #E6ECF1; }
.section-ink h2, .section-ink h3 { color: var(--white); }
.section-ink .eyebrow { color: #E3B79E; }

.section-head { max-width: 46em; margin-bottom: clamp(32px, 4vw, 48px); }
.section-head p { color: var(--muted); font-size: 1.125rem; }
.section-foot { margin-top: 32px; }

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

.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 8vw, 104px); background: var(--paper); }
.hero-grid { display: grid; gap: clamp(40px, 5vw, 64px); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.1fr 0.9fr; } }
.hero h1 { max-width: 15em; }
.hero .lead { margin-bottom: 28px; }
.hero-note { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Decision sheet (worked example) ---------- */

.sheet {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line-cool);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px;
  background: var(--pale-blue);
  border-bottom: 1px solid var(--line-cool);
  font-family: var(--font-mono); font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--ink-soft);
}
.sheet-head strong { color: var(--ink); font-weight: 600; }
.sheet-title { margin: 0; padding: 18px 20px 4px; font-weight: 600; font-size: 1.0625rem; }
.sheet-row { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 16px 20px; border-top: 1px dashed var(--line); }
.sheet-title + .sheet-row { border-top: 0; }
.sheet-label {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--copper-text); padding-top: 3px;
}
.sheet-lines { margin: 0; display: grid; gap: 4px; }
.sheet-lines div { display: flex; justify-content: space-between; gap: 12px; font-size: 0.9375rem; }
.sheet-lines dt { color: var(--muted); }
.sheet-lines dd { margin: 0; font-family: var(--font-mono); font-feature-settings: "tnum" 1; white-space: nowrap; }
.sheet-lines .total { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 2px; font-weight: 600; }
.sheet-lines .total dt { color: var(--ink); }
.sheet-row .sheet-figure { font-family: var(--font-mono); font-size: 2rem; font-weight: 500; color: var(--blue); line-height: 1.1; margin: 0 0 6px; font-feature-settings: "tnum" 1; }
.sheet-figure span { font-family: var(--font-sans); font-size: 0.9375rem; color: var(--muted); font-weight: 400; }
.sheet-row p { font-size: 0.9375rem; margin: 0; }
.sheet-row p + p { margin-top: 4px; }
.sheet-caption { padding: 12px 20px 16px; font-size: 0.8125rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--paper); }

@media (max-width: 479px) {
  .sheet-row { grid-template-columns: 1fr; gap: 6px; }
  .sheet-head, .sheet-title, .sheet-row, .sheet-caption { padding-left: 16px; padding-right: 16px; }
}

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

.grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .grid-2, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.section-white .card { background: var(--paper); border-color: var(--paper-deep); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; }

.question-card { border-top: 3px solid var(--blue); }

/* ---------- Steps ---------- */

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
@media (min-width: 880px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 28px; } }
.steps li { position: relative; padding: 24px 0; border-top: 1px solid var(--line); }
@media (min-width: 880px) { .steps li { padding: 28px 0 0; border-top: 2px solid var(--ink); } }
.step-num { display: block; font-family: var(--font-mono); font-size: 0.875rem; color: var(--copper-text); margin-bottom: 10px; }
.steps h3 { font-size: 1.125rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 1rem; }

/* ---------- Split / founder ---------- */

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 880px) { .split { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }

.person {
  display: grid; gap: 4px;
  padding: 24px; border-left: 3px solid var(--copper);
  background: var(--white); border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.section-white .person { background: var(--paper); }
.person-name { font-size: 1.25rem; font-weight: 600; margin: 0; letter-spacing: 0; }
.person-role { margin: 0; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Testimonial ---------- */

.quote {
  margin: 0;
  display: grid; gap: 24px; align-items: start;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px);
}
@media (min-width: 720px) { .quote { grid-template-columns: 96px 1fr; gap: 32px; } }
.quote img { width: 96px; height: 96px; border-radius: 50%; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem); line-height: 1.6; color: var(--ink); }
.quote-cite { margin-top: 16px; font-weight: 600; }
.quote-cite span { display: block; font-weight: 400; color: var(--muted); font-size: 0.9375rem; }

/* ---------- Page header (inner pages) ---------- */

.page-header { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 5vw, 64px); background: var(--paper); border-bottom: 1px solid var(--line); }
.page-header h1 { max-width: 18em; }
.page-header .lead { margin-bottom: 0; }

/* ---------- Services ---------- */

.service-group + .service-group { margin-top: clamp(56px, 7vw, 88px); }
.service-list { display: grid; gap: 20px; }
@media (min-width: 860px) { .service-list { grid-template-columns: repeat(2, 1fr); } }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column;
}
.service h3 { margin-bottom: 10px; }
.service p { color: var(--ink-soft); font-size: 1rem; }
.service .when {
  margin-top: auto; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 0.9375rem; color: var(--muted);
}
.service > p:not(.when) { margin-bottom: 16px; }
.service .when strong {
  display: block; font-family: var(--font-mono); font-weight: 500; font-size: 0.75rem;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--copper-text); margin-bottom: 2px;
}

.note-panel {
  margin-top: 40px; padding: 24px 28px; border-radius: var(--radius-lg);
  background: var(--pale-blue); border: 1px solid var(--line-cool);
}
.note-panel h2 { font-size: 1.25rem; margin-bottom: 8px; }

/* ---------- Principles (about) ---------- */

.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
@media (min-width: 880px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principles li { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; }
.principles p { color: var(--muted); font-size: 1rem; }

.facts { display: grid; gap: 20px; }
@media (min-width: 880px) { .facts { grid-template-columns: repeat(2, 1fr); } }

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

.contact-grid { display: grid; gap: 40px; align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; } }

.contact-block + .contact-block { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line); }
.contact-block h2 { font-size: 1.375rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.contact-list li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; }
.contact-list span { color: var(--muted); }
.contact-list a { font-weight: 600; word-break: break-word; }

.form-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow);
}
.form-card h2 { font-size: 1.375rem; }
.form-intro { color: var(--muted); margin-bottom: 24px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .req, .field .opt { font-weight: 400; color: var(--muted); font-size: 0.875rem; }
.field .hint { display: block; font-size: 0.875rem; color: var(--muted); margin: -2px 0 8px; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px;
  font: 400 1rem/1.5 var(--font-sans); color: var(--ink);
  background: var(--white); border: 1px solid #7D8A95; border-radius: var(--radius);
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 3px solid var(--blue); outline-offset: 1px; border-color: var(--blue); }
.form-card .btn { width: 100%; }
@media (min-width: 560px) { .form-card .btn { width: auto; } }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA band ---------- */

.cta-band { padding: clamp(56px, 7vw, 88px) 0; }
.cta-band .container { display: grid; gap: 28px; align-items: center; }
@media (min-width: 880px) { .cta-band .container { grid-template-columns: 1.3fr auto; gap: 48px; } }
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { margin: 0; max-width: 38em; }

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

.site-footer { background: #0F1F2B; color: #C3CED7; padding: 56px 0 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand { margin: 0 0 6px; color: var(--white); font-weight: 600; font-size: 1.125rem; }
.site-footer h2 {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: #9FB0BE; margin-bottom: 12px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: var(--white); }
.footer-base { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: #9FB0BE; font-size: 0.875rem; }

/* ---------- Motion ---------- */

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

/* Anchor target for "Book a discovery call" links; clears the sticky header */
#contact-form { scroll-margin-top: 6rem; }
