/*
Theme Name: Cameron Performance
Theme URI: https://example.com/
Author: Cameron Banks
Description: A lightweight custom WordPress theme for a performance-health, SoftWave, education, and personal brand website.
Version: 0.1.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: cameron-performance
License: GNU General Public License v2 or later
*/

:root {
  --cp-navy: #10233f;
  --cp-blue: #1f63e9;
  --cp-sky: #eaf2ff;
  --cp-ink: #172033;
  --cp-muted: #5f6b7a;
  --cp-line: #dfe5ec;
  --cp-surface: #f7f9fc;
  --cp-white: #ffffff;
  --cp-radius: 22px;
  --cp-shadow: 0 18px 50px rgba(16, 35, 63, 0.12);
  --cp-max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--cp-ink);
  background: var(--cp-white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--cp-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea, select { font: inherit; }

.cp-container {
  width: min(calc(100% - 40px), var(--cp-max));
  margin-inline: auto;
}
.cp-section { padding: 88px 0; }
.cp-section--soft { background: var(--cp-surface); }
.cp-section--dark { background: var(--cp-navy); color: var(--cp-white); }
.cp-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--cp-blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.cp-heading {
  margin: 0 0 18px;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.cp-heading--small { font-size: clamp(1.8rem, 3vw, 2.8rem); }
.cp-lead {
  margin: 0;
  max-width: 720px;
  color: var(--cp-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}
.cp-section--dark .cp-lead { color: rgba(255,255,255,.76); }

.cp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 22px;
  border: 2px solid var(--cp-blue);
  border-radius: 999px;
  background: var(--cp-blue);
  color: var(--cp-white);
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 99, 233, .24);
  text-decoration: none;
}
.cp-button--secondary {
  background: transparent;
  color: var(--cp-navy);
  border-color: var(--cp-line);
}
.cp-button--secondary:hover { border-color: var(--cp-blue); }
.cp-section--dark .cp-button--secondary { color: var(--cp-white); border-color: rgba(255,255,255,.3); }

.cp-topbar {
  padding: 8px 0;
  background: var(--cp-navy);
  color: var(--cp-white);
  font-size: .86rem;
  text-align: center;
}
.cp-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid rgba(223,229,236,.8);
  backdrop-filter: blur(14px);
}
.cp-header__inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cp-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cp-navy);
  font-weight: 900;
  letter-spacing: -.03em;
}
.cp-brand__mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--cp-blue);
  color: var(--cp-white);
  font-size: 1rem;
}
.cp-brand img { max-height: 48px; width: auto; }
.cp-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 25px;
  margin: 0;
  padding: 0;
}
.cp-nav a { color: var(--cp-ink); font-weight: 700; font-size: .95rem; }
.cp-menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--cp-navy);
  font-size: 1.5rem;
  cursor: pointer;
}

.cp-hero {
  padding: 74px 0 92px;
  background:
    radial-gradient(circle at 85% 10%, rgba(31,99,233,.15), transparent 31%),
    linear-gradient(180deg, #fff 0%, #f6f9ff 100%);
}
.cp-hero__grid {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 56px;
  align-items: center;
}
.cp-hero__copy h1 {
  margin: 0 0 22px;
  color: var(--cp-navy);
  font-size: clamp(2.9rem, 7vw, 5.8rem);
  line-height: .97;
  letter-spacing: -.065em;
}
.cp-hero__copy p {
  margin: 0 0 28px;
  max-width: 650px;
  color: var(--cp-muted);
  font-size: clamp(1.08rem, 1.8vw, 1.28rem);
}
.cp-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cp-hero__visual {
  min-height: 560px;
  overflow: hidden;
  position: relative;
  border-radius: 32px;
  background:
    linear-gradient(145deg, rgba(16,35,63,.12), rgba(31,99,233,.15)),
    var(--cp-sky);
  box-shadow: var(--cp-shadow);
}
.cp-hero__visual img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}
.cp-hero__placeholder {
  min-height: 560px;
  display: grid;
  place-items: center;
  padding: 40px;
  color: var(--cp-muted);
  text-align: center;
}
.cp-hero__badge {
  position: absolute;
  left: 24px;
  bottom: 24px;
  max-width: 270px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255,255,255,.95);
  box-shadow: var(--cp-shadow);
  color: var(--cp-navy);
  font-weight: 800;
}

.cp-grid { display: grid; gap: 24px; }
.cp-grid--3 { grid-template-columns: repeat(3, 1fr); }
.cp-grid--4 { grid-template-columns: repeat(4, 1fr); }
.cp-card {
  padding: 28px;
  border: 1px solid var(--cp-line);
  border-radius: var(--cp-radius);
  background: var(--cp-white);
  box-shadow: 0 10px 30px rgba(16,35,63,.05);
}
.cp-card h3 { margin: 0 0 10px; color: var(--cp-navy); font-size: 1.25rem; }
.cp-card p { margin: 0; color: var(--cp-muted); }
.cp-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 15px;
  background: var(--cp-sky);
  color: var(--cp-blue);
  font-weight: 900;
}

.cp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cp-media {
  min-height: 460px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--cp-sky);
}
.cp-media img { width: 100%; height: 100%; min-height: 460px; object-fit: cover; }
.cp-checks { margin: 26px 0 0; padding: 0; list-style: none; }
.cp-checks li { position: relative; padding-left: 30px; margin: 11px 0; }
.cp-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--cp-blue); font-weight: 900; }

.cp-r3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.cp-r3__item { padding: 25px; border-left: 4px solid var(--cp-blue); background: rgba(255,255,255,.07); border-radius: 0 18px 18px 0; }
.cp-r3__item strong { display: block; font-size: 1.3rem; margin-bottom: 6px; }

.cp-cta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 44px;
  border-radius: 28px;
  background: var(--cp-navy);
  color: var(--cp-white);
}
.cp-cta h2 { margin: 0 0 8px; font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.05; }
.cp-cta p { margin: 0; color: rgba(255,255,255,.75); }

.cp-content { padding: 70px 0; }
.cp-content > * { max-width: 820px; margin-left: auto; margin-right: auto; }
.cp-content .alignwide { max-width: var(--cp-max); }

.cp-footer { padding: 62px 0 30px; background: #0b172b; color: rgba(255,255,255,.76); }
.cp-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.cp-footer h3, .cp-footer h4 { color: var(--cp-white); }
.cp-footer ul { list-style: none; padding: 0; margin: 0; }
.cp-footer li { margin: 8px 0; }
.cp-footer a { color: rgba(255,255,255,.78); }
.cp-footer__bottom { margin-top: 42px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .88rem; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

@media (max-width: 900px) {
  .cp-menu-toggle { display: block; }
  .cp-nav {
    display: none;
    position: absolute;
    left: 20px; right: 20px; top: 76px;
    padding: 20px;
    border: 1px solid var(--cp-line);
    border-radius: 18px;
    background: var(--cp-white);
    box-shadow: var(--cp-shadow);
  }
  .cp-nav.is-open { display: block; }
  .cp-nav ul { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cp-header__cta { display: none; }
  .cp-hero__grid, .cp-split { grid-template-columns: 1fr; }
  .cp-hero__visual, .cp-hero__visual img, .cp-hero__placeholder { min-height: 430px; }
  .cp-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .cp-grid--3, .cp-r3 { grid-template-columns: 1fr; }
  .cp-footer__grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cp-section { padding: 64px 0; }
  .cp-container { width: min(calc(100% - 28px), var(--cp-max)); }
  .cp-grid--4 { grid-template-columns: 1fr; }
  .cp-hero { padding-top: 48px; }
  .cp-hero__copy h1 { font-size: clamp(2.65rem, 14vw, 4rem); }
  .cp-cta { padding: 30px; flex-direction: column; align-items: flex-start; }
}
