/* ==========================================================================
   Shellard Technology Solutions — site styles (Navy & Gold)
   Colors and fonts live in :root below. Change them there to re-theme the site.
   ========================================================================== */

:root {
  --bg: #faf7f0;            /* warm paper */
  --surface: #ffffff;
  --surface-2: #f2ede2;
  --ink: #1d2433;
  --ink-soft: #545b69;
  --line: #e4dccb;
  --accent: #1f3b63;        /* navy */
  --accent-ink: #ffffff;
  --accent-soft: #e4eaf3;
  --sage: #8a5d06;          /* gold, darkened for readable text */
  --sage-soft: #f7ebcf;
  --gold: #d49a26;
  --gold-text: #9c6a0b;

  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 6px;
  --radius-sm: 4px;
  --shadow: 0 1px 2px rgba(29, 36, 51, .05), 0 6px 18px rgba(29, 36, 51, .06);
  --max: 1080px;
  --gutter: clamp(16px, 4vw, 32px);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111a2b;
    --surface: #18233a;
    --surface-2: #1d2a44;
    --ink: #eef1f6;
    --ink-soft: #aab3c4;
    --line: #2c3a56;
    --accent: #e6b450;
    --accent-ink: #111a2b;
    --accent-soft: #2e2a1c;
    --sage: #e6b450;
    --sage-soft: #2e2a1c;
    --gold: #e6b450;
    --gold-text: #e6b450;
    --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  --bg: #111a2b;
  --surface: #18233a;
  --surface-2: #1d2a44;
  --ink: #eef1f6;
  --ink-soft: #aab3c4;
  --line: #2c3a56;
  --accent: #e6b450;
  --accent-ink: #111a2b;
  --accent-soft: #2e2a1c;
  --sage: #e6b450;
  --sage-soft: #2e2a1c;
  --gold: #e6b450;
  --gold-text: #e6b450;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 8px 24px rgba(0, 0, 0, .25);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 720px; }
.section { padding: clamp(48px, 8vw, 96px) 0; }
.section--tint { background: var(--surface-2); }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--sage); margin-bottom: .75rem;
}
.lead { font-size: 1.2rem; color: var(--ink-soft); max-width: 640px; }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .75em 1.3em; border-radius: 999px; border: 1.5px solid transparent;
  font: 600 .95rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; color: var(--ink); text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 1.05rem;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: .95rem;
  padding: 8px 12px; border-radius: 999px;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; color: var(--ink); cursor: pointer; }

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .logo { font-size: 1rem; line-height: 1.2; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; padding: 12px var(--gutter) 20px;
    background: var(--bg); border-bottom: 1px solid var(--line);
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 10vw, 120px) 0 clamp(40px, 7vw, 80px); }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.hero h1 em { font-style: italic; color: var(--accent); }
.portrait {
  aspect-ratio: 4 / 5; border-radius: 28px; overflow: hidden;
  background: linear-gradient(160deg, var(--accent-soft), var(--sage-soft));
  display: grid; place-items: center; color: var(--ink-soft); font-size: .9rem; text-align: center;
  box-shadow: var(--shadow);
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { max-width: 320px; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column;
}
.card > .btn, .card > .link { margin-top: auto; align-self: flex-start; }
.card .icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 16px;
}
.card .link { font-weight: 600; text-decoration: none; margin-top: 8px; }
.card .link::after { content: " →"; }
.tag {
  display: inline-block; font-size: .75rem; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: var(--sage-soft); color: var(--sage); margin-bottom: 12px; align-self: flex-start;
}
.price { font-family: var(--font-display); font-size: 1.4rem; margin: .25rem 0 1rem; }
.price small { font-family: var(--font-body); font-size: .85rem; color: var(--ink-soft); }
.card ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--ink-soft); }
.card--feature { border-color: var(--accent); }

/* Values strip on the homepage */
.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 28px; }
.values h3 { font-size: 1.1rem; }
.values p { color: var(--ink-soft); margin: 0; }

/* ---------- Blog ---------- */
.post-list { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.post {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; display: flex; flex-direction: column;
  box-shadow: var(--shadow); transition: transform .15s ease;
}
.post:hover { transform: translateY(-3px); }
.post-img { aspect-ratio: 16 / 9; background: var(--surface-2); object-fit: cover; width: 100%; }
.post-body { padding: 20px 22px 24px; }
.post-date { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.post h3 { margin: .35em 0 .4em; font-size: 1.2rem; }
.post p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.post-skeleton { height: 320px; border-radius: var(--radius); background: var(--surface-2); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.subscribe {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(24px, 4vw, 40px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center;
}
.subscribe iframe { width: 100%; height: 150px; border: 0; border-radius: var(--radius-sm); background: transparent; }
@media (max-width: 820px) { .subscribe { grid-template-columns: 1fr; } }

/* ---------- Rates table ---------- */
.rates { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rates th, .rates td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rates tr:last-child th, .rates tr:last-child td { border-bottom: 0; }
.rates th { font-weight: 600; width: 42%; }
.rates small { color: var(--ink-soft); margin-left: 4px; }
@media (max-width: 600px) {
  .rates th, .rates td { display: block; width: 100%; }
  .rates th { padding-bottom: 2px; border-bottom: 0; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form label { font-weight: 600; font-size: .9rem; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); font: inherit;
}
.form textarea { min-height: 160px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.form-status { font-weight: 600; }
.form-status.ok { color: var(--sage); }
.form-status.err { color: var(--accent); }
.hp { position: absolute; left: -9999px; }

.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 56px); }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.prose { font-size: 1.08rem; }
.prose h2 { margin-top: 1.6em; }
.prose blockquote {
  margin: 1.5em 0; padding: .2em 0 .2em 1.2em; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 1.3rem; font-style: italic; color: var(--ink);
}
.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 1.5em 0; }
.photo-pair figure { margin: 0; }
.photo-pair img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 30%; border-radius: var(--radius); box-shadow: var(--shadow); }
.photo-pair figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.4; }
@media (max-width: 520px) { .photo-pair { grid-template-columns: 1fr; } }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.facts li { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.facts strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--sage); }

/* ---------- CTA band ---------- */
.cta {
  background: var(--ink); color: var(--bg); border-radius: 24px;
  padding: clamp(32px, 6vw, 64px); text-align: center;
}
.cta h2 { color: var(--bg); }
.cta p { color: color-mix(in srgb, var(--bg) 75%, transparent); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta .btn-row { justify-content: center; }
.cta .btn--ghost { background: transparent; color: var(--bg); border-color: color-mix(in srgb, var(--bg) 35%, transparent); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0; margin-top: 40px; font-size: .9rem; color: var(--ink-soft); }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { color: var(--ink-soft); text-decoration: none; margin-right: 16px; }
.site-footer a:hover { color: var(--ink); }
.theme-toggle { background: none; border: 1px solid var(--line); color: var(--ink-soft); border-radius: 999px; padding: 6px 12px; cursor: pointer; font: inherit; }

.page-head { padding: clamp(48px, 8vw, 88px) 0 clamp(16px, 3vw, 32px); }

/* ---------- Navy & Gold style details ---------- */
h1, h2, h3 { font-weight: 600; letter-spacing: -0.005em; }
.hero h1 em { font-style: italic; color: var(--gold-text); }
.eyebrow { text-transform: none; letter-spacing: 0; font-family: var(--font-display); font-style: italic; font-size: 1.05rem; font-weight: 400; color: var(--sage); }
.btn { border-radius: var(--radius); }
.logo-mark { border-radius: 6px; box-shadow: inset 0 -4px 0 var(--gold); }
.portrait { border-radius: 8px; border: 6px solid var(--surface); }
.card--feature { border-color: var(--gold); border-width: 2px; }
.cta { background: #1c2f4a; color: #fff; border-top: 4px solid var(--gold); border-radius: 8px; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255, 255, 255, .82); }
.cta .btn--primary { background: var(--gold); color: #1c2f4a; }
.cta .btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .4); background: transparent; }

/* "Why work with me" strip */
.why { background: #1c2f4a; color: #eef1f6; padding: clamp(32px, 5vw, 48px) 0; border-bottom: 4px solid var(--gold); }
.why h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.8rem); margin-bottom: 24px; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 40px); }
.why-grid h3 { color: #f1c66a; font-size: 1.1rem; margin-bottom: .35em; }
.why-grid p { margin: 0; color: rgba(238, 241, 246, .85); font-size: .98rem; }
@media (max-width: 820px) { .why-grid { grid-template-columns: 1fr; } }

/* Services page: grouped "menu" layout */
.svc-intro { background: var(--surface); border-left: 4px solid var(--gold); padding: 14px 18px; border-radius: var(--radius-sm); margin: 0 0 8px; color: var(--ink-soft); }
.svc-group { padding: clamp(32px, 5vw, 56px) 0 8px; }
.svc-group > header { display: flex; align-items: baseline; gap: 14px; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.svc-group > header h2 { margin: 0; }
.svc-group > header p { margin: 0; color: var(--ink-soft); }
.svc { display: grid; grid-template-columns: 1fr 240px; gap: 28px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.svc h3 { margin-bottom: .3em; }
.svc p { margin-bottom: .6em; }
.svc ul { margin: 0; padding-left: 1.1em; color: var(--ink-soft); }
.svc-price { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; align-self: start; }
.svc-price .amount { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; line-height: 1.1; }
.svc-price .per { display: block; color: var(--ink-soft); font-size: .9rem; margin: 4px 0 14px; }
.svc-price .btn { width: 100%; justify-content: center; }
.svc--feature .svc-price { border: 2px solid var(--gold); }
.svc .tag { margin-bottom: 8px; }
.tiers { width: 100%; border-collapse: collapse; margin: 8px 0 4px; font-size: .95rem; }
.tiers th, .tiers td { text-align: left; padding: 6px 10px 6px 0; border-bottom: 1px dashed var(--line); }
.tiers th { font-weight: 600; }
@media (max-width: 720px) { .svc { grid-template-columns: 1fr; gap: 14px; } }

/* Products page spotlight */
.spotlight { display: grid; grid-template-columns: 1fr auto; gap: clamp(20px, 4vw, 48px); align-items: center; background: #1c2f4a; color: #eef1f6; border-top: 4px solid var(--gold); border-radius: 8px; padding: clamp(24px, 4vw, 40px); }
.spotlight h2 { color: #fff; margin: 6px 0 10px; }
.spotlight p { color: rgba(238, 241, 246, .85); max-width: 600px; }
.spotlight .tag { background: var(--gold); color: #1c2f4a; }
.spotlight .btn--primary { background: var(--gold); color: #1c2f4a; }
.spot-stats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.spot-stats li { border: 1px solid rgba(255, 255, 255, .2); border-radius: 6px; padding: 10px 18px; color: rgba(238, 241, 246, .85); min-width: 170px; }
.spot-stats strong { font-family: var(--font-display); font-size: 1.6rem; color: #f1c66a; margin-right: 6px; }
@media (max-width: 720px) { .spotlight { grid-template-columns: 1fr; } .spot-stats { grid-template-columns: repeat(3, 1fr); } .spot-stats li { min-width: 0; padding: 8px 10px; font-size: .85rem; } .spot-stats strong { display: block; font-size: 1.3rem; } }

/* Hexagon logo */
.logo-img { width: 36px; height: auto; flex: none; }
@media (max-width: 820px) { .logo-img { width: 32px; } }

/* Contact page: ways to reach me */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.way { display: flex; flex-direction: column; gap: 6px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: var(--radius); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease; }
.way:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(29, 36, 51, .12); }
.way strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
.way span:last-child { color: var(--ink-soft); font-size: .95rem; }
.way-email { word-break: break-all; color: var(--accent) !important; font-weight: 600; }
.way-emoji { font-size: 2rem; line-height: 1; margin-bottom: 4px; }
.next-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; counter-reset: step; }
.next-steps li { display: flex; gap: 12px; align-items: flex-start; counter-increment: step; }
.next-steps li::before { content: counter(step); flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 600; display: grid; place-items: center; font-size: .95rem; margin-top: 1px; }
@media (max-width: 820px) { .ways { grid-template-columns: 1fr; } }

/* ===================== Work / Products page ===================== */
.work-head .lead { max-width: 640px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filter {
  font: 600 .95rem/1 var(--font-body); padding: 10px 16px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink);
}
.filter:hover { border-color: var(--accent); }
.filter[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* Browser-window frame around a screenshot */
.frame {
  display: block; position: relative; overflow: hidden; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--line); background: var(--surface); box-shadow: 0 2px 4px rgba(29,36,51,.06), 0 18px 40px rgba(29,36,51,.12);
}
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #1c2f4a; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.28); flex: none; }
.frame-bar i:first-child { background: var(--gold); }
.frame-url {
  margin-left: 10px; flex: 1; min-width: 0; padding: 3px 10px; border-radius: 6px; background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.8); font: 400 .78rem/1.3 var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame img { width: 100%; height: auto; display: block; transition: transform .35s ease; }
.frame:hover img, .frame:focus-visible img { transform: scale(1.025); }

/* Featured rows */
.showcase { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px) 0; }
.showcase + .showcase { border-top: 1px solid var(--line); }
.showcase--flip .frame { order: 2; }
.frame--big { transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transition: transform .5s ease, box-shadow .5s ease; }
.showcase--flip .frame--big { transform: perspective(1400px) rotateY(7deg) rotateX(2deg); }
.frame--big:hover, .frame--big:focus-visible { transform: none; }
.showcase-text h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 8px 0 12px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 4px; display: grid; gap: 8px; }
.ticks li { padding-left: 26px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px; border-left: 2.5px solid var(--gold); border-bottom: 2.5px solid var(--gold); transform: rotate(-45deg); }

/* Project tiles (no card box: the screenshot is the card) */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 44px 28px; margin-top: clamp(32px, 5vw, 56px); padding-top: clamp(32px, 5vw, 48px); border-top: 1px solid var(--line); }
.tile-kind { margin: 18px 0 2px; color: var(--sage); font-family: var(--font-display); font-style: italic; }
.tile h3 { margin: 0 0 6px; }
.tile p:last-child { color: var(--ink-soft); margin: 0; }
.work[hidden] { display: none; }

@media (max-width: 820px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase--flip .frame { order: 0; }
  .frame--big, .showcase--flip .frame--big { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .frame img, .frame--big { transition: none; }
  .frame:hover img { transform: none; }
}

/* ===================== Home: IT checkup ===================== */
.checkup { display: grid; grid-template-columns: 1fr 340px; gap: 28px clamp(24px, 4vw, 48px); align-items: start; }
.checkup-intro { grid-column: 1 / -1; }
.checkup-intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 6px; }
.checkup-qs { display: grid; gap: 12px; margin: 0; }
.q { margin: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 16px 18px; }
.q legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 600; display: flex; gap: 12px; }
.q legend + * { clear: both; }
.q-num { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font: 600 .85rem/1 var(--font-display); }
.q-opts { display: flex; flex-wrap: wrap; gap: 8px; padding-left: 38px; }
.q-opts label { position: relative; cursor: pointer; }
.q-opts input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-opts span { display: inline-block; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .92rem; }
.q-opts label:hover span { border-color: var(--accent); }
.q-opts input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.q-opts input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.q.answered { border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }

.checkup-result { position: sticky; top: 88px; background: #1c2f4a; color: #eef1f6; border-radius: 8px; border-top: 4px solid var(--gold); padding: 24px; }
.checkup-result .muted { color: rgba(238,241,246,.75); }
.result-progress { margin: 0 0 8px; font-size: .92rem; color: rgba(238,241,246,.8); }
.result-count { color: #f1c66a; font-family: var(--font-display); font-size: 1.2rem; }
.result-meter { height: 10px; border-radius: 999px; background: rgba(255,255,255,.12); overflow: hidden; margin-bottom: 18px; }
.result-meter span { display: block; height: 100%; width: 0; background: var(--gold); border-radius: inherit; transition: width .4s ease, background .4s ease; }
.result-title { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.result-tips { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; font-size: .93rem; }
.result-tips li { padding-left: 14px; border-left: 3px solid var(--gold); color: rgba(238,241,246,.9); }
.result-cta { margin-top: 18px; width: 100%; justify-content: center; background: var(--gold); color: #1c2f4a; }
@media (max-width: 900px) {
  .checkup { grid-template-columns: 1fr; }
  .checkup-result { position: static; }
  .q-opts { padding-left: 0; }
}
@media (prefers-reduced-motion: reduce) { .result-meter span { transition: none; } }

/* ===================== Home: recent work ===================== */
.recent-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.recent-head h2 { margin: 0; }
.recent { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.recent-item { color: var(--ink); text-decoration: none; display: grid; gap: 6px; }
.recent-item strong { font-family: var(--font-display); font-size: 1.15rem; margin-top: 12px; }
.recent-item > span:last-child { color: var(--ink-soft); }
.recent-item:hover .frame img { transform: scale(1.025); }
@media (max-width: 820px) { .recent { grid-template-columns: 1fr; } }

/* hidden always wins over display rules */
[hidden] { display: none !important; }

/* ===================== Home hero: stack of real work ===================== */
.hero-stack { position: relative; display: block; aspect-ratio: 6 / 5; text-decoration: none; }
.hero-stack .frame { position: absolute; width: 74%; transition: transform .4s ease; }
.hs-1 { top: 0; left: 0; transform: rotate(-5deg); }
.hs-2 { top: 12%; right: 0; transform: rotate(4deg); }
.hs-3 { bottom: 0; left: 12%; transform: rotate(-1deg); z-index: 2; box-shadow: 0 4px 8px rgba(29,36,51,.1), 0 28px 60px rgba(29,36,51,.22); }
.hero-stack:hover .hs-1, .hero-stack:focus-visible .hs-1 { transform: rotate(-7deg) translate(-8px, -6px); }
.hero-stack:hover .hs-2, .hero-stack:focus-visible .hs-2 { transform: rotate(6deg) translate(8px, -4px); }
.hero-stack:hover .hs-3, .hero-stack:focus-visible .hs-3 { transform: rotate(0deg) translateY(-4px); }
.hero-stack .frame img { transition: none; }
.hero-stack:hover .frame img { transform: none; }
@media (max-width: 820px) { .hero-stack { max-width: 460px; width: 100%; margin-top: 8px; } }
@media (prefers-reduced-motion: reduce) { .hero-stack .frame { transition: none; } }

/* Small founder line under the hero buttons */
.founder { display: inline-flex; align-items: center; gap: 14px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink-soft); text-decoration: none; max-width: 460px; }
.founder img { width: 56px; height: 56px; border-radius: 50%; flex: none; border: 3px solid var(--surface); box-shadow: 0 0 0 2px var(--gold); }
.founder strong { display: block; color: var(--ink); font-family: var(--font-display); font-weight: 600; }
.founder span { font-size: .93rem; line-height: 1.45; }
.founder:hover strong { color: var(--accent); }

/* Line icons on the home service cards */
.svc-icon { width: 48px; height: 48px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 18px; background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 -3px 0 var(--gold); }

/* ===================== Services page extras ===================== */
.jump { margin-top: 24px; }
.jump .filter { text-decoration: none; display: inline-block; }
.svc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.svc-head h3 { margin: 0; }
.svc-head .svc-icon { width: 44px; height: 44px; margin: 0; flex: none; }
.svc-group { scroll-margin-top: 80px; }
#rates, #how { scroll-margin-top: 70px; }

/* Example Health Check report */
.report { margin: 22px 0 0; max-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 10px 28px rgba(29,36,51,.08); }
.report-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 12px 16px; background: #1c2f4a; color: #fff; }
.report-top strong { font-family: var(--font-display); font-weight: 600; }
.report-top span { font-size: .82rem; color: rgba(255,255,255,.75); }
.report ul { list-style: none; margin: 0; padding: 6px 16px; color: var(--ink); }
.report li { display: grid; grid-template-columns: 14px 130px 1fr; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .93rem; }
.report li:last-child { border-bottom: 0; }
.report li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; }
.report li span:first-child { font-weight: 600; }
.report li span:last-child { color: var(--ink-soft); }
.r-bad::before { background: #c2412d; }
.r-warn::before { background: #d49a26; }
.r-ok::before { background: #3f8f5a; }
.report figcaption { padding: 12px 16px; background: var(--sage-soft); font-size: .9rem; color: var(--ink); }
@media (max-width: 520px) { .report li { grid-template-columns: 14px 1fr; } .report li span:last-child { grid-column: 2; } }

/* Nonprofit discount figures */
.np-figs { display: grid; gap: 14px; }
.np-figs p { margin: 0; color: var(--ink-soft); font-size: .92rem; line-height: 1.35; }
.np-figs b { display: block; font-family: var(--font-display); font-size: 2.4rem; line-height: 1; color: var(--gold-text); font-weight: 600; }
.np-figs .btn { margin-top: 4px; }

/* How it works timeline */
.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 21px; left: 22px; right: 22px; height: 2px; background: var(--gold); }
.steps li { position: relative; }
.step-n { position: relative; z-index: 1; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 1.15rem/1 var(--font-display); box-shadow: 0 0 0 6px var(--bg); }
.steps h3 { font-size: 1.12rem; margin: 18px 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; padding-left: 62px; gap: 24px; }
  .steps::before { top: 22px; bottom: 22px; left: 21px; right: auto; width: 2px; height: auto; }
  .step-n { position: absolute; left: -62px; top: 0; }
  .steps h3 { margin-top: 8px; }
}

/* Phone-only booking bar */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--line); }
  .callbar .btn { width: 100%; justify-content: center; }
  body.has-callbar { padding-bottom: 72px; }
}
