/*
Theme Name: Capital Health Strategy Group
Theme URI: https://capitalhealthstrategygroup.com/
Author: ClearBridge AI Solutions
Description: Custom one-page WordPress theme for Capital Health Strategy Group, adapted from the approved Lovable landing page.
Version: 1.5.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: capital-health-strategy-group
*/

:root {
  --chsg-background: oklch(0.22 0.04 260);
  --chsg-foreground: oklch(0.97 0.005 250);
  --chsg-card: oklch(0.27 0.04 260);
  --chsg-muted: oklch(0.76 0.02 255);
  --chsg-accent: oklch(0.68 0.16 52);
  --chsg-accent-ink: oklch(0.2 0.04 260);
  --chsg-border: rgba(255, 255, 255, 0.14);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--chsg-background); }

body {
  min-height: 100%;
  margin: 0;
  background: var(--chsg-background);
  color: var(--chsg-foreground);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.admin-bar .chsg-modal { top: 32px; }

.chsg-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 0%, color-mix(in oklab, var(--chsg-accent) 18%, transparent), transparent 55%),
    radial-gradient(circle at 85% 85%, color-mix(in oklab, var(--chsg-accent) 12%, transparent), transparent 50%),
    var(--chsg-background);
}

.chsg-container {
  width: min(100%, 64rem);
  min-height: 100vh;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.chsg-logo { width: auto; height: 3.5rem; display: block; }

.chsg-kicker {
  margin: 2.5rem 0 0;
  padding: 0.5rem 1rem;
  border: 1px solid var(--chsg-border);
  border-radius: 999px;
  color: var(--chsg-muted);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.chsg-title {
  margin: 2rem 0 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.45rem, 6vw, 4.5rem);
  font-weight: 600;
  line-height: 1.1;
}

.chsg-title span { display: block; margin-top: 0.5rem; color: var(--chsg-accent); }

.chsg-countdown {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 3rem;
}

.chsg-unit {
  width: 7.5rem;
  padding: 1.75rem 1rem;
  border: 1px solid var(--chsg-border);
  border-radius: 0.75rem;
  background: rgba(26, 41, 64, 0.62);
  backdrop-filter: blur(8px);
}

.chsg-unit-value {
  display: block;
  color: var(--chsg-accent);
  font-family: "Fraunces", Georgia, serif;
  font-size: 3.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.chsg-unit-label {
  display: block;
  margin-top: 0.5rem;
  color: var(--chsg-muted);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.chsg-actions { display: flex; justify-content: center; gap: 1rem; margin-top: 3.5rem; }

.chsg-button {
  min-width: 13.5rem;
  padding: 1rem 2.25rem;
  border: 1px solid var(--chsg-accent);
  border-radius: 999px;
  color: var(--chsg-accent);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 160ms ease, background 160ms ease, color 160ms ease;
}

.chsg-button-primary { background: var(--chsg-accent); color: var(--chsg-accent-ink); }
.chsg-button:hover { background: var(--chsg-accent); color: var(--chsg-accent-ink); }
.chsg-button-primary:hover { opacity: 0.9; }
.chsg-button:focus-visible, .chsg-invite-button:focus-visible, .chsg-modal-close:focus-visible {
  outline: 2px solid var(--chsg-accent);
  outline-offset: 4px;
}

.chsg-event-line { margin: 3.5rem 0 0; color: var(--chsg-muted); font-size: 1.125rem; }

.chsg-invite { width: min(100%, 28rem); margin-top: 1.5rem; }

.chsg-invite-button {
  display: block;
  width: 100%;
  padding: 0.5rem;
  overflow: hidden;
  border: 1px solid var(--chsg-border);
  border-radius: 1rem;
  background: rgba(26, 41, 64, 0.45);
  cursor: zoom-in;
  box-shadow: 0 20px 60px -25px rgba(238, 125, 27, 0.5);
  transition: transform 160ms ease;
}

.chsg-invite-button:hover { transform: translateY(-4px); }
.chsg-invite-image { display: block; width: 100%; height: auto; border-radius: 0.75rem; }

.chsg-footer { margin-top: auto; padding-top: 5rem; }
.chsg-footer p { margin: 0; color: var(--chsg-muted); font-size: 0.75rem; letter-spacing: 0.14em; }

.chsg-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(17, 29, 48, 0.94);
  cursor: zoom-out;
  backdrop-filter: blur(6px);
}

.chsg-modal.is-open { display: flex; }
.chsg-modal-image { display: block; max-width: 100%; max-height: 100%; border-radius: 0.75rem; box-shadow: 0 24px 70px rgba(0,0,0,0.45); }
.chsg-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--chsg-border);
  border-radius: 999px;
  background: var(--chsg-card);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
}

.chsg-contact-modal { cursor: default; }

.chsg-contact-panel {
  position: relative;
  width: min(100%, 34rem);
  max-height: calc(100vh - 4rem);
  overflow-y: auto;
  padding: 2rem;
  border: 1px solid var(--chsg-border);
  border-radius: 1rem;
  background: #fff;
  color: #172238;
  text-align: left;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42);
}

.chsg-contact-panel h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  line-height: 1.1;
}

.chsg-contact-intro { margin: 0.6rem 0 1.5rem; color: #5f6878; font-size: 0.9rem; line-height: 1.5; }
.chsg-contact-form { display: grid; gap: 1rem; }
.chsg-contact-form label { display: grid; gap: 0.4rem; color: #27334a; font-size: 0.82rem; font-weight: 600; }
.chsg-required { color: #c33; }
.chsg-contact-form input,
.chsg-contact-form textarea {
  width: 100%;
  border: 1px solid #ccd1d9;
  border-radius: 0.35rem;
  background: #fff;
  color: #172238;
  font: inherit;
  font-size: 1rem;
}
.chsg-contact-form input { min-height: 2.75rem; padding: 0.65rem 0.75rem; }
.chsg-contact-form textarea { min-height: 8rem; padding: 0.75rem; resize: vertical; }
.chsg-contact-form input:focus,
.chsg-contact-form textarea:focus { outline: 2px solid var(--chsg-accent); outline-offset: 1px; border-color: transparent; }
.chsg-contact-submit {
  justify-self: start;
  min-width: 6rem;
  padding: 0.8rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--chsg-accent);
  color: var(--chsg-accent-ink);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
}
.chsg-contact-close { top: 0.75rem; right: 0.75rem; background: transparent; color: #172238; border-color: #d5d9df; }
.chsg-form-status { margin: 0 0 1rem; padding: 0.8rem 1rem; border-radius: 0.4rem; font-size: 0.9rem; }
.chsg-form-success { background: #e8f5ea; color: #205f2a; }
.chsg-form-error { background: #fff0f0; color: #8e2626; }
.chsg-honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

@media (max-width: 640px) {
  body.admin-bar .chsg-modal { top: 46px; }
  .chsg-container { padding: 3rem 1.25rem; }
  .chsg-logo { height: 3.5rem; max-width: 82%; object-fit: contain; }
  .chsg-countdown { gap: 0.75rem; }
  .chsg-unit { width: 5.5rem; padding: 1.25rem 0.4rem; }
  .chsg-unit-value { font-size: 2.5rem; }
  .chsg-unit-label { font-size: 0.625rem; }
  .chsg-actions { width: 100%; flex-direction: column; align-items: center; }
  .chsg-button { width: min(100%, 21rem); }
  .chsg-event-line { font-size: 1rem; }
  .chsg-modal { padding: 1rem; }
  .chsg-contact-panel { max-height: calc(100vh - 2rem); padding: 1.5rem; }
}

@media (max-width: 410px) {
  .chsg-countdown { display: grid; grid-template-columns: repeat(2, 5.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
