/* ==========================================================================
   Cairn Binder — business-card site
   Palette (inherited from cairnaccounting.com): teal #3b9b9f, deep teal
   #2d7a7d, slate blue #28678d. Tone: calm, warm, orderly.
   ========================================================================== */

:root {
  --teal: #3b9b9f;
  --teal-deep: #2d7a7d;
  --slate: #28678d;
  --bg: #faf9f6;            /* warm off-white */
  --surface: #ffffff;
  --ink: #2c3937;           /* dark teal-tinted charcoal (body/headings) */
  --muted: #4e5f5c;         /* muted teal-gray (≥4.5:1 on bg) */
  --border: #e6e1d8;        /* warm hairline */
  --radius: 14px;
  --shadow: 0 1px 2px rgba(44, 57, 55, 0.05), 0 8px 24px rgba(44, 57, 55, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--slate); }

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 246, 0.9);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }

.brand-mark { width: 28px; height: 28px; }

.brand-name {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.nav-signin {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--teal-deep);
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-signin:hover {
  background: #fff;
  border-color: var(--teal);
  color: var(--teal-deep);
}

/* ---- Hero ---- */
.hero {
  padding: 56px 0 64px;
  background:
    radial-gradient(1200px 420px at 70% -10%, rgba(59, 155, 159, 0.10), transparent 60%),
    var(--bg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
  text-align: center;
}

.hero-kicker {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 16px;
}

.hero-heading {
  font-size: clamp(2.2rem, 8vw, 4rem);
  font-weight: 700;
  max-width: 18ch;
  margin: 0 auto;
}

.hero-sub {
  font-size: 1.125rem;
  color: var(--muted);
  max-width: 34em;
  margin: 20px auto 0;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  padding: 14px 26px;
  border-radius: 999px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease;
}

.btn-primary {
  background: var(--teal-deep);
  color: #fff;
  box-shadow: 0 8px 20px rgba(45, 122, 125, 0.28);
}
.btn-primary:hover {
  background: var(--slate);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(40, 103, 141, 0.30);
}

.hero-free {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
}

.hero-art { display: none; }

/* ---- Sections (shared) ---- */
.section { padding: 64px 0; }

.section-heading {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  text-align: center;
  max-width: 24ch;
  margin: 0 auto;
}

.section-lede {
  text-align: center;
  color: var(--muted);
  max-width: 40em;
  margin: 14px auto 40px;
  font-size: 1.06rem;
}

/* ---- Cards ---- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow);
}

.card-icon {
  width: 30px;
  height: 30px;
  color: var(--teal-deep);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
}

.card p { color: var(--muted); font-size: 0.98rem; }

/* ---- How it works ---- */
.section-alt {
  background: linear-gradient(180deg, #f3f0ea 0%, var(--bg) 100%);
}

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  counter-reset: step;
}

.step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px 26px 72px;
  box-shadow: var(--shadow);
}

.step-num {
  position: absolute;
  left: 22px;
  top: 26px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.98rem; }

/* ---- Privacy ---- */
.privacy { text-align: center; }

.privacy-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.privacy-icon { width: 34px; height: 34px; color: var(--slate); }

.privacy-line {
  font-size: clamp(1.4rem, 4.5vw, 1.9rem);
  max-width: 22ch;
}

.privacy-sub { color: var(--muted); }

/* ---- Partners ---- */
.partners {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.partner-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.partner-name {
  font-family: "Onest", system-ui, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.partner-tag {
  font-size: 0.9rem;
  color: var(--muted);
}

.partner-link { font-size: 0.94rem; }

.partners-cta {
  margin-top: 28px;
  text-align: center;
  font-size: 1rem;
  color: var(--muted);
}
.partners-cta a { font-weight: 600; }

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--border);
  background: #f3f0ea;
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

.footer-copy { color: var(--muted); font-size: 0.94rem; }

.footer-nav {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-nav a { font-size: 0.94rem; }

/* ---- Responsive: tablet ---- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 72px 0 80px; }
}

/* ---- Responsive: desktop ---- */
@media (min-width: 900px) {
  .hero-inner {
    flex-direction: row;
    text-align: left;
    gap: 56px;
    justify-content: space-between;
  }
  .hero-copy { flex: 1 1 54%; }
  .hero-heading { margin: 0; }
  .hero-sub { margin: 20px 0 0; }
  .hero-actions {
    flex-direction: row;
    align-items: center;
    gap: 18px;
  }
  .hero-art {
    display: block;
    flex: 0 0 220px;
  }
  .cairn-hero { width: 220px; height: 220px; }

  .cards { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding-left: 24px; padding-top: 64px; }
  .step-num { left: 24px; top: 24px; }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

/* ---- Contact / sponsor application ---- */
.contact-main { padding: 48px 0 80px; }
.contact-head { text-align: center; margin-bottom: 36px; }
.contact-head h1 { font-size: 2.1rem; }
.contact-head .section-lede { margin: 12px auto 0; max-width: 560px; }

.contact-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}

.contact-success {
  max-width: 560px;
  margin: 0 auto 24px;
  padding: 16px 20px;
  border: 1px solid var(--teal-deep);
  border-radius: var(--radius);
  background: rgba(45, 122, 125, 0.08);
  color: var(--ink);
  text-align: center;
}

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form label { font-size: 0.95rem; font-weight: 600; color: var(--ink); }
.contact-form input,
.contact-form textarea {
  font-family: "Onest", system-ui, sans-serif;
  font-size: 1rem;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  width: 100%;
  box-sizing: border-box;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 3px rgba(45, 122, 125, 0.15);
}
.contact-form textarea { resize: vertical; }

.contact-alt {
  max-width: 560px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.95rem;
  color: var(--muted);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
  .nav-signin { transition: none; }
}
