/* Essare LLC — site stylesheet
   Self-contained brand styles derived from the Essare Design System
   (Inter, white canvas, near-black ink, coral signature accent).
   Static + mobile-responsive. No build step. */

:root {
  --ink: #181d26;
  --ink-press: #0d1218;
  --body: #333840;
  --muted: #41454d;
  --canvas: #ffffff;
  --soft: #f8fafc;
  --strong: #e0e2e6;
  --hairline: #dddddd;
  --coral: #aa2d00;
  --cream: #f5e9d4;
  --link: #1b61c9;
  --link-press: #1a3866;

  --maxw: 1120px;
  --gutter: 24px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 12px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--body);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { color: var(--ink); font-weight: 500; line-height: 1.2; margin: 0; }
h1 { font-size: 40px; font-weight: 400; }
h2 { font-size: 30px; font-weight: 400; }
h3 { font-size: 20px; font-weight: 500; }
p { margin: 0 0 16px; text-wrap: pretty; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}
.site-header .bar {
  display: flex; align-items: center; gap: 24px;
  height: 64px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter);
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand-name { font-weight: 500; font-size: 18px; color: var(--ink); letter-spacing: -0.01em; }
.site-nav { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.site-nav a { color: var(--body); font-size: 15px; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--hairline); border-radius: var(--radius-sm); width: 40px; height: 40px; cursor: pointer; margin-left: auto; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); margin: 0 auto; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 16px; font-weight: 500; line-height: 1.4;
  padding: 14px 24px; border-radius: var(--radius-lg); cursor: pointer;
  border: 1px solid transparent; transition: background .12s ease, color .12s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #232a36; }
.btn-primary:active { background: var(--ink-press); }
.btn-secondary { background: var(--canvas); color: var(--ink); border-color: var(--hairline); }
.btn-secondary:hover { border-color: var(--ink); }
.btn-on-dark { background: #fff; color: var(--ink); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--hairline); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.lead { font-size: 18px; color: var(--body); max-width: 620px; }

/* ---------- Hero ---------- */
.hero { padding: 96px 0 72px; }
.hero h1 { max-width: 760px; margin-bottom: 20px; text-wrap: balance; }
.hero .lead { margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Service blocks ---------- */
.service { display: grid; grid-template-columns: 1fr; gap: 16px; max-width: 760px; }
.service h2 { margin-bottom: 4px; }
.feature-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 8px; }
.feature-list li { position: relative; padding-left: 26px; color: var(--body); }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--coral); font-weight: 600; }

/* Signature coral band */
.band-coral { background: var(--coral); color: #fff; }
.band-coral h2, .band-coral h3 { color: #fff; }
.band-coral a:not(.btn) { color: #fff; text-decoration: underline; }

/* Cards / grid */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border: 1px solid var(--hairline); border-radius: var(--radius-md);
  padding: 24px; background: var(--canvas);
}
.card h3 { margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }

/* Portfolio thumbnails */
.thumb {
  display: block; border: 1px solid var(--hairline); border-radius: var(--radius-md);
  overflow: hidden; background: var(--soft);
}
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: top center; }
.thumb-ph {
  width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center;
  background:
    linear-gradient(135deg, var(--soft) 0%, var(--strong) 100%);
  color: var(--muted); font-weight: 500; font-size: 15px; letter-spacing: .02em;
  text-align: center; padding: 16px;
}
.thumb-cap { padding: 14px 16px; font-size: 15px; color: var(--ink); font-weight: 500; }
.thumb-cap span { display: block; font-weight: 400; font-size: 13px; color: var(--muted); margin-top: 2px; }

/* Figure */
figure { margin: 0 0 8px; }
figure img { border-radius: var(--radius-md); border: 1px solid var(--hairline); }
figcaption { font-size: 12px; color: var(--muted); margin-top: 8px; }

/* ---------- Forms ---------- */
.form { max-width: 620px; display: grid; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field .req { color: var(--coral); }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 16px; color: var(--ink); background: var(--canvas);
  border: 1px solid var(--hairline); border-radius: var(--radius-sm);
  padding: 12px 14px; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: #458fff; box-shadow: 0 0 0 3px rgba(69,143,255,.18);
}
.field textarea { min-height: 150px; resize: vertical; }
.field-hint { font-size: 13px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-error {
  background: #fdecea; border: 1px solid #f3b4ad; color: #8a1c10;
  border-radius: var(--radius-md); padding: 14px 16px; margin-bottom: 22px;
  font-size: 15px; max-width: 620px;
}

/* ---------- Legal / prose ---------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { color: var(--body); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 6px; }
.prose .updated { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--hairline); padding: 48px 0; background: var(--soft); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; align-items: center; }
.site-footer .legal { font-size: 14px; color: var(--muted); }
.site-footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-footer nav a { color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 820px) {
  h1, .hero h1 { font-size: 32px; }
  h2 { font-size: 26px; }
  .section { padding: 56px 0; }
  .hero { padding: 64px 0 48px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--canvas);
    border-bottom: 1px solid var(--hairline); padding: 8px var(--gutter) 16px;
    margin-left: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 16px; }
  .site-nav a:last-child { border-bottom: none; }
}
