/*
Theme Name: James Brown Consulting
Theme URI: https://jamesbrownconsulting.com
Author: James A. Brown
Author URI: https://jamesbrownconsulting.com
Description: One-page responsive theme for James Brown Consulting. Hero, services, how-we-work, experience, and a booking-first contact section. Booking link and email are editable from the Customizer.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jbc
*/

:root {
  --bg: #f6f7f4;
  --ink: #17202a;
  --muted: #5b6670;
  --accent: #245d5a;
  --accent-dark: #173d3b;
  --accent-soft: #dfecea;
  --card: #ffffff;
  --line: #d8ded8;
  --max: 1120px;
  --radius: 20px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-offset: 76px;
}

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

html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  overflow-x: hidden;
  overflow-x: clip;
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-width: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
header,
main,
section,
footer,
nav,
div,
article {
  min-width: 0;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible,
.nav-cta:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.cta a:focus-visible {
  outline-color: #91d5cf;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 247, 244, 0.96);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.nav {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 0.75rem var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  min-width: 0;
  max-width: 62vw;
  color: var(--ink);
  text-decoration: none;
  font-size: clamp(0.92rem, 3.8vw, 1rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  overflow-wrap: normal;
}

.nav-links {
  display: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.93rem;
  font-weight: 700;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  max-width: 38vw;
  padding: 0.62rem 0.82rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.email-short {
  display: none;
}

main {
  width: 100%;
  overflow: clip;
}

.hero,
.section {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.hero {
  padding-block: clamp(2.5rem, 8vw, 5.25rem);
}

.hero-inner {
  max-width: 920px;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: clamp(0.72rem, 2.6vw, 0.82rem);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

h1 {
  margin: 0;
  max-width: 960px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.28rem, 8.2vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.052em;
}

.hero-subhead {
  margin: 0.85rem 0 0;
  color: var(--accent);
  font-size: clamp(1.18rem, 3.6vw, 1.55rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.hero p {
  max-width: 720px;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.75vw, 1.18rem);
  line-height: 1.55;
}

.hero-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  max-width: 100%;
  margin-top: 1.35rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 800;
  line-height: 1.1;
  white-space: normal;
}

.button:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.secondary {
  background: transparent;
  color: var(--accent);
}

.button.secondary:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.section {
  padding-block: clamp(2.7rem, 7vw, 4.8rem);
}

.section-header {
  max-width: 760px;
  margin-bottom: 1.25rem;
}

.section-header h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6.8vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.044em;
}

.section-header p {
  max-width: 700px;
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.08rem);
  line-height: 1.55;
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.service-card {
  min-width: 0;
  min-height: 0;
  padding: clamp(1rem, 3vw, 1.25rem);
  border: 1px solid var(--line);
  border-top: 5px solid var(--accent);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: 0 14px 36px rgba(23, 32, 42, 0.06);
}

.service-card h3 {
  margin: 0;
  font-size: clamp(1.05rem, 3.5vw, 1.18rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.service-card p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.experience-copy {
  max-width: 820px;
  color: var(--muted);
  font-size: clamp(1rem, 2.4vw, 1.08rem);
  line-height: 1.6;
}

.experience-copy p {
  margin: 0;
}

.cta {
  padding: clamp(3rem, 8vw, 4.75rem) var(--gutter);
  background: var(--ink);
  color: #fff;
  text-align: left;
}

.cta-inner {
  max-width: 760px;
  margin-inline: auto;
}

.cta .eyebrow {
  color: #91d5cf;
}

.cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.05rem, 7.5vw, 3.85rem);
  line-height: 1.02;
  letter-spacing: -0.052em;
}

.cta p {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2.6vw, 1.12rem);
  line-height: 1.55;
}

.cta .button {
  border-color: #fff;
  background: #fff;
  color: var(--ink);
}

.cta .button:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.cta .button.secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.cta .button.secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.site-footer {
  width: min(100%, var(--max));
  margin-inline: auto;
  padding: 1.2rem var(--gutter);
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer a {
  text-decoration: none;
  overflow-wrap: anywhere;
}

/* Generic WordPress content fallback (page.php / single.php / 404.php) */
.wp-generic-content {
  padding-block: clamp(2.7rem, 7vw, 4.8rem);
}

.wp-generic-content h1 {
  margin-bottom: 1rem;
}

.wp-generic-content img {
  border-radius: var(--radius);
  margin-block: 1rem;
}

.wp-generic-content .entry-content > * + * {
  margin-top: 1rem;
}

@media (max-width: 339px) {
  .brand {
    max-width: 55vw;
    font-size: 0.88rem;
  }

  .email-full {
    display: none;
  }

  .email-short {
    display: inline;
  }

  .nav-cta {
    max-width: 42vw;
    padding-inline: 0.78rem;
  }

  h1 {
    font-size: 2.08rem;
  }

  .section-header h2,
  .cta h2 {
    font-size: 1.9rem;
  }
}

@media (min-width: 500px) {
  .hero-actions {
    width: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
  }

  .button {
    width: auto;
    min-width: 170px;
  }

  .cta {
    text-align: center;
  }

  .cta p {
    margin-inline: auto;
  }

  .cta .hero-actions {
    justify-content: center;
  }
}

@media (min-width: 700px) {
  .nav {
    min-height: 68px;
  }

  .hero {
    padding-block: clamp(3.5rem, 8vw, 5.25rem);
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card:nth-child(3) {
    grid-column: 1 / -1;
  }

  .site-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.45rem 1rem;
  }
}

@media (min-width: 860px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin-left: auto;
  }

  .brand {
    max-width: none;
    white-space: nowrap;
  }
}

@media (min-width: 1000px) {
  .services-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .service-card:nth-child(3) {
    grid-column: auto;
  }
}
