/* scottrusnak.com
   Layout: fixed white header, dark hero, black credentials band, white client wall,
   light grey book + testimonials bands, charcoal footer. Mirrors the current site's
   structure and palette, rebuilt as clean static HTML. */

:root {
  --ink: #20292f;        /* hero background, headings on light */
  --black: #0d1114;      /* credentials band */
  --blue: #188bf6;       /* buttons and links */
  --blue-dark: #0f6fcb;  /* button hover */
  --mist: #f5f6f8;       /* book + testimonials bands */
  --card: #e9eef5;       /* credential cards */
  --text: #333b42;       /* body copy on light */
  --muted: #66707a;      /* captions, roles */
  --line: #dde3ea;
  --white: #ffffff;
  --footer: #2b3238;

  --font-head: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1170px;
  --radius: 12px;
  --header-h: 68px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
  text-wrap: balance;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  letter-spacing: 0.08em;
  color: var(--ink);
  text-decoration: none;
}
.nav { display: flex; gap: 28px; }
.nav a {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  padding-block: 6px;
  border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--blue); }
main { padding-top: var(--header-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--white);
  background: var(--blue);
  padding: 17px 48px;
  border-radius: 50px;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../images/hero-bg.png") center / cover no-repeat;
  opacity: 0.3;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 40px;
  padding-top: 64px;
}
.hero-copy { padding-bottom: 72px; min-width: 0; }
.hero h1 { font-size: clamp(32px, 4.6vw, 48px); margin-bottom: 24px; }
.hero p { font-size: 18px; max-width: 34em; margin: 0 0 16px; color: #e4e9ee; }
.hero .btn { margin-top: 16px; }
.hero-photo { display: flex; justify-content: center; align-self: end; }
.hero-photo img { max-height: 560px; width: auto; }

/* ---------- Credentials (black band) ---------- */
.creds { background: var(--black); color: var(--white); padding-block: 80px; }
.creds-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
.creds-grid > * { min-width: 0; }
.creds h2 { font-size: clamp(28px, 3.4vw, 39px); margin-bottom: 18px; }
.creds-lede { font-size: 17px; color: #d5dbe1; max-width: 36em; margin: 0 0 28px; }
.creds-badge { width: 110px; border-radius: 4px; }
.creds-photo img { border-radius: var(--radius); width: 100%; }

.cred-list {
  list-style: none;
  margin: 56px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}
.cred-list li {
  background: var(--card);
  color: var(--ink);
  border-radius: var(--radius);
  padding: 20px 18px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.4;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.cred-list svg { flex: none; width: 18px; height: 18px; margin-top: 2px; color: var(--blue); }

/* ---------- Clients ---------- */
.clients { padding-block: 72px; text-align: center; }
.section-title { font-size: clamp(28px, 3.4vw, 39px); color: var(--ink); margin-bottom: 40px; }
.logo-wall {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px 40px;
  align-items: center;
  justify-items: center;
}
.logo-wall img {
  max-height: 72px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.8;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-wall img:hover { filter: none; opacity: 1; }

/* ---------- Book ---------- */
.book { background: var(--mist); padding-block: 72px; }
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.book-grid > * { min-width: 0; }
.book-photo img { border-radius: var(--radius); width: 100%; }
.book-info { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.book-eyebrow {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.book-info h2 { font-size: clamp(24px, 2.8vw, 32px); color: var(--ink); }
.book-cover { max-width: 280px; box-shadow: 0 18px 40px rgba(32, 41, 47, 0.22); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--mist); padding-block: 8px 100px; text-align: center; }
.quote-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  max-width: 980px;
  margin: 0 auto;
  gap: 24px;
  text-align: left;
}
.quote {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.quote blockquote { margin: 0; font-size: 17px; color: var(--text); }
.quote figcaption { margin-top: auto; font-size: 15px; line-height: 1.45; }
.quote cite { display: block; font-style: normal; font-weight: 700; color: var(--ink); }
.quote span { display: block; color: var(--muted); }

/* ---------- About page ---------- */
.page-title { background: var(--ink); color: var(--white); padding-block: 64px 56px; }
.page-title h1 { font-size: clamp(34px, 4.6vw, 48px); }
.story { padding-block: 72px; }
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.story-row + .story-row { margin-top: 72px; }
.story-row > * { min-width: 0; }
.story-row:nth-child(even) .story-media { order: -1; }
.story-text p { margin: 0 0 16px; max-width: 34em; }
.story-text p:first-child { font-size: 19px; color: var(--ink); }
.story-media img { border-radius: var(--radius); width: 100%; }

.cta-band { background: var(--ink); color: var(--white); padding-block: 64px; text-align: center; }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 24px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--footer); color: #b9c2ca; padding-block: 28px; font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #e4e9ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 20px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .cred-list { grid-template-columns: repeat(2, 1fr); }
  .logo-wall { grid-template-columns: repeat(3, 1fr); }
  .quote-grid { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { gap: 20px; }
  .hero .wrap, .creds-grid, .book-grid, .story-row { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 44px; gap: 8px; }
  .hero-copy { padding-bottom: 8px; }
  .hero-photo img { max-height: 380px; }
  .creds { padding-block: 56px; }
  .creds-photo { max-width: 320px; margin: 0 auto; }
  .creds-photo img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; }
  .story-row:nth-child(even) .story-media { order: 0; }
  .logo-wall { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .logo-wall img { max-height: 56px; }
}
@media (max-width: 420px) {
  .cred-list { grid-template-columns: 1fr; }
  .btn { padding: 16px 32px; }
}
