/* ===== SaltQuill Labs v3 — consistent grid, mono eyebrows, quiet tech ===== */
:root {
  --ink: #131a2a;
  --text: #333c4e;
  --muted: #566073;
  --bg: #fffdf9;
  --bg-soft: #f6f2e8;
  --page: #efe9db;
  --line: #e0d8c4;
  --gold: #d99a2b;
  --gold-dark: #a97417;
  --gold-tint: #f9efdb;
  --radius: 16px;
  --font-display: "Space Grotesk", "Inter", -apple-system, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.07);
  --shadow-md: 0 14px 34px -8px rgba(16, 24, 40, 0.14);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--page);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.12; color: var(--ink); letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 5.5vw, 4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; margin-bottom: 0.45em; letter-spacing: -0.01em; }
p + p { margin-top: 1em; }
a { color: inherit; }
::selection { background: #f0deb2; color: var(--ink); }

/* ===== Eyebrow (mono section label) ===== */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem; font-weight: 500; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-dark);
  margin-bottom: 18px;
}
.caret {
  display: inline-block; width: 8px; height: 1em;
  background: var(--gold); margin-left: 6px; vertical-align: text-bottom;
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ===== Buttons ===== */
.btn {
  display: inline-block; padding: 13px 26px; border-radius: 12px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; text-align: center;
  border: 1px solid transparent; cursor: pointer; font-family: var(--font-body);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #1d2939; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: #cbbf9e; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #e2a83c; }
.btn-nav { padding: 9px 18px; font-size: 0.88rem; background: var(--ink); color: #fff; border-radius: 10px; }
.btn-nav:hover { background: #1d2939; }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: default; transform: none; }

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 253, 249, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--ink); font-family: var(--font-display); font-size: 1.18rem; font-weight: 700; letter-spacing: -0.01em;
}
.brand em { color: var(--gold-dark); font-style: normal; font-weight: 600; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { color: var(--text); text-decoration: none; font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--ink); }
.nav-links .btn-nav { color: #fff; }
.nav-links .btn-nav:hover { color: #fff; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(780px 400px at 50% -130px, #f2ddab, transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--page) 100%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(19, 26, 42, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 26, 42, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(720px 460px at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(720px 460px at 50% 0%, #000 30%, transparent 78%);
}
.hero-inner {
  position: relative; text-align: center; max-width: 960px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: calc(100vh - 68px); min-height: calc(100svh - 68px);
  padding-top: 40px; padding-bottom: 72px;
}
.hero .eyebrow { font-size: clamp(0.78rem, 0.9vw, 0.95rem); margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); margin-bottom: 28px; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.4rem); color: var(--muted); max-width: 760px; margin: 0 auto; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.hero-cta .btn { padding: 16px 34px; font-size: 1.05rem; border-radius: 14px; }
.hero-points {
  display: flex; gap: 30px; flex-wrap: wrap; justify-content: center;
  list-style: none; margin-top: 54px;
  font-family: var(--font-mono); font-size: clamp(0.78rem, 0.95vw, 0.95rem); letter-spacing: 0.02em; color: var(--muted);
}
.hero-points li { display: flex; align-items: center; gap: 7px; }
.hero-points li::before { content: "✓"; color: var(--gold-dark); font-weight: 700; }

/* ===== Sections ===== */
.section { padding: 104px 0; }
.section-alt { background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-lede { color: var(--muted); font-size: 1.05rem; }

/* ===== Services grid — strict, equal cells ===== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d8c69c; }
.card p { color: var(--muted); font-size: 0.93rem; }
.card-icon {
  width: 44px; height: 44px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--gold-tint); border: 1px solid #ead9b3; border-radius: 11px;
  color: var(--gold-dark); margin-bottom: 18px;
}
.card-icon svg { width: 22px; height: 22px; }
.card-list { list-style: none; margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; gap: 7px; }
.card-list li { display: flex; align-items: baseline; gap: 8px; font-size: 0.87rem; color: var(--text); font-weight: 500; }
.card-list li::before { content: "✓"; color: var(--gold-dark); font-weight: 700; flex-shrink: 0; }

/* CTA card — dark accent, same dimensions */
.card-cta { background: var(--ink); border-color: var(--ink); }
.card-cta h3 { color: var(--bg); }
.card-cta p { color: rgba(255, 253, 249, 0.68); }
.card-cta .card-icon { background: rgba(217, 154, 43, 0.14); border-color: rgba(217, 154, 43, 0.35); color: var(--gold); }
.card-cta .btn-gold { margin-top: auto; align-self: flex-start; margin-top: 18px; }
.card-cta:hover { border-color: var(--gold-dark); }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.approach {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow-sm);
}
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; padding-left: 48px; position: relative; margin-top: 20px; color: var(--muted); font-size: 0.96rem; }
.steps li:first-child { margin-top: 16px; }
.steps li strong { color: var(--ink); }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 1px;
  width: 32px; height: 32px; display: grid; place-items: center;
  background: var(--bg); color: var(--gold-dark); border: 1px solid #e2d0a4; border-radius: 10px;
  font-size: 0.72rem; font-weight: 500; font-family: var(--font-mono);
}

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.contact-line {
  display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 500;
  color: var(--ink); padding: 15px 18px; background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-line:hover { border-color: #d8c69c; box-shadow: var(--shadow-md); }
.contact-ico {
  width: 34px; height: 34px; display: grid; place-items: center; flex-shrink: 0;
  background: var(--gold-tint); border: 1px solid #ead9b3; border-radius: 9px; color: var(--gold-dark);
}
.contact-ico svg { width: 17px; height: 17px; }
.contact-form {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow-sm);
}
.contact-form label { font-size: 0.87rem; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 7px; }
.contact-form input, .contact-form textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--bg-soft); color: var(--text); resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #9aa1ae; }
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold); background: var(--bg);
  box-shadow: 0 0 0 3px rgba(217, 154, 43, 0.15);
}
.form-note { font-size: 0.8rem; color: var(--muted); font-weight: 400; text-align: center; }
.form-status-ok { color: #1a7f4b; font-weight: 500; font-size: 0.9rem; }
.form-status-err { color: #b42318; font-weight: 500; font-size: 0.9rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ===== Footer ===== */
.footer { background: var(--ink); color: rgba(255, 255, 255, 0.65); font-size: 0.88rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; padding-top: 34px; padding-bottom: 34px; }
.footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a { color: rgba(255, 255, 255, 0.65); text-decoration: none; }
.footer a:hover { color: var(--gold); }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .caret { animation: none; }
  html { scroll-behavior: auto; }
}

/* ===== Privacy page ===== */
.legal { max-width: 760px; padding-top: 72px; padding-bottom: 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; font-family: var(--font-mono); }
.legal h2 { font-size: 1.3rem; margin-top: 44px; }
.legal ul { margin: 12px 0 0 22px; }
.legal li { margin-top: 6px; }
.legal a { color: var(--gold-dark); }

/* ===== Responsive ===== */
@media (max-width: 1000px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .section { padding: 76px 0; }
  .nav-links a:not(.btn) { display: none; }
}
@media (max-width: 620px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ===== v4 additions: subpages, sitewide footer, card links ===== */
.card-link { margin-top: 16px; font-size: 0.88rem; font-weight: 600; color: var(--gold-dark); text-decoration: none; }
.card-link:hover { text-decoration: underline; }

.subpage-hero {
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(640px 300px at 50% -80px, #f2ddab, transparent 72%),
    linear-gradient(180deg, var(--bg) 0%, var(--page) 100%);
  padding: 72px 0; text-align: center;
}
.subpage-hero .container { max-width: 840px; }
.subpage-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); margin-bottom: 18px; }
.subpage-hero .lede { font-size: 1.12rem; max-width: 700px; }
.subpage-hero .hero-cta { margin-top: 34px; }
.subpage-hero .hero-cta .btn { padding: 14px 28px; font-size: 0.98rem; }

.content { padding: 72px 0 96px; }
.content .container { max-width: 840px; }
.content h2 { font-size: 1.5rem; margin-top: 52px; margin-bottom: 14px; }
.content h2:first-child { margin-top: 0; }
.content p { color: var(--text); }
.content a {
  color: var(--gold-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(169, 116, 23, 0.4);
}
.content a:hover { text-decoration-color: var(--gold-dark); }

.check-grid { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-top: 22px; }
.check-grid li { position: relative; padding-left: 26px; font-size: 0.95rem; font-weight: 500; color: var(--text); line-height: 1.55; }
.check-grid li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--gold-dark); font-weight: 700; }

.content details {
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px;
  margin-top: 12px; box-shadow: var(--shadow-sm); overflow: hidden;
}
.content summary {
  cursor: pointer; font-weight: 600; color: var(--ink); padding: 16px 20px;
  list-style: none; display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
}
.content summary::-webkit-details-marker { display: none; }
.content summary::after { content: "+"; color: var(--gold-dark); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.content details[open] summary::after { content: "–"; }
.content details p { padding: 0 20px 18px; color: var(--muted); font-size: 0.95rem; }

.cta-banner {
  background: var(--ink); border-radius: var(--radius); padding: 38px 40px;
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-top: 64px;
}
.cta-banner h2 { color: var(--bg); margin: 0; font-size: 1.45rem; }
.cta-banner p { color: rgba(255, 253, 249, 0.65); margin-top: 8px; max-width: 460px; font-size: 0.95rem; }
.cta-banner .btn-gold { flex-shrink: 0; }

.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  padding-top: 46px; padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-name { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.05rem; }
.footer-brand p { color: rgba(255, 255, 255, 0.55); font-size: 0.88rem; margin-top: 10px; max-width: 300px; }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-head {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 6px;
}
.footer-col a { font-size: 0.88rem; }
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .check-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 30px 26px; }
}

/* ===== Concept work thumbs ===== */
.work-thumb {
  height: 150px; border-radius: 12px; margin-bottom: 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  color: #fff;
}
.wt-logo { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: -0.01em; }
.wt-logo i { font-style: normal; }
.wt-tag {
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.75;
}
.thumb-trades { background: linear-gradient(135deg, #1c2430 0%, #35414f 100%); }
.thumb-trades i { color: #e0631d; }
.thumb-prof { background: linear-gradient(135deg, #122036 0%, #29405f 100%); }
.thumb-prof i { color: #d7b56d; }
.thumb-clinic { background: linear-gradient(135deg, #0a4341 0%, #17716c 100%); }
.thumb-clinic i { color: #7fd6cb; }
.thumb-estate { background: linear-gradient(135deg, #10312b 0%, #2b5a4f 100%); }
.thumb-estate i { color: #c9a24b; }
.thumb-rest { background: linear-gradient(135deg, #171310 0%, #453227 100%); }
.thumb-rest i { color: #e07a3f; }
.thumb-truck { background: linear-gradient(135deg, #15202e 0%, #31435c 100%); }
.thumb-truck i { color: #f5a81c; }

/* ===== Mobile hardening pass ===== */
@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .brand { font-size: 1.02rem; }
  .brand-mark { width: 26px; height: 26px; }
  .btn-nav { padding: 8px 12px; font-size: 0.8rem; }
  .nav-links { gap: 14px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .section { padding: 60px 0; }
  .subpage-hero { padding: 56px 0; }
  .subpage-hero .hero-cta .btn { flex: 1 1 100%; }
  .cta-banner { padding: 26px 22px; }
  .cta-banner .btn-gold { width: 100%; }
  .contact-form { padding: 24px 20px; }
  .card { padding: 24px 22px; }
  .approach { padding: 26px 22px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
