/*
 * Linear Consulting Limited — site stylesheet
 * Plain HTML/CSS, no framework. Custom properties give hex fallbacks first,
 * then an oklch() override on the line after (browsers that don't parse
 * oklch() ignore that declaration and keep the hex value).
 */

:root {
  --bg: #faf9f6;
  --bg: oklch(0.98 0.006 95);
  --bg-dot: #e5e3de;
  --bg-dot: oklch(0.9 0.006 95);
  --card-bg: #fdfcfb;
  --card-bg: oklch(0.995 0.003 95);

  --text: #33312d;
  --text: oklch(0.22 0.01 90);
  --text-muted: #615e57;
  --text-muted: oklch(0.42 0.01 90);
  --text-faint: #74716a;
  --text-faint: oklch(0.5 0.01 90);
  --text-faintest: #817d75;
  --text-faintest: oklch(0.55 0.01 90);

  --border: #e3e1dc;
  --border: oklch(0.9 0.005 90);

  --accent: #2f3e63;
  --accent: oklch(0.32 0.07 250);
  --accent-contrast: #faf9f6;
  --accent-contrast: oklch(0.98 0.006 95);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Public Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(var(--bg-dot) 0.6px, transparent 0.6px);
  background-size: 18px 18px;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 500;
  margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.lc-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

/* Header / nav */

.lc-header {
  border-bottom: 1px solid var(--border);
}

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

.lc-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.lc-brand:hover { text-decoration: none; }

.lc-mark {
  width: 26px;
  height: 26px;
  border: 1.3px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  font-family: 'Newsreader', Georgia, serif;
  flex-shrink: 0;
}

.lc-wordmark {
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.lc-nav {
  display: flex;
  gap: 32px;
  font-size: 14px;
}

.lc-nav a {
  color: var(--text-muted);
  font-weight: 500;
}
.lc-nav a:hover { color: var(--text); text-decoration: none; }
.lc-nav a.is-active { color: var(--accent); }

/* Buttons */

.lc-btn {
  display: inline-block;
  padding: 15px 32px;
  font-size: 15px;
  font-weight: 500;
  border-radius: 2px;
  font-family: 'Public Sans', sans-serif;
  cursor: pointer;
  border: 1px solid transparent;
}
.lc-btn:hover { text-decoration: none; }

.lc-btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.lc-btn-primary:hover {
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
  color: var(--accent-contrast);
}

.lc-btn-outline {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}
.lc-btn-outline:hover {
  border-color: var(--text-faint);
  color: var(--text);
}

/* Hero */

.lc-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 96px 40px 88px;
  gap: 26px;
}

.lc-eyebrow-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lc-eyebrow {
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  font-weight: 500;
}

.lc-rule {
  width: 40px;
  height: 2px;
  background: var(--accent);
}

.lc-h1 {
  font-size: 56px;
  line-height: 1.08;
  font-weight: 500;
  max-width: 840px;
  letter-spacing: -0.005em;
}

.lc-h1 .lc-accent-text { color: var(--accent); }

.lc-lead {
  font-size: 21px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0;
}

.lc-cta-row {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.lc-credibility {
  text-align: center;
  padding: 40px 40px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--text-faintest);
  overflow-wrap: break-word;
}

/* Sections */

.lc-section {
  padding: 72px 0;
}
.lc-section + .lc-section { border-top: 1px solid var(--border); }

.lc-section-heading {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 12px;
}

.lc-section-lead {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 0 40px;
}

.lc-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.lc-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.lc-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: box-shadow 0.15s ease;
}
.lc-card:hover { box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06); }

.lc-card-highlight { border-color: var(--accent); border-width: 1.5px; }

.lc-card-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 19px;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 10px;
}

.lc-card-title-plain {
  font-family: 'Public Sans', sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 10px;
}

.lc-card-body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}

.lc-prose { font-size: 18px; line-height: 1.7; color: var(--text-muted); max-width: 720px; }
.lc-prose + .lc-prose { margin-top: 16px; }

.lc-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.lc-list li {
  display: flex;
  gap: 20px;
  align-items: baseline;
  padding: 6px 0;
  font-size: 17px;
  line-height: 1.6;
}
.lc-list .lc-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

.lc-closing {
  text-align: center;
  padding: 88px 40px;
}
.lc-closing .lc-section-heading { margin-bottom: 12px; }
.lc-closing .lc-prose { margin: 0 auto 32px; }

/* Footer */

.lc-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  color: var(--text-faintest);
  font-size: 13px;
  margin-top: auto;
}

/* Cookie banner */

#cookie-banner { color: var(--text); }
#cookie-banner p { margin: 0; font-size: 14px; line-height: 1.6; }
#cookie-banner .lc-btn { padding: 8px 18px; font-size: 13px; }

/* Forms (contact page, plain CSS replacement for crispy-forms' Bootstrap classes) */

form p { margin: 0 0 18px; }
label, .form-label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
input[type="text"], input[type="email"], textarea, .form-control {
  width: 100%;
  font-family: 'Public Sans', sans-serif;
  font-size: 15px;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--card-bg);
  color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
.errorlist, .invalid-feedback { color: #b3261e; font-size: 13px; margin: 4px 0 0; padding: 0; list-style: none; }
.form-actions { margin-top: 8px; }
.mb-3 { margin-bottom: 18px; }
.requiredField { font-weight: 500; }
.asteriskField { color: var(--accent); margin-left: 2px; }

/* Responsive */

@media (max-width: 720px) {
  .lc-h1 { font-size: 38px; }
  .lc-lead { font-size: 17px; }
  .lc-grid-2, .lc-grid-3 { grid-template-columns: 1fr; }
  .lc-container { padding: 0 24px; }
  .lc-hero { padding: 64px 24px 56px; }
  .lc-header-inner { padding: 20px 0; }
  .lc-nav { gap: 20px; }
}

/* Cookie consent banner */
.lc-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  background: var(--accent);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.22);
  animation: lc-cookie-slide-up 0.35s ease-out;
}
.lc-cookie-banner-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.lc-cookie-banner p {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--accent-contrast);
}
.lc-cookie-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.lc-cookie-actions .lc-btn { padding: 10px 22px; font-size: 14px; }
.lc-cookie-accept {
  background: var(--accent-contrast);
  color: var(--accent);
  border: none;
}
.lc-cookie-accept:hover { color: var(--accent); opacity: 0.9; }
.lc-cookie-decline {
  background: transparent;
  color: var(--accent-contrast);
  border-color: rgba(255, 255, 255, 0.5);
}
.lc-cookie-decline:hover { border-color: var(--accent-contrast); color: var(--accent-contrast); }

@keyframes lc-cookie-slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@media (max-width: 720px) {
  .lc-cookie-banner-inner { flex-direction: column; align-items: stretch; gap: 14px; text-align: center; }
  .lc-cookie-actions { justify-content: center; }
}
