/*
Theme Name: Rapid Results — Next Chapter
Theme URI: https://rapidresults-consulting.com
Author: OpenAI for Rapid Results Consulting
Description: A lightweight, accessible one-page WordPress theme for Rapid Results Consulting's community-centered next chapter.
Version: 1.3.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: rapid-results-next
*/

:root {
  --rr-navy: #294f67;
  --rr-navy-deep: #18394d;
  --rr-blue: #39749a;
  --rr-slate: #6a8291;
  --rr-blue-soft: #e4edf2;
  --rr-sand: #f3eee7;
  --rr-cream: #fbfaf7;
  --rr-coral: #a85b43;
  --rr-ink: #283840;
  --rr-muted: #60717a;
  --rr-white: #ffffff;
  --rr-line: rgba(41, 79, 103, 0.15);
  --rr-shadow: 0 18px 50px rgba(24, 57, 77, 0.10);
  --rr-radius: 22px;
  --rr-max: 1160px;
}

* { box-sizing: border-box; }
html {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  overflow-x: clip;
  color: var(--rr-ink);
  background: var(--rr-cream);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.admin-bar .site-header { top: 32px; }
main, section, header, footer { max-width: 100%; }
img { max-width: 100%; height: auto; }
a { color: var(--rr-blue); }
a:hover { color: var(--rr-navy); }
button, input, textarea { font: inherit; }

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.screen-reader-text:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 8px;
  padding: 12px 16px;
  background: var(--rr-white);
  color: var(--rr-navy);
  z-index: 100000;
}

.rr-wrap {
  width: calc(100% - 40px);
  max-width: var(--rr-max);
  margin-inline: auto;
}
.rr-kicker {
  margin: 0 0 12px;
  color: var(--rr-coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3 {
  max-width: 100%;
  margin-top: 0;
  overflow-wrap: break-word;
  color: var(--rr-navy-deep);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.55rem, 5.6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
p { margin-top: 0; }
.hero-copy,
.hero-lede,
.hero-lede p {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.hero-lede p,
.intro-strip p,
.service-card p,
.audience p,
.eyes-up p,
.about-copy p,
.contact p {
  overflow-wrap: anywhere;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: rgba(251, 250, 247, 0.97);
  border-bottom: 1px solid var(--rr-line);
  backdrop-filter: blur(10px);
}
.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding {
  min-width: 0;
  display: flex;
  align-items: center;
}
.custom-logo-link {
  display: inline-flex;
  max-width: min(520px, calc(100vw - 210px));
}
.custom-logo {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 70px;
  object-fit: contain;
}
.brand-text {
  min-width: 0;
  color: var(--rr-navy-deep);
  text-decoration: none;
}
.brand-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}
.brand-note {
  display: block;
  margin-top: 4px;
  color: var(--rr-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.header-contact {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 17px;
  border: 1px solid var(--rr-navy);
  border-radius: 999px;
  color: var(--rr-navy-deep);
  background: transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 800;
  white-space: nowrap;
}
.header-contact:hover,
.header-contact:focus {
  color: var(--rr-white);
  background: var(--rr-navy);
}

.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: clamp(76px, 10vw, 132px) 0 clamp(80px, 10vw, 126px);
  background: linear-gradient(135deg, var(--rr-cream) 0%, #edf3f5 100%);
}
.hero::before {
  content: "";
  position: absolute;
  top: 48px;
  right: 0;
  width: 270px;
  height: 118px;
  opacity: 0.28;
  background:
    linear-gradient(var(--rr-blue), var(--rr-blue)) right 0 top 0 / 230px 4px no-repeat,
    linear-gradient(var(--rr-slate), var(--rr-slate)) right 0 top 38px / 180px 4px no-repeat,
    linear-gradient(var(--rr-blue), var(--rr-blue)) right 0 top 76px / 128px 4px no-repeat;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  align-items: center;
  gap: clamp(42px, 7vw, 88px);
}
.hero-grid > *,
.audience-grid > *,
.eyes-grid > *,
.about-grid > *,
.contact-grid > * { min-width: 0; }
.hero h1 {
  width: 100%;
  max-width: 820px;
  margin-bottom: 22px;
  white-space: normal;
}
.hero-title-line {
  display: block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}
.hero-lede {
  max-width: 720px;
  color: #42545e;
  font-size: clamp(1.08rem, 2vw, 1.32rem);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.rr-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 22px;
  border: 2px solid var(--rr-navy);
  border-radius: 999px;
  background: var(--rr-navy);
  color: var(--rr-white);
  text-align: center;
  text-decoration: none;
  font-weight: 800;
}
.rr-button:hover,
.rr-button:focus {
  border-color: var(--rr-blue);
  background: var(--rr-blue);
  color: var(--rr-white);
}
.rr-button--secondary { background: transparent; color: var(--rr-navy); }
.rr-button--secondary:hover,
.rr-button--secondary:focus {
  border-color: var(--rr-navy);
  background: var(--rr-white);
  color: var(--rr-navy);
}
.hero-card {
  position: relative;
  max-width: 100%;
  padding: 34px;
  border: 1px solid rgba(57, 116, 154, 0.18);
  border-radius: var(--rr-radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--rr-shadow);
}
.hero-card::before {
  content: "“";
  position: absolute;
  top: 6px;
  right: 24px;
  color: rgba(57, 116, 154, 0.17);
  font-family: Georgia, serif;
  font-size: 7rem;
  line-height: 1;
}
.hero-card p {
  position: relative;
  margin: 0;
  color: var(--rr-navy);
  font-family: Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.45;
}

section { scroll-margin-top: 104px; }
.section { padding: clamp(76px, 9vw, 118px) 0; }
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head p:last-child { color: var(--rr-muted); font-size: 1.1rem; }
.intro-strip { padding: 36px 0; background: var(--rr-navy); color: var(--rr-white); }
.intro-strip .rr-wrap {
  display: grid;
  grid-template-columns: 0.35fr 1.65fr;
  gap: 34px;
  align-items: start;
}
.intro-strip h2 { margin: 0; color: var(--rr-white); font-size: clamp(1.7rem, 3vw, 2.6rem); }
.intro-strip p { margin: 0; color: rgba(255, 255, 255, 0.86); font-size: 1.05rem; }

.services { background: var(--rr-white); }
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.service-card {
  min-width: 0;
  min-height: 100%;
  padding: 34px 30px;
  border: 1px solid var(--rr-line);
  border-radius: var(--rr-radius);
  background: var(--rr-cream);
  box-shadow: 0 12px 28px rgba(24, 57, 77, 0.05);
}
.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--rr-blue-soft);
  color: var(--rr-blue);
  font-size: 0.85rem;
  font-weight: 900;
}
.service-card p { margin-bottom: 0; color: var(--rr-muted); }

.audience { background: var(--rr-sand); }
.audience-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 7vw, 90px);
  align-items: center;
}
.audience-panel {
  padding: 36px;
  border-radius: var(--rr-radius);
  background: var(--rr-white);
  box-shadow: var(--rr-shadow);
}
.audience-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.audience-list li {
  position: relative;
  padding: 18px 10px 18px 44px;
  border-bottom: 1px solid var(--rr-line);
  font-weight: 700;
}
.audience-list li:last-child { border-bottom: 0; }
.audience-list li::before {
  content: "✓";
  position: absolute;
  left: 8px;
  top: 18px;
  color: var(--rr-blue);
  font-weight: 900;
}

.eyes-up { background: var(--rr-blue); color: var(--rr-white); }
.eyes-grid {
  display: block;
}
.eyes-content {
  max-width: 840px;
}
.eyes-up h2,
.eyes-up h3 { color: var(--rr-white); }
.eyes-up .rr-kicker { color: #f4c9ba; }
.eyes-up p { color: rgba(255, 255, 255, 0.9); }

.about { background: var(--rr-white); }
.about-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.55fr) minmax(0, 1.45fr);
  gap: clamp(42px, 8vw, 94px);
  align-items: start;
}
.about-quote {
  position: relative;
  width: 100%;
  max-width: 390px;
  margin: 0;
  padding: 30px 30px 28px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--rr-navy-deep);
  box-shadow: 0 14px 34px rgba(24, 57, 77, 0.15);
}
.about-quote::before {
  content: "“";
  position: absolute;
  top: -8px;
  right: 18px;
  color: rgba(255, 255, 255, 0.12);
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
}
.about-quote p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--rr-white);
  font-family: Georgia, serif;
  font-size: clamp(1.22rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
}
.about-copy p { color: var(--rr-muted); }
.credentials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}
.credential {
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(57, 116, 154, 0.15);
  border-radius: 14px;
  background: var(--rr-blue-soft);
  color: var(--rr-navy-deep);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.contact { background: var(--rr-navy-deep); color: var(--rr-white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(44px, 8vw, 100px);
  align-items: center;
}
.contact h2 { color: var(--rr-white); }
.contact p { color: rgba(255, 255, 255, 0.82); }
.contact-card {
  min-width: 0;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--rr-radius);
  background: rgba(255, 255, 255, 0.07);
}
.contact-line { margin-bottom: 20px; }
.contact-line:last-child { margin-bottom: 0; }
.contact-label {
  display: block;
  margin-bottom: 4px;
  color: #bdd1dc;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.contact-card a {
  display: inline-block;
  max-width: 100%;
  color: var(--rr-white);
  font-size: 1.15rem;
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  overflow-wrap: anywhere;
}

.site-footer {
  width: 100%;
  padding: 26px 0;
  background: #0c2635;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
}
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }
.footer-inner span { min-width: 0; overflow-wrap: break-word; }
.footer-inner a { color: rgba(255, 255, 255, 0.84); }

.page-content { padding: 80px 0; }
.page-content article { max-width: 850px; }

@media (max-width: 1000px) {
  .hero-grid,
  .audience-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-card { max-width: 650px; }
  .card-grid { grid-template-columns: 1fr; }
  .intro-strip .rr-wrap { grid-template-columns: 1fr; gap: 10px; }
  .about-quote { max-width: 520px; }
  .credentials { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 17px; }
  body.admin-bar .site-header { top: 46px; }
  .rr-wrap { width: calc(100% - 30px); }
  .header-inner { min-height: 76px; gap: 12px; }
  .custom-logo-link { max-width: calc(100vw - 145px); }
  .custom-logo { max-height: 56px; }
  .brand-note { display: none; }
  .header-contact { min-height: 40px; padding: 8px 13px; font-size: 0.82rem; }
  .hero { padding-top: 58px; }
  .hero::before { display: none; }
  .hero-grid {
    width: 100%;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
  }
  .hero-copy { width: 100%; max-width: 100%; min-width: 0; }
  .hero h1 { max-width: 100%; font-size: clamp(2.15rem, 9.2vw, 3.25rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .rr-button { width: 100%; }
  .hero-card,
  .audience-panel,
  .contact-card { padding: 25px; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 430px) {
  .rr-wrap { width: calc(100% - 24px); }
  h1 { font-size: clamp(2rem, 9.5vw, 2.55rem); }
  h2 { font-size: clamp(1.85rem, 9vw, 2.55rem); }
  .header-inner { min-height: 70px; }
  .custom-logo-link { max-width: calc(100vw - 126px); }
  .custom-logo { max-height: 50px; }
  .header-contact { padding-inline: 11px; }
  .section { padding: 68px 0; }
  .hero-card p { font-size: 1.18rem; }
  .service-card { padding: 28px 24px; }
  .about-quote { padding: 26px 24px; }
  .credential { font-size: 0.8rem; }
}

@media (max-width: 360px) {
  .rr-wrap { width: calc(100% - 20px); }
  .header-inner { gap: 8px; }
  .custom-logo-link { max-width: calc(100vw - 118px); }
  .header-contact { padding: 7px 9px; font-size: 0.78rem; }
  .hero h1 { font-size: 2rem; }
  .hero-card,
  .audience-panel,
  .contact-card { padding: 22px 20px; }
}

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