﻿/*
Theme Name: Cambridge 2026
Theme URI: https://cambridgecommerce.com
Author: CambridgeCommerce, Inc.
Author URI: https://cambridgecommerce.com
Description: CambridgeCommerce 2026 redesign. Payment strategy consulting for growth-stage merchants.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: cambridge-2026
*/
/* CambridgeCommerce Modern Advisor Design System */

/* ─── Reset & Base ─────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: #1F2328;
  background: #FFFFFF;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* ─── Color Tokens ──────────────────────────────── */
:root {
  --green:        #2E6B4F;
  --green-dark:   #1F4D38;
  --green-light:  #EAF4EE;
  --blue:         #1E4B8F;
  --blue-light:   #EBF0FA;
  --charcoal:     #1F2328;
  --gray-700:     #3D4451;
  --gray-500:     #6B7280;
  --gray-200:     #E5E7EB;
  --gray-100:     #F4F5F7;
  --white:        #FFFFFF;
  --border:       #D1D5DB;

  --radius-sm:    4px;
  --radius-md:    8px;
  --radius-lg:    16px;

  --shadow-sm:    0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.12);

  --max-width:    1160px;
  --section-pad:  80px 24px;
}

/* ─── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }

p { margin-bottom: 1em; color: var(--gray-700); }
p:last-child { margin-bottom: 0; }

a { color: var(--green); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green-dark); }

strong { color: var(--charcoal); font-weight: 600; }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: 0.4em; color: var(--gray-700); }

/* ─── Layout Utilities ──────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-pad); }
.section-alt { background: var(--gray-100); }
.section-green { background: var(--green); color: var(--white); }
.section-dark { background: var(--charcoal); color: var(--white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }

.text-center { text-align: center; }
.mb-8  { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-40 { margin-bottom: 40px; }
.mb-56 { margin-bottom: 56px; }

/* ─── Section Labels ────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}

.section-green .eyebrow,
.section-dark .eyebrow { color: rgba(255,255,255,0.65); }

/* ─── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--white);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-light);
  border-color: var(--green-light);
  color: var(--green-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
  color: var(--white);
}

.btn-sm { padding: 10px 20px; font-size: 0.875rem; }

/* ─── Navigation ────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  height: 68px;
}

.nav-logo {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav-logo span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s;
}
.nav-links a:hover {
  color: var(--charcoal);
  background: var(--gray-100);
}

.nav-links .nav-cta-secondary {
  color: var(--green);
  font-weight: 600;
}

.nav-cta { margin-left: 8px; }

/* ─── Hero ──────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #F8FAF9 0%, #EAF4EE 100%);
  padding: 96px 24px 88px;
  border-bottom: 1px solid var(--gray-200);
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 64px;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.hero-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.hero h1 { margin-bottom: 20px; }

.hero-sub {
  font-size: 1.125rem;
  color: var(--gray-500);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-proof {
  margin-top: 48px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.hero-stat { }
.hero-stat strong {
  display: block;
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--charcoal);
  letter-spacing: -0.03em;
}
.hero-stat span { font-size: 0.8125rem; color: var(--gray-500); }

.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.hero-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green);
  margin-bottom: 20px;
}

.hero-card-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--gray-200);
}
.hero-card-item:last-child { border-bottom: none; padding-bottom: 0; }

.hero-card-icon {
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.hero-card-text strong { display: block; font-size: 0.9375rem; color: var(--charcoal); margin-bottom: 2px; }
.hero-card-text span { font-size: 0.8125rem; color: var(--gray-500); }

.hero-card-cta {
  margin-top: 24px;
  display: block;
  text-align: center;
}

/* ─── Trust Bar ─────────────────────────────────── */
.trust-bar {
  background: var(--charcoal);
  padding: 20px 24px;
}
.trust-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.75);
}
.trust-item strong { color: var(--white); }
.trust-dot { color: rgba(255,255,255,0.25); }

/* ─── Cards ─────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.card-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  margin-bottom: 20px;
}

.card h3 { margin-bottom: 10px; font-size: 1.125rem; }
.card p { font-size: 0.9375rem; }
.card .card-link { margin-top: 16px; font-size: 0.875rem; font-weight: 600; }

/* ─── Problem/Solution Strip ────────────────────── */
.problem-strip {
  background: var(--green);
  padding: 64px 24px;
  text-align: center;
}
.problem-strip h2 { color: var(--white); margin-bottom: 16px; }
.problem-strip p { color: rgba(255,255,255,0.80); max-width: 640px; margin: 0 auto 32px; }

/* ─── Feature Section ───────────────────────────── */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: var(--section-pad);
  max-width: var(--max-width);
  margin: 0 auto;
}
.feature-block.reverse { direction: rtl; }
.feature-block.reverse > * { direction: ltr; }

.feature-text h2 { margin-bottom: 16px; }
.feature-text p { margin-bottom: 20px; }

.feature-list { list-style: none; padding: 0; margin-bottom: 28px; }
.feature-list li {
  padding: 8px 0 8px 28px;
  position: relative;
  border-bottom: 1px solid var(--gray-200);
  font-size: 0.9375rem;
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 700;
}

.feature-visual {
  background: linear-gradient(135deg, var(--green-light), var(--blue-light));
  border-radius: var(--radius-lg);
  padding: 40px;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

/* ─── Testimonial ───────────────────────────────── */
.testimonial {
  background: var(--gray-100);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 24px 28px;
  margin: 32px 0;
}
.testimonial blockquote {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--gray-700);
  margin-bottom: 12px;
  line-height: 1.7;
}
.testimonial cite {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--charcoal);
  font-style: normal;
}
.testimonial cite span { color: var(--gray-500); font-weight: 400; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.testimonial-card .stars { color: #F59E0B; font-size: 1rem; margin-bottom: 12px; }
.testimonial-card blockquote {
  font-size: 0.9375rem;
  color: var(--gray-700);
  line-height: 1.65;
  margin-bottom: 16px;
  font-style: normal;
}
.testimonial-card cite { font-size: 0.875rem; font-weight: 600; color: var(--charcoal); font-style: normal; }
.testimonial-card cite span { display: block; font-weight: 400; color: var(--gray-500); margin-top: 2px; }

/* ─── CTA Banner ────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green) 0%, var(--green-dark) 100%);
  padding: 72px 24px;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.80); max-width: 560px; margin: 0 auto 36px; }
.cta-banner .cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── Alert / Info Box ──────────────────────────── */
.info-box {
  background: var(--blue-light);
  border: 1px solid #BFD0EF;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.info-box p { color: var(--blue); margin: 0; font-size: 0.9375rem; }

.warning-box {
  background: #FEF9EC;
  border-left: 4px solid #F59E0B;
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 24px 0;
}
.warning-box p { color: #78450A; margin: 0; font-size: 0.9375rem; }

/* ─── FAQ ───────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 24px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q { font-size: 1rem; font-weight: 600; color: var(--charcoal); margin-bottom: 10px; cursor: pointer; }
.faq-a { font-size: 0.9375rem; color: var(--gray-700); line-height: 1.7; }

/* ─── Footer ────────────────────────────────────── */
.site-footer {
  background: var(--charcoal);
  color: rgba(255,255,255,0.70);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .nav-logo { color: var(--white); display: block; margin-bottom: 12px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.65; }
.footer-tagline {
  margin-top: 16px;
  font-size: 0.8125rem;
  font-style: italic;
  color: rgba(255,255,255,0.45);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.875rem; transition: color 0.15s; }
.footer-col ul a:hover { color: var(--white); }

.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.65);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.40);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--white); }

/* ─── Page Hero (inner pages) ───────────────────── */
.page-hero {
  background: linear-gradient(135deg, #F8FAF9 0%, #EAF4EE 100%);
  padding: 64px 24px;
  border-bottom: 1px solid var(--gray-200);
}
.page-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero .page-hero-sub { font-size: 1.125rem; color: var(--gray-500); max-width: 640px; margin-bottom: 28px; }

/* ─── Breadcrumb ────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--gray-500);
  margin-bottom: 20px;
}
.breadcrumb a { color: var(--gray-500); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb-sep { color: var(--gray-200); }

/* ─── Two-col page layout ───────────────────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px;
  align-items: start;
}

.sticky-sidebar { position: sticky; top: 88px; }

.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}
.sidebar-card h4 { margin-bottom: 16px; font-size: 1rem; }
.sidebar-card p { font-size: 0.9rem; }
.sidebar-card .btn { width: 100%; justify-content: center; margin-top: 8px; }

/* ─── Risk indicator ────────────────────────────── */
.risk-list { list-style: none; padding: 0; }
.risk-list li {
  padding: 10px 0 10px 28px;
  position: relative;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--gray-200);
  color: var(--gray-700);
}
.risk-list li:last-child { border-bottom: none; }
.risk-list li::before {
  content: '⚠';
  position: absolute;
  left: 0;
  color: #F59E0B;
}

/* ─── Utility ───────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--gray-200); margin: 48px 0; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--green-light);
  color: var(--green-dark);
}
.badge-blue { background: var(--blue-light); color: var(--blue); }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-block { grid-template-columns: 1fr; gap: 40px; }
  .feature-block.reverse { direction: ltr; }
  .page-layout { grid-template-columns: 1fr; }
  .sticky-sidebar { position: static; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --section-pad: 56px 20px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .nav-links { display: none; }
  .hero-proof { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .cta-banner .cta-actions { flex-direction: column; align-items: center; }
  .trust-bar-inner { gap: 20px; }
}

