/*
 * Shared business theme for FREEFORM (describe-it) builds — served at
 * /styles/site.css and linked from every page's headHtml. Shared design lives
 * here (not in Astro components/scoped <style>), so every page stays
 * click-editable in the visual editor while still sharing one look. #4a9e8a is
 * filled in at generation time from the brand colour (owner-picked or AI-chosen).
 */

:root {
  --accent: #4a9e8a;
  --accent-ink: #ffffff;
  --ink: #14181f;
  --muted: #5b6472;
  --line: #e6e9ef;
  --paper: #ffffff;
  --wash: #f6f8fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 24, 31, 0.04), 0 10px 30px rgba(20, 24, 31, 0.06);
  --maxw: 68rem;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 2px; }
img { max-width: 100%; height: auto; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 1.25rem; }

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.nav { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.98rem; }
.nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  font-weight: 600;
  padding: 0.72rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  box-shadow: var(--shadow);
}
.btn:hover { filter: brightness(0.95); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}

/* Sections */
main { display: block; }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-wash { background: var(--wash); }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0 0 0.6rem;
}
.lead { font-size: 1.2rem; color: var(--muted); max-width: 40rem; }

/* Hero */
.hero { padding-block: clamp(3rem, 8vw, 6rem); }
.hero .actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1.5rem; }

/* Cards grid */
.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 820px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem;
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.35rem; }
.card p { color: var(--muted); margin: 0; }

/* Contact details */
.contact-list { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.contact-list a { color: var(--ink); font-weight: 600; text-decoration: none; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--wash);
  padding-block: 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .bar { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; justify-content: space-between; }
.site-footer a { color: var(--muted); }
