/* McBrayer Consulting, Inc. — Phase 1 static site
   Palette draws from the current Wix theme (black + #97C0E8)
   with stronger contrast and type sized for comfortable reading. */

:root {
  --ink: #161616;
  --ink-soft: #3a3a3a;
  --paper: #f5f2ec;
  --paper-2: #ffffff;
  --black: #111111;
  --black-2: #1c1c1c;
  --accent: #97c0e8;
  --accent-deep: #1b4f7c;
  --accent-hover: #143a5b;
  --line: #ddd8d0;
  --line-dark: #2a2a2a;
  --focus: #1b4f7c;
  --danger: #8a1f1f;
  --max: 72rem;
  --wide: 80rem;
  --radius: 0.4rem;
  --shadow: 0 10px 30px rgba(17, 17, 17, 0.08);
  --font-sans: "Source Sans 3", "Segoe UI", Calibri, Arial, sans-serif;
  --font-display: "Oswald", "Arial Narrow", "Segoe UI", sans-serif;
  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --space: clamp(1.25rem, 4vw, 2.5rem);
}

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

html {
  font-size: 112.5%; /* 18px */
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }
video { background: #000; }

a {
  color: var(--accent-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover { color: var(--accent-hover); }

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

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.skip-link:focus {
  position: absolute;
  z-index: 1000;
  top: 0.5rem; left: 0.5rem;
  background: var(--paper-2);
  color: var(--ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
}

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}
.wrap-wide {
  width: min(100% - 2 * var(--space), var(--wide));
  margin-inline: auto;
}

/* ----- Header ----- */
.utility {
  background: var(--black);
  color: #f2f2f2;
  font-size: 0.95rem;
}
.utility .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem 1.25rem;
  padding: 0.4rem 0;
}
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { color: var(--accent); }
.utility-contact { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; }
.utility-social { display: flex; align-items: center; gap: 0.85rem; }
.utility-social a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 44px;
}
.icon-linkedin {
  width: 1.15rem; height: 1.15rem;
  flex-shrink: 0;
}

.site-header {
  background: var(--black);
  color: #fff;
  border-top: 1px solid var(--line-dark);
  position: sticky;
  top: 0;
  z-index: 200;
}
.site-header .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  text-decoration: none;
  min-width: 0;
}
.brand:hover { color: var(--accent); }
.brand img {
  width: 3.6rem;
  height: auto;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.95rem;
}
.brand-tag {
  font-size: 0.78rem;
  color: #cfd0d0;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.nav-toggle { display: none; }
.nav-toggle-label {
  display: none;
  cursor: pointer;
  width: 2.75rem; height: 2.75rem;
  align-items: center; justify-content: center;
  border: 1px solid #555;
  border-radius: var(--radius);
}
.nav-toggle-label span,
.nav-toggle-label span::before,
.nav-toggle-label span::after {
  display: block;
  width: 1.2rem; height: 2px;
  background: #fff;
  position: relative;
  content: "";
}
.nav-toggle-label span::before { position: absolute; top: -6px; }
.nav-toggle-label span::after { position: absolute; top: 6px; }

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 0.1rem;
}
.nav ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.1rem;
}
.nav > ul > li { position: relative; }
.nav a, .nav summary {
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.nav a:hover, .nav summary:hover,
.nav a[aria-current="page"] { color: var(--accent); }

/* Services dropdown: open on hover and keyboard focus (no JS) */
.nav .has-sub { position: relative; }
.nav .has-sub > a { padding-right: 1.35rem; }
.nav .has-sub > a::after {
  content: "";
  width: 0; height: 0;
  border-inline: 4px solid transparent;
  border-top: 5px solid currentColor;
  margin-left: 0.4rem;
}
.subnav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 18rem;
  background: var(--black-2);
  border: 1px solid var(--line-dark);
  padding: 0.4rem 0;
  box-shadow: var(--shadow);
  z-index: 250;
}
.subnav a {
  display: flex;
  width: 100%;
  padding: 0.65rem 1rem;
  color: #fff;
  white-space: normal;
}
.nav .has-sub:hover > .subnav,
.nav .has-sub:focus-within > .subnav { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.5rem 1.15rem;
  background: var(--accent);
  color: var(--black);
  font-weight: 700;
  text-decoration: none;
  border: 2px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
}
.btn:hover { background: #b4d4f1; color: var(--black); border-color: #b4d4f1; }
.btn-dark {
  background: var(--black);
  color: #fff;
  border-color: var(--black);
}
.btn-dark:hover { background: #333; color: #fff; border-color: #333; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: #fff;
}
.btn-ghost:hover { background: #fff; color: var(--black); }
.header-cta { margin-left: 0.35rem; flex-shrink: 0; }

/* ----- Hero & sections ----- */
.hero {
  background: var(--black);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  min-height: 32rem;
}
.hero-photo {
  min-height: 22rem;
  background: #222 center/cover no-repeat;
}
.hero-copy {
  padding: clamp(2rem, 5vw, 3.75rem) var(--space);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40rem;
}
.eyebrow {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.hero h1, h1 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
  font-size: clamp(1.85rem, 4.4vw, 3.1rem);
  margin: 0 0 1rem;
}
.hero h1 { color: var(--accent); }
.hero a { color: var(--accent); }
.hero a:hover { color: #ffffff; }
.lede {
  font-size: 1.12rem;
  color: #e8e8e8;
  margin: 0 0 1rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

.section { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-header { margin-bottom: 1.75rem; max-width: 42rem; }
.section h2, h2 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
  line-height: 1.2;
  margin: 0 0 0.7rem;
}
h3 {
  font-family: var(--font-display);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
}
.section p { margin: 0 0 1rem; }
.section p:last-child { margin-bottom: 0; }

.band-accent { background: var(--accent); color: var(--ink); }
.band-accent a { color: var(--accent-hover); }
.band-dark { background: var(--black); color: #f3f3f3; }
.band-dark a { color: var(--accent); }
.band-dark a:hover { color: #fff; }
.band-paper { background: var(--paper-2); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  align-items: stretch;
}
.split-copy { padding: clamp(1.75rem, 4vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.split-photo { min-height: 18rem; background: #ddd center/cover no-repeat; }
.split-copy p:last-of-type { margin-bottom: 1.1rem; }

.quote-block {
  max-width: 42rem;
  margin: 0 auto;
  text-align: center;
}
.quote-block blockquote {
  margin: 0;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  line-height: 1.45;
  color: var(--ink);
}
.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-family: var(--font-sans);
  font-style: normal;
  font-size: 1rem;
  color: var(--ink-soft);
}

/* Cards */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.card-grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  height: 100%;
}
.card h3 { color: var(--accent-deep); }
.card p { margin: 0; color: var(--ink-soft); }
.card .more { margin-top: auto; padding-top: 0.9rem; font-weight: 700; text-decoration: none; }
.card .more:hover { text-decoration: underline; }

.service-list {
  display: grid;
  gap: 1.15rem;
}
.service {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem 1.5rem;
  scroll-margin-top: 6rem;
}
.service h2 { color: var(--accent-deep); font-size: 1.35rem; margin-bottom: 0.25rem; }
.service .sub { font-weight: 600; color: var(--ink); margin-bottom: 0.65rem; }
.service ul { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.service li { margin: 0.2rem 0; }

.page-hero {
  background: var(--black) center/cover no-repeat;
  color: #fff;
  position: relative;
}
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.78) 20%, rgba(0,0,0,0.45));
}
.page-hero .wrap { position: relative; padding: clamp(3.5rem, 8vw, 6rem) 0; max-width: 48rem; }
.page-hero h1 { color: var(--accent); }
.page-hero .lede { max-width: 40rem; }

/* Blog */
.post-list { display: grid; gap: 1.15rem; }
.post-teaser {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.post-teaser h2, .post-teaser h3 { text-transform: none; letter-spacing: 0; font-family: var(--font-serif); font-weight: 500; }
.post-meta { color: var(--ink-soft); font-size: 0.95rem; margin: 0 0 0.4rem; }
.article {
  max-width: 42rem;
  margin: 0 auto;
}
.article h1 { text-transform: none; letter-spacing: 0; font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.9rem, 4vw, 2.6rem); }
.article .body p { margin: 0 0 1.1rem; }
.article .body blockquote {
  margin: 0 0 1.1rem;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 3px solid var(--accent);
  font-family: var(--font-serif);
  font-style: italic;
}
.vision-list { margin: 0 0 1.1rem; padding-left: 1.2rem; }
.related { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* Contact form */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}
.contact-details p { margin: 0 0 0.55rem; }
.contact-details a { font-weight: 600; }
form.contact-form {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.6rem;
  display: grid;
  gap: 0.9rem;
}
.contact-form label { display: grid; gap: 0.3rem; font-weight: 600; }
.contact-form .optional { font-weight: 400; color: var(--ink-soft); }
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: 0.65rem 0.7rem;
  border: 1px solid #b9b3a9;
  border-radius: 0.3rem;
  background: #fff;
  color: var(--ink);
  width: 100%;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid var(--accent);
  outline-offset: 0;
  border-color: var(--accent-deep);
}
.form-note { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.placeholder {
  border: 1px dashed #b9b3a9;
  background: #efece6;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  color: var(--ink-soft);
}
.placeholder strong { color: var(--ink); }

.video-frame { max-width: 56rem; margin: 0 auto; }
.video-frame video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--radius);
}
.video-meta { margin-top: 1rem; max-width: 56rem; margin-inline: auto; }

/* Footer */
.site-footer {
  background: var(--black);
  color: #d8d8d8;
  padding: 2.5rem 0 1.5rem;
  font-size: 0.98rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-brand .brand { margin-bottom: 0.7rem; }
.footer-col h2 {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.3rem 0; }
.footer-col a { display: inline-flex; min-height: 2.4rem; align-items: center; }
.copyright {
  border-top: 1px solid var(--line-dark);
  padding-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  color: #bdbdbd;
  font-size: 0.9rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }

/* Thanks */
.thanks { max-width: 36rem; margin: 0 auto; text-align: center; padding: 2rem 0; }

/* Responsive */
@media (max-width: 860px) {
  .hero-grid, .split, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-grid, .card-grid-2 { grid-template-columns: 1fr; }
  .split-photo { min-height: 16rem; }
  .hero-photo { min-height: 16rem; order: -1; }
  .brand-tag { display: none; }

  .nav-toggle-label { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    background: var(--black-2);
    border-top: 1px solid var(--line-dark);
    padding: 0.5rem var(--space) 1rem;
    flex-direction: column;
    align-items: stretch;
  }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav summary { min-height: 2.85rem; }
  .subnav {
    position: static;
    display: block;
    border: 0;
    box-shadow: none;
    padding-left: 0.6rem;
  }
  .header-cta { display: none; } /* Get In Touch remains in the toggle menu */
  .nav .btn { margin: 0.4rem 0 0; width: 100%; }
  #nav-toggle:checked ~ .nav { display: flex; }
  .site-header { position: sticky; }
  .site-header .bar { position: relative; }
}

@media (min-width: 861px) {
  .nav .mobile-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Beat section link color rules so button labels stay visible */
a.btn { color: var(--black); }
a.btn:hover { color: var(--black); }
a.btn-dark, a.btn-dark:hover { color: #fff; }
a.btn-ghost { color: #fff; }
a.btn-ghost:hover { color: var(--black); }

.contact-form,
.contact-form label { color: var(--ink); }
.contact-form .form-note { color: var(--ink-soft); }
.contact-form .form-note a { color: var(--accent-deep); }

.contact-form .optional { font-weight: 400; white-space: nowrap; }


/* About page + home teaser */
.about-page { max-width: 48rem; }
.about-page h2 { margin-top: 2rem; }
.about-intro {
  display: grid;
  grid-template-columns: 12.5rem 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 0.5rem;
}
.headshot { display: block; max-width: 16rem; }
.about-intro .headshot { width: 12.5rem; }
.headshot img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 50%;
  background: #ddd;
  box-shadow: var(--shadow);
}
.about-bio p { margin: 0 0 1rem; }
.about-bio p:last-child { margin-bottom: 0; }
.experience-list {
  margin: 0 0 0.25rem;
  padding-left: 1.2rem;
}
.experience-list li { margin: 0.7rem 0; }
.credentials-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 1.5rem;
  margin: 0 0 1.5rem;
  padding-left: 1.2rem;
}
.credentials-list li { margin: 0.15rem 0; }
.ai-note {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: var(--paper-2);
}
.about-teaser {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.5rem 1.75rem;
  align-items: center;
}
.about-teaser .section-header { margin-bottom: 0.7rem; }
.headshot-sm { max-width: 8.5rem; width: 8.5rem; }

@media (max-width: 860px) {
  .about-intro,
  .about-teaser { grid-template-columns: 1fr; justify-items: start; }
  .about-intro .headshot { width: 10rem; }
  .credentials-list { grid-template-columns: 1fr; }
}


/* Back link on child pages — large tap target for easy reading */
.back-nav {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.back-nav .wrap {
  display: flex;
  align-items: center;
  min-height: 3.35rem;
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.4rem 0.2rem;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.3;
  color: var(--accent-deep);
  text-decoration: none;
}
.back-link:hover,
.back-link:focus-visible {
  color: var(--accent-hover);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
