/* Griffin Advisory & Associates / KKS Cleaning Services — shared design tokens */

:root {
  --ground: #F6F3EC;
  --surface: #FFFFFF;
  --surface-sunk: #EFEAE0;
  --ink: #1B221E;
  --ink-soft: #4B564F;
  --ink-faint: #7C8880;
  --line: #DCD5C6;
  --emerald: #274B40;
  --emerald-strong: #173129;
  --emerald-tint: #E4EBE6;
  --brass: #A97C3F;
  --brass-strong: #8A6530;
  --brass-tint: #F2E7D3;
  --shadow: 0 1px 2px rgba(23,35,29,0.06), 0 12px 28px -16px rgba(23,35,29,0.22);
  --radius: 3px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #121714;
    --surface: #181F1B;
    --surface-sunk: #0D1210;
    --ink: #EDEDE6;
    --ink-soft: #B7C0B8;
    --ink-faint: #7E8A82;
    --line: #2B3530;
    --emerald: #6FA98F;
    --emerald-strong: #8FC2A8;
    --emerald-tint: #1D2A24;
    --brass: #D9B579;
    --brass-strong: #E8CB98;
    --brass-tint: #2A2318;
    --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 16px 32px -18px rgba(0,0,0,0.6);
  }
}

:root[data-theme="dark"] {
  --ground: #121714;
  --surface: #181F1B;
  --surface-sunk: #0D1210;
  --ink: #EDEDE6;
  --ink-soft: #B7C0B8;
  --ink-faint: #7E8A82;
  --line: #2B3530;
  --emerald: #6FA98F;
  --emerald-strong: #8FC2A8;
  --emerald-tint: #1D2A24;
  --brass: #D9B579;
  --brass-strong: #E8CB98;
  --brass-tint: #2A2318;
  --shadow: 0 1px 2px rgba(0,0,0,0.4), 0 16px 32px -18px rgba(0,0,0,0.6);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: 'Public Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.01em;
  text-wrap: balance;
  margin: 0;
  color: var(--ink);
}
p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 65ch;
}
a { color: inherit; }
img { max-width: 100%; display: block; }

.eyebrow {
  font-family: 'IBM Plex Mono', ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass-strong);
  font-weight: 600;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }

/* Terrazzo speckle texture — quiet backdrop tying to the marble/stone service */
.terrazzo { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
:root:not([data-theme="light"]) .terrazzo { opacity: 0.14; }
:root[data-theme="dark"] .terrazzo { opacity: 0.14; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 2px;
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: 'Public Sans', sans-serif;
}
.btn.primary { background: var(--emerald); color: #fff; box-shadow: var(--shadow); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn.brass { background: var(--brass); color: #fff; box-shadow: var(--shadow); }

/* Nav (shared shell, per-site logo mark differs) */
nav.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.mark { display: flex; align-items: center; gap: 10px; font-family: 'Fraunces', serif; font-weight: 650; font-size: 1.22rem; text-decoration: none; color: var(--ink); }
.mark .chip {
  width: 34px; height: 34px; border-radius: 2px; background: var(--emerald); color: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.02em;
}
nav.top .links { display: flex; gap: 34px; font-size: 0.92rem; color: var(--ink-soft); }
nav.top .links a { text-decoration: none; transition: color .15s; }
nav.top .links a:hover, nav.top .links a[aria-current="page"] { color: var(--emerald-strong); }
nav.top .cta {
  display: inline-flex; align-items: center; gap: 8px; background: var(--emerald); color: #fff;
  padding: 10px 18px; border-radius: 2px; font-size: 0.88rem; font-weight: 600; text-decoration: none; box-shadow: var(--shadow);
}
:root:not([data-theme="light"]) nav.top .cta, :root[data-theme="dark"] nav.top .cta {
  color: var(--emerald-strong); background: var(--emerald-tint); border: 1px solid var(--emerald);
}
@media (max-width: 760px) { nav.top .links { display: none; } }

/* Section rhythm */
.section { padding: 84px 0; }
.section-head {
  display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 44px;
  flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: 24px;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head .note { max-width: 34ch; font-size: 0.95rem; text-align: right; color: var(--ink-soft); }
@media (max-width: 640px) { .section-head .note { text-align: left; } }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}

/* Footer */
footer.site { padding: 36px 0; border-top: 1px solid var(--line); }
footer.site .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: var(--ink-faint); }
footer.site a { color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }

/* Theme toggle (optional small control, sites may omit) */
.theme-toggle {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-soft);
  width: 34px; height: 34px; border-radius: 2px; cursor: pointer; font-size: 0.85rem;
}
