/* ==========================================================================
   Fido Parry Development Consulting — site styles
   ========================================================================== */

:root {
  --ink: #142231;
  --ink-2: #1d3044;
  --paper: #f8f6f2;
  --stone: #ece7df;
  --line: #d9d2c6;
  --brass: #a7814a;
  --brass-dark: #8a6a3b;
  --text: #1c2632;
  --muted: #5a6572;
  --on-ink: #e9e5dd;
  --on-ink-muted: #a9b2bc;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.1rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; text-wrap: pretty; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.narrow { max-width: 720px; }

.eyebrow {
  display: inline-block;
  font: 600 0.75rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.25rem;
}

.lede { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: #fff; padding: 0.75rem 1rem; z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  font: 600 0.9rem/1 var(--sans);
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent; border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--brass); color: #fff; }
.btn-primary:hover { background: var(--brass-dark); }
.btn-outline { border-color: currentColor; color: inherit; background: transparent; }
.btn-outline:hover { background: rgba(255, 255, 255, 0.08); }
.btn-arrow::after { content: "→"; font-size: 1.1em; transition: transform 0.2s; }
.btn-arrow:hover::after { transform: translateX(3px); }

/* Header ----------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(248, 246, 242, 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-mark { height: 40px; width: auto; flex: none; }
.brand-name { font: 500 1.25rem/1 var(--serif); letter-spacing: 0.02em; }
.brand-sub {
  display: block; margin-top: 0.3rem;
  font: 600 0.62rem/1 var(--sans); letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}

.nav ul { display: flex; gap: 2.2rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  text-decoration: none; font-size: 0.92rem; font-weight: 500; color: var(--text);
  padding: 0.4rem 0; border-bottom: 1px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--brass); }
.nav .btn { padding: 0.75rem 1.2rem; border: 0; color: #fff; }

.nav-toggle {
  display: none; background: none; border: 0; padding: 0.5rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 1100px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; inset: 76px 0 auto 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.5rem var(--gutter) 1.5rem; }
  .nav li a { display: block; padding: 0.9rem 0; border-bottom: 1px solid var(--line); }
  .nav li:last-child a { margin-top: 1rem; justify-content: center; border-bottom: 0; }
}

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--on-ink);
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4.5rem, 10vw, 7.5rem);
}
.hero::before {
  /* blueprint grid */
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(100deg, transparent 30%, #000 85%);
}
.hero .container { position: relative; }
.hero h1 { color: #fff; max-width: 14ch; }
.hero .lede { color: var(--on-ink-muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2.25rem; }
.hero-skyline {
  position: absolute; right: var(--gutter); bottom: 0;
  width: min(42vw, 520px); color: rgba(167, 129, 74, 0.5);
  pointer-events: none;
}
@media (max-width: 860px) { .hero-skyline { opacity: 0.35; width: 70vw; } }

.page-hero { background: var(--ink); color: var(--on-ink); padding: clamp(4rem, 9vw, 6.5rem) 0 clamp(3rem, 7vw, 5rem); position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(100deg, transparent 40%, #000 90%);
}
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.page-hero .lede { color: var(--on-ink-muted); margin-bottom: 0; }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--stone); }
.section-dark { background: var(--ink); color: var(--on-ink); }
.section-dark h2 { color: #fff; }
.section-head { max-width: 680px; margin-bottom: 3.5rem; }

.split { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* Stats / credibility strip */
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.fact { padding: 2rem 1.5rem 0 0; }
.fact strong { display: block; font: 500 1.6rem/1.2 var(--serif); color: var(--ink); margin-bottom: 0.4rem; }
.fact span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 640px) { .facts { grid-template-columns: 1fr; } }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.card { background: var(--paper); padding: 2.4rem 2rem; }
.section-alt .card { background: #f4f1eb; }
.card-num { font: 500 0.85rem/1 var(--serif); color: var(--brass); letter-spacing: 0.1em; display: block; margin-bottom: 1.6rem; }
.card p { color: var(--muted); margin: 0; font-size: 0.98rem; }
@media (max-width: 960px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

/* Process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 1.5rem; counter-increment: step; }
.steps li::before { content: "0" counter(step); display: block; font: 500 0.85rem/1 var(--serif); color: var(--brass); letter-spacing: 0.1em; margin-bottom: 1rem; }
.steps h3 { color: #fff; }
.steps p { color: var(--on-ink-muted); font-size: 0.97rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Client list */
.clients { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 3rem; list-style: none; padding: 0; margin: 0; }
.clients li { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.clients strong { display: block; font: 500 1.15rem/1.3 var(--serif); color: var(--ink); margin-bottom: 0.25rem; }
.clients span { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 640px) { .clients { grid-template-columns: 1fr; } }

/* Service detail */
.service { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(1.5rem, 5vw, 5rem); padding: 3.5rem 0; border-top: 1px solid var(--line); }
.service:first-child { border-top: 0; padding-top: 0; }
.service ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 2rem; }
.service li { position: relative; padding-left: 1.2rem; color: var(--muted); font-size: 0.97rem; }
.service li::before { content: ""; position: absolute; left: 0; top: 0.7em; width: 6px; height: 1px; background: var(--brass); }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; } .service ul { grid-template-columns: 1fr; } }

/* CTA band */
.cta { text-align: center; }
.cta h2 { max-width: 20ch; margin-inline: auto; }
.cta p { color: var(--on-ink-muted); max-width: 560px; margin: 0 auto 2rem; }

/* Placeholder note (remove once real content is in) */
.todo { background: #fff6dd; border-left: 3px solid var(--brass); padding: 1rem 1.25rem; font-size: 0.92rem; color: #6b5420; }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: 1.25rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.45rem; color: var(--ink); }
label .opt { font-weight: 400; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.8rem 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(167, 129, 74, 0.18); }
textarea { min-height: 170px; resize: vertical; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { padding: 1rem 1.2rem; border-radius: var(--radius); font-size: 0.95rem; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #e7f0e6; color: #26472a; }
.form-status.err { background: #f7e4e1; color: #6e2a20; }
.form-note { font-size: 0.85rem; color: var(--muted); margin: 0; }

.contact-aside dl { margin: 0; }
.contact-aside dt { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin-top: 2rem; }
.contact-aside dt:first-child { margin-top: 0; }
.contact-aside dd { margin: 0.6rem 0 0; font-size: 1.05rem; }
.contact-aside a { text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-aside a:hover { border-color: var(--brass); }

/* Legal / prose ---------------------------------------------------------- */
.prose { max-width: 760px; }
.prose h2 { font-size: 1.55rem; margin-top: 2.6rem; }
.prose h3 { font-size: 1.15rem; margin-top: 1.8rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--brass-dark); }
.prose .meta { color: var(--muted); font-size: 0.95rem; }

/* Footer ----------------------------------------------------------------- */
.site-footer { background: #0e1925; color: var(--on-ink-muted); padding: 4rem 0 2rem; font-size: 0.93rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer .brand { color: #fff; }
.site-footer .brand-sub { color: var(--on-ink-muted); }
.site-footer h4 { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brass); margin: 0 0 1.2rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-tag { margin-top: 1.2rem; max-width: 34ch; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.75rem; font-size: 0.85rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

@media (max-width: 480px) {
  .site-header .brand-sub { display: none; }
}

/* Blog ------------------------------------------------------------------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem 2rem; }
@media (max-width: 960px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .post-grid { grid-template-columns: 1fr; } }
.post-card a { display: block; text-decoration: none; color: inherit; }
.post-card img, .post-card-blank { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border: 1px solid var(--line); margin-bottom: 1.25rem; }
.post-card-blank { background: var(--ink); background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 28px 28px; }
.post-card time { font: 600 0.72rem/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.post-card h2 { font-size: 1.45rem; margin: 0.7rem 0 0.6rem; transition: color 0.2s; }
.post-card a:hover h2 { color: var(--brass-dark); }
.post-card p { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.9rem; }
.post-more { font-size: 0.85rem; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--brass); }

.post-hero .eyebrow { text-decoration: none; }
.post-hero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
.post-meta { color: var(--on-ink-muted); margin: 0; }
.post-cover { width: 100%; max-height: 560px; object-fit: cover; margin: 0 0 2.5rem; border: 1px solid var(--line); }
.post-content { font-size: 1.08rem; max-width: none; }
.post-content h2 { font-size: 1.7rem; }
.post-content h3 { font-size: 1.3rem; }
.post-content img { margin: 2rem 0; border: 1px solid var(--line); height: auto; }
.post-content blockquote { margin: 2rem 0; padding: 0.25rem 0 0.25rem 1.5rem; border-left: 3px solid var(--brass); font: 500 1.3rem/1.5 var(--serif); color: var(--ink); }
.post-content pre { background: var(--stone); padding: 1rem 1.25rem; overflow-x: auto; font-size: 0.9rem; }
.post-content .ql-align-center { text-align: center; }
.post-content .ql-align-right { text-align: right; }
.post-content .ql-align-justify { text-align: justify; }
.post-content img.ql-align-center, .post-content .ql-align-center img { margin-inline: auto; }

/* Advertising landing page (/consultation) -------------------------------- */
.lp-header { position: absolute; inset: 0 0 auto 0; z-index: 10; background: transparent; backdrop-filter: none; border-bottom: 1px solid rgba(255, 255, 255, 0.14); }
.lp-header .brand { color: #fff; }
.lp-header .brand-sub { color: rgba(255, 255, 255, 0.7); }
.lp-header-cta { padding: 0.75rem 1.2rem; flex: none; }
@media (max-width: 640px) { .lp-header .brand-name { font-size: 1rem; } .lp-header .brand-sub { display: none; } .lp-header-cta { padding: 0.65rem 0.9rem; font-size: 0.8rem; } }

.lp-hero {
  position: relative; overflow: hidden; color: #fff; background: #1c232c;
  padding: calc(76px + clamp(2.5rem, 6vw, 4.5rem)) 0 clamp(3rem, 6vw, 5rem);
}
.lp-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 60%; }
.lp-hero::after {
  /* gray scrim: heavier behind the copy, lighter over the town */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(24, 28, 34, 0.82) 0%, rgba(24, 28, 34, 0.62) 45%, rgba(24, 28, 34, 0.38) 100%),
    linear-gradient(180deg, rgba(24, 28, 34, 0.55) 0%, rgba(24, 28, 34, 0) 30%);
}
.lp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.lp-hero h1 { color: #fff; font-size: clamp(2.4rem, 4.6vw, 4rem); line-height: 1.08; max-width: 16ch; text-wrap: balance; margin-bottom: 1.4rem; }
.lp-hero .lede { color: rgba(255, 255, 255, 0.88); max-width: 50ch; text-wrap: pretty; }
.lp-hero .eyebrow { color: #e0c08a; }
.lp-proof { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: clamp(1.25rem, 3vw, 2.75rem); margin: 2.5rem 0 1.75rem; padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.22); }
.lp-proof dt { font: 500 1.75rem/1.1 var(--serif); color: #fff; margin-bottom: 0.3rem; }
.lp-proof dd { margin: 0; font-size: 0.88rem; line-height: 1.4; color: rgba(255, 255, 255, 0.75); max-width: 20ch; }
.lp-hero .hero-actions { margin-top: 2rem; }
.lp-cta { padding: 1.1rem 1.8rem; font-size: 0.95rem; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35); }
.calendly-overlay { z-index: 1000 !important; }
.lp-text-link { color: #fff; font-size: 0.95rem; text-underline-offset: 4px; text-decoration-color: rgba(255, 255, 255, 0.45); }
.lp-text-link:hover { text-decoration-color: #fff; }

.lp-book { background: #fff; color: var(--text); border-radius: 6px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35); overflow: hidden; }
.lp-book-head { padding: 1.5rem 1.75rem 0.25rem; }
.lp-book-head h2 { font-size: 1.5rem; margin: 0 0 0.35rem; color: var(--ink); }
.lp-book-head p { margin: 0; font-size: 0.92rem; color: var(--muted); }
.lp-calendly { position: relative; min-height: 220px; display: grid; place-items: center; padding: 1.5rem; }
.lp-calendly.is-live { display: block; padding: 0; height: 520px; min-height: 0; }
.lp-calendly iframe { display: block; }

@media (max-width: 960px) {
  .lp-hero-grid { grid-template-columns: 1fr; }
  .lp-book { max-width: 560px; width: 100%; }
}
@media (max-width: 560px) {
  .lp-proof { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .lp-proof dt { font-size: 1.35rem; }
  .lp-proof dd { font-size: 0.8rem; }
  .lp-book-head { padding: 1.25rem 1.25rem 0; }
  .lp-calendly.is-live { height: 600px; }
  .lp-hero .hero-actions .btn { width: 100%; justify-content: center; }
}

.lp-list { list-style: none; padding: 0; margin: 1.75rem 0; display: grid; gap: 1rem; }
.lp-list li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.lp-list li::before { content: ""; position: absolute; left: 0; top: 0.75em; width: 8px; height: 1px; background: var(--brass); }
.lp-list strong { color: var(--ink); font-weight: 600; }
.lp-small { font-size: 0.95rem; color: var(--muted); }
.lp-footer { padding: 0 0 1.75rem; }
.lp-footer .footer-bottom { border-top: 0; }
.lp-credit { font-size: 0.75rem; opacity: 0.7; }
