/*
Theme Name: CallMarx Signature
Theme URI: https://example.com/
Author: OpenAI for Chris Golden
Description: Custom WordPress theme inspired by the Marx Acosta-Rubio single-page design, rebuilt as a multi-page brochure site.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: callmarx-signature
*/

:root {
  --bg-primary: #0C0B0A;
  --bg-secondary: #141311;
  --bg-card: #1A1916;
  --text-primary: #E8E4DD;
  --text-secondary: #9B958A;
  --text-muted: #6B665D;
  --accent: #C4A265;
  --accent-hover: #D4B275;
  --accent-dim: rgba(196, 162, 101, 0.15);
  --accent-glow: rgba(196, 162, 101, 0.08);
  --divider: rgba(196, 162, 101, 0.12);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --site-width: 1240px;
  --narrow-width: 760px;
  --header-height: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
::selection { background: var(--accent); color: var(--bg-primary); }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 1rem;
  font-family: var(--serif);
  font-weight: 300;
  line-height: 1.16;
  color: var(--text-primary);
}
h1 { font-size: clamp(2.8rem, 5.5vw, 5.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); }
p { margin: 0 0 1.2rem; color: var(--text-secondary); }
strong { color: var(--text-primary); font-weight: 500; }
blockquote {
  margin: 0;
  padding: 0;
  border: 0;
}

.container {
  width: min(calc(100% - 3rem), var(--site-width));
  margin: 0 auto;
}
.container-narrow {
  width: min(calc(100% - 3rem), var(--narrow-width));
  margin: 0 auto;
}
.page-section {
  position: relative;
  padding: 7rem 0;
}
.section-dark { background: var(--bg-primary); }
.section-soft { background: var(--bg-secondary); }
.section-card { background: var(--bg-card); }
.section-label {
  margin-bottom: 1rem;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.section-title {
  max-width: 800px;
  margin-bottom: 1.5rem;
}
.section-intro {
  max-width: 700px;
  font-size: 1.06rem;
  line-height: 1.85;
}
.divider {
  width: 100%;
  height: 1px;
  background: var(--divider);
}

.btn,
.wp-block-button__link,
input[type="submit"],
button[type="submit"] {
  display: inline-block;
  padding: 1rem 2.4rem;
  border-radius: 0;
  border: 1px solid var(--divider);
  background: transparent;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.35s ease;
  cursor: pointer;
}
.btn:hover,
.wp-block-button__link:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  border-color: var(--accent);
  background: var(--accent-dim);
  color: var(--accent-hover);
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-primary);
  border-color: var(--accent);
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 162, 101, 0.25);
}
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  transition: all 0.35s ease;
  background: rgba(12, 11, 10, 0.68);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(12, 11, 10, 0.92);
  border-bottom-color: var(--divider);
}
.header-inner {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.site-branding a {
  color: var(--text-primary);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
}
.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.site-nav a {
  position: relative;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.4rem;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s ease;
}
.site-nav a:hover,
.site-nav .current-menu-item > a,
.site-nav .current_page_item > a,
.site-nav .current-page-ancestor > a { color: var(--accent); }
.site-nav a:hover::after,
.site-nav .current-menu-item > a::after,
.site-nav .current_page_item > a::after,
.site-nav .current-page-ancestor > a::after { width: 100%; }

.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}
.menu-toggle-bars {
  width: 26px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-toggle-bars span {
  display: block;
  height: 1px;
  background: var(--text-primary);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.hero-home {
  position: relative;
  min-height: calc(100vh - var(--header-height));
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0 5rem;
}
.hero-home::before,
.results-highlight::before,
.veterans-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.hero-home::before {
  top: -20%;
  right: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}
.hero-label {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.hero-title {
  max-width: 780px;
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: italic; color: var(--accent); }
.hero-sub {
  max-width: 560px;
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.quote-banner {
  position: relative;
  text-align: center;
  padding: 6.5rem 0;
}
.quote-banner::before {
  content: '"';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--serif);
  font-size: clamp(8rem, 14vw, 12rem);
  line-height: 1;
  color: rgba(196, 162, 101, 0.08);
}
.quote-text {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto 1.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.45;
}
.quote-attribution {
  position: relative;
  z-index: 1;
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin-top: 3.25rem;
}
.card {
  padding: 2.4rem;
  border: 1px solid var(--divider);
  background: transparent;
  transition: all 0.35s ease;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(196, 162, 101, 0.28);
  background: var(--bg-card);
}
.card-number {
  margin-bottom: 1.25rem;
  color: rgba(196, 162, 101, 0.22);
  font-family: var(--serif);
  font-size: 3rem;
}
.card h3 { margin-bottom: 0.75rem; }
.card p:last-child { margin-bottom: 0; }

.results-highlight {
  position: relative;
  overflow: hidden;
}
.results-highlight::before {
  top: 50%;
  left: -20%;
  width: 50vw;
  height: 50vw;
  transform: translateY(-50%);
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
}
.outcomes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.outcome-item {
  padding: 2.2rem 2.4rem;
  border: 1px solid var(--divider);
  background: rgba(20, 19, 17, 0.6);
  backdrop-filter: blur(10px);
  transition: all 0.35s ease;
}
.outcome-item:hover {
  border-color: rgba(196, 162, 101, 0.3);
  background: var(--bg-card);
}
.outcome-kicker,
.detail-label,
.fact-label {
  margin-bottom: 0.6rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.outcome-kicker.after { color: var(--accent); }
.outcome-before {
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--divider);
  font-family: var(--serif);
  color: var(--text-secondary);
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
}
.outcome-after-text {
  font-family: var(--serif);
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--text-primary);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2rem;
  padding: 4rem 0;
  text-align: center;
}
.stat-number {
  font-family: var(--serif);
  font-size: 3rem;
  color: var(--accent);
}
.stat-label {
  color: var(--text-muted);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.85fr);
  gap: 4rem;
  align-items: start;
}
.sticky-panel {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
}
.fact-list,
.detail-list {
  border-top: 1px solid var(--divider);
}
.fact-item,
.detail-row {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--divider);
}
.fact-value,
.detail-value {
  font-family: var(--serif);
  font-size: 1.3rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.cta-panel {
  padding: 3rem;
  border: 1px solid var(--divider);
  background: linear-gradient(180deg, rgba(26,25,22,0.95), rgba(20,19,17,0.98));
  box-shadow: var(--shadow);
}
.cta-panel h3 { margin-bottom: 1rem; }
.cta-panel p:last-child { margin-bottom: 0; }

.page-hero {
  padding: 6rem 0 4rem;
}
.page-hero .page-title {
  margin-bottom: 1.2rem;
  font-size: clamp(2.6rem, 4.5vw, 4.5rem);
}
.page-hero .page-subtitle {
  max-width: 720px;
  font-size: 1.08rem;
  line-height: 1.85;
}

.entry-shell {
  padding: 2rem 0 6rem;
}
.entry-content {
  font-size: 1.04rem;
}
.entry-content h2,
.entry-content h3 {
  margin-top: 2.4rem;
}
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.5rem 1.2rem;
  color: var(--text-secondary);
}
.entry-content li { margin-bottom: 0.6rem; }
.entry-content hr {
  border: 0;
  height: 1px;
  background: var(--divider);
  margin: 2rem 0;
}
.entry-content .wp-block-group,
.entry-content .wp-block-columns { margin-bottom: 2rem; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  margin-top: 2rem;
}
.contact-card,
.form-card {
  padding: 2.5rem;
  border: 1px solid var(--divider);
  background: var(--bg-card);
}
.contact-email {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  text-decoration: none;
}
.contact-phone {
  display: inline-block;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: 0.08em;
}
.contact-meta { margin-top: 2rem; }
.contact-meta .meta-line { margin-bottom: 0.7rem; color: var(--text-secondary); }
.form-placeholder {
  padding: 1rem 1.1rem;
  border-left: 2px solid var(--accent);
  background: rgba(196, 162, 101, 0.06);
  color: var(--text-secondary);
  font-size: 0.96rem;
}

.site-footer {
  border-top: 1px solid var(--divider);
  padding: 2rem 0 3rem;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.footer-copy {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-social {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.footer-social a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.footer-social a:hover { color: var(--accent); }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: #f1f1f1;
  clip: auto !important;
  -webkit-clip-path: none;
  clip-path: none;
  color: #21759b;
  display: block;
  font-size: 0.875rem;
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 23px 14px;
  text-decoration: none;
  top: 5px;
  width: auto;
  z-index: 100000;
}

@media (max-width: 1024px) {
  .card-grid,
  .stats-band,
  .outcomes-grid,
  .split-layout,
  .contact-grid { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
}

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0 0;
    background: rgba(12, 11, 10, 0.97);
    backdrop-filter: blur(20px);
    padding: 2rem 1.5rem 3rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }
  .site-nav.is-open { transform: translateX(0); }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: 1.3rem; }
  .site-nav a { font-size: 0.95rem; }
  .hero-home { min-height: auto; padding: 3rem 0 4rem; }
}

@media (max-width: 680px) {
  .container, .container-narrow { width: min(calc(100% - 2rem), var(--site-width)); }
  .page-section { padding: 4.5rem 0; }
  .quote-banner { padding: 4.5rem 0; }
  .cta-panel, .contact-card, .form-card, .card, .outcome-item { padding: 1.7rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .btn-row { flex-direction: column; align-items: flex-start; }
  .btn, .wp-block-button__link { width: 100%; text-align: center; }
}
