/*
Theme Name: CPD Acquisitions
Description: Single-page acquisitions site for Chris Doherty — chrispdoherty.com
Version: 2.1.0
Text Domain: cpd-acq
*/

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

:root {
  --bg: #FFFFFF;
  --bg-alt: #F5F5F3;
  --bg-contrast: #0A1424;
  --bg-contrast-lift: #141E35;
  --card: #FFFFFF;
  --text: #242424;
  --text-strong: #0A1424;
  --text-muted: #605E5C;
  --text-faint: #8A8886;
  --accent: #0A1424;
  --accent-link: #2C3756;
  --accent-soft: #EDF0F6;
  --border: #E6E4E1;
  --border-strong: #C8C6C3;
  --border-dark: rgba(255, 255, 255, 0.14);
  --cream: #F5EEDF;
  --cream-dim: rgba(245, 238, 223, 0.72);
  --max-w: 1200px;
  --radius: 2px;
  --radius-lg: 4px;
  --f-sans: 'Segoe UI', 'Segoe UI Variable', 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-weight: 400;
}

a { color: var(--accent-link); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--accent); }

/* ─── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  font-weight: 600;
  font-size: 17px;
  color: var(--text-strong);
  letter-spacing: -0.01em;
}
.brand em { font-style: normal; font-weight: 400; color: var(--text-muted); }
.nav-anchors {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}
.nav-anchors a { color: var(--text-muted); }
.nav-anchors a:hover { color: var(--text-strong); }

@media (max-width: 900px) {
  .nav-anchors { display: none; }
}

/* ─── Buttons ────────────────────────────────────────────── */
.btn-primary, .btn-secondary,
.btn-primary-light, .btn-secondary-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--f-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0;
  border-radius: var(--radius);
  border: 1px solid var(--accent);
  transition: all 0.15s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #FFFFFF;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-link);
  color: #FFFFFF;
  border-color: var(--accent-link);
}
.btn-secondary {
  background: transparent;
  color: var(--accent);
}
.btn-secondary:hover { background: var(--accent-soft); }

/* Light-on-dark variants (for the hero contrast band) */
.btn-primary-light {
  background: var(--cream);
  color: var(--bg-contrast);
  border-color: var(--cream);
}
.btn-primary-light:hover {
  background: #FFFFFF;
  color: var(--bg-contrast);
  border-color: #FFFFFF;
}
.btn-secondary-light {
  background: transparent;
  color: var(--cream);
  border-color: var(--border-dark);
}
.btn-secondary-light:hover {
  border-color: var(--cream);
  background: rgba(255, 255, 255, 0.05);
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-sans);
  color: var(--text-strong);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
h1 { font-size: clamp(32px, 3.5vw, 44px); font-weight: 600; }
h2 { font-size: clamp(22px, 2.2vw, 28px); margin-bottom: 12px; }
h3 { font-size: 17px; margin-bottom: 8px; font-weight: 600; }
em { font-style: normal; color: var(--text-muted); font-weight: 500; }
p { margin-bottom: 14px; max-width: 68ch; }
p:last-child { margin-bottom: 0; }

/* ─── Section scaffolding ────────────────────────────────── */
.section {
  padding: 84px 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: none; }
.section-alt { background: var(--bg-alt); }
.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}
.section-header {
  max-width: 760px;
  margin-bottom: 48px;
}
.section-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.6;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-link);
  margin-bottom: 16px;
  display: inline-block;
}
.eyebrow-light { color: var(--cream-dim); }

/* ─── Hero ───────────────────────────────────────────────── */
.hero-dark {
  background: var(--bg-contrast);
  color: var(--cream);
  padding: 0;
}
.hero-dark-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 96px 32px 104px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.hero-dark-text { max-width: 760px; }
.hero-dark-text h1 {
  color: var(--cream);
  margin-bottom: 20px;
  font-size: clamp(32px, 3.8vw, 48px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.hero-dark-text h1 em { color: #B9C2E0; font-weight: 500; }
.hero-sub {
  font-size: 18px;
  line-height: 1.55;
  max-width: 60ch;
  color: var(--cream-dim);
  margin-bottom: 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-dark-visual {
  width: 100%;
  max-width: 440px;
  justify-self: end;
}
.hero-image,
.hero-image-placeholder {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-lg);
  object-fit: cover;
  display: block;
  overflow: hidden;
  position: relative;
}
.hero-image-placeholder {
  background: linear-gradient(135deg, #141E35 0%, #0A1424 100%);
  border: 1px solid var(--border-dark);
}
.hero-image-label {
  position: absolute;
  bottom: 14px; left: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(245, 238, 223, 0.4);
  padding: 4px 8px;
  border: 1px dashed var(--border-dark);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .hero-dark-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 72px 24px 80px;
  }
  .hero-dark-visual { justify-self: stretch; max-width: 480px; margin: 0 auto; }
}

/* ─── About (team-card style, principal featured) ────────── */
.about-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 320px 1fr;
}
.about-visual {
  background: var(--bg-alt);
  min-height: 400px;
  position: relative;
}
.image-placeholder,
.portrait-placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 400px;
  background: linear-gradient(135deg, #EBEAE7 0%, #DAD8D4 100%);
}
.about-image {
  width: 100%;
  height: 100%;
  min-height: 400px;
  object-fit: cover;
  display: block;
}
.portrait-label,
.image-placeholder-label {
  position: absolute;
  bottom: 14px; left: 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding: 4px 8px;
  border: 1px dashed var(--border-strong);
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.6);
}
.about-text {
  padding: 44px 44px 44px 44px;
}
.about-text .role {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-link);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
.about-text h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: var(--text-strong);
}
.about-text p { color: var(--text); font-size: 15px; line-height: 1.65; }

@media (max-width: 900px) {
  .about-card { grid-template-columns: 1fr; }
  .about-visual { min-height: 280px; }
  .image-placeholder, .portrait-placeholder { min-height: 280px; }
  .about-text { padding: 32px 28px; }
}

/* The old .about-grid wrapper is no longer used — scaffold left out. */
.about-grid { display: block; }

/* ─── Buy-box ────────────────────────────────────────────── */
.buybox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.buybox-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.section-alt .buybox-card { background: var(--card); }
.buybox-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 2px 8px rgba(10, 20, 36, 0.04);
}
.buybox-icon {
  color: var(--accent);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
}
.buybox-icon-char {
  font-family: var(--f-sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}
.buybox-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
}
.buybox-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 8px;
}
.buybox-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 0;
}
@media (max-width: 1000px) {
  .buybox-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .buybox-grid { grid-template-columns: 1fr; }
}

/* ─── Deal structures ────────────────────────────────────── */
.deals-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.deal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.deal-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 2px 8px rgba(10, 20, 36, 0.04);
}
.deal-num {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-bottom: 12px;
}
.deal-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 12px;
}
.deal-for {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.deal-for strong { color: var(--text-strong); font-weight: 600; }
.deal-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

.deal-card-featured {
  grid-column: 1 / -1;
  background: var(--bg-contrast);
  color: var(--cream);
  border-color: var(--bg-contrast);
}
.deal-card-featured h3 { color: var(--cream); }
.deal-card-featured .deal-num { color: rgba(245, 238, 223, 0.6); }
.deal-card-featured .deal-for {
  color: rgba(245, 238, 223, 0.72);
  border-color: var(--border-dark);
}
.deal-card-featured .deal-for strong { color: var(--cream); }
.deal-card-featured p { color: rgba(245, 238, 223, 0.85); }
.deal-card-featured:hover {
  border-color: var(--bg-contrast);
  box-shadow: none;
}
.deal-tag {
  display: inline-block;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-dark);
  border-radius: 100px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 14px;
  font-weight: 500;
}

@media (max-width: 800px) {
  .deals-grid { grid-template-columns: 1fr; }
  .deal-card-featured { grid-column: auto; }
}

/* ─── Approach ───────────────────────────────────────────── */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.approach-item .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--f-sans);
  font-style: normal;
  margin-bottom: 16px;
}
.approach-item h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
}
.approach-item p { color: var(--text-muted); font-size: 14px; line-height: 1.6; }
@media (max-width: 900px) {
  .approach-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ─── Cross-link ─────────────────────────────────────────── */
.cross-link {
  background: var(--bg-contrast);
  color: var(--cream);
  border-top: 1px solid var(--bg-contrast);
}
.cross-link h2 { color: var(--cream); margin-bottom: 12px; }
.cross-link .eyebrow { color: var(--cream-dim); }
.cross-link-inner {
  display: flex;
  gap: 48px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.cross-link-text { flex: 1 1 480px; }
.cross-link p { color: rgba(245, 238, 223, 0.82); max-width: none; font-size: 15px; }

/* ─── Contact ────────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.contact-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
  display: block;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(10, 20, 36, 0.08);
  transform: translateY(-1px);
  color: inherit;
}
.contact-card:hover h3 { color: var(--accent-link); }
.contact-card:hover .cta { color: var(--accent-link); }
.contact-card .label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.contact-card h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 10px;
}
.contact-card p {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.contact-card .cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
  transition: color 0.15s ease;
}
@media (max-width: 760px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ─── Footer ─────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-contrast);
  color: rgba(245, 238, 223, 0.6);
  padding: 36px 0 32px;
  font-size: 13px;
}
.site-footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.site-footer a {
  color: var(--cream);
  border-bottom: 1px solid rgba(245, 238, 223, 0.3);
}
.site-footer a:hover { border-color: var(--cream); }
.site-footer .copyright { font-size: 12px; color: rgba(245, 238, 223, 0.5); }

/* ─── Animations ─────────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive polish ──────────────────────────────────── */
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 36px; }
  .section-inner { padding: 0 24px; }
}
