:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #111827;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --text: #f9fafb;
  --muted: #9ca3af;
  --border-subtle: #1f2937;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0,0,0,0.55);
  --max-width: 1120px;
}

/* GLOBAL */

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #1e293b 0, #020617 52%, #000 100%);
  color: var(--text);
  line-height: 1.6;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: radial-gradient(circle at top left, #0f172a, #020617 65%);
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(16px);
  background: rgba(2, 6, 23, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  z-index: 100;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.85rem 0;
}

/* Brand: C icon + COMVERA */

.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-icon {
  height: 28px;
  width: auto;
  display: block;
}

.brand-text {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.11em;
  color: #e5e7eb;
}

/* NAV */

.nav {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
}

.nav-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  line-height: 1;
}

/* HERO */

.hero {
  padding: 4.5rem 0 4rem;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-text p {
  color: var(--muted);
  max-width: 36rem;
}

.hero-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.hero-subtext {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
}

.hero-card {
  background: radial-gradient(circle at top left, #0f172a, #020617);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.hero-card h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.hero-card ul {
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* SECTIONS */

.section-title {
  font-size: 1.6rem;
  margin-bottom: 0.75rem;
}

.section-intro {
  color: var(--muted);
  max-width: 34rem;
  margin-bottom: 2.2rem;
}

/* GRID & CARDS */

.grid {
  display: grid;
  gap: 1.7rem;
}

.services-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: rgba(15, 23, 42, 0.9);
  padding: 1.6rem 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.card-list {
  padding-left: 1.1rem;
  color: var(--muted);
}

/* STEPS */

.steps {
  display: grid;
  gap: 1.3rem;
}

.step {
  background: rgba(15, 23, 42, 0.9);
  border-radius: 14px;
  padding: 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  display: flex;
  gap: 1rem;
}

.step-number {
  width: 34px;
  height: 34px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

/* ABOUT */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.3fr);
  gap: 2.2rem;
  align-items: stretch;
}

.about-main {
  display: flex;
  gap: 1.75rem;
  align-items: flex-start;
}

.about-photo {
  width: 240px;
  flex-shrink: 0;
  border-radius: 0;
  overflow: visible;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0;
  background: none;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.4);
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: left;
}

.about-text h2 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.about-text p + p {
  margin-top: 0.75rem;
}

.about-clients-card {
  background: rgba(15, 23, 42, 0.9);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: var(--shadow-soft);
}

.about-clients-card h3 {
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.about-clients-card ul {
  list-style: disc;
  padding-left: 1.1rem;
  margin: 0;
  color: #cbd5f5;
}

/* CONTACT */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.4fr);
  gap: 2.2rem;
  align-items: start;
}

.contact-form {
  background: rgba(15, 23, 42, 0.95);
  border-radius: var(--radius-lg);
  padding: 1.7rem 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.9);
}

.contact-form label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.6rem;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #020617;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.3rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-size: 0.95rem;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(to right, #0ea5e9, #22c55e);
  color: #0b1120;
  font-weight: 600;
}

.btn.ghost {
  border-color: rgba(148, 163, 184, 0.6);
  color: var(--muted);
  background: rgba(15, 23, 42, 0.8);
}

.btn.full-width {
  width: 100%;
}

/* FOOTER */

.site-footer {
  padding: 1.8rem 0 2rem;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: #020617;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.ctm-teaser {
  color: rgba(148, 163, 184, 0.5);
  text-decoration: none;
  font-size: 0.8rem;
}

.ctm-teaser:hover {
  color: var(--accent);
}

.footer-divider {
  margin: 0 0.5rem;
  color: rgba(148, 163, 184, 0.3);
}

/* CTM OVERLAY — CSS ONLY via :target */

.ctm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  z-index: 9999;
}

#ctm-teaser:target {
  opacity: 1;
  pointer-events: auto;
}

.ctm-modal-content {
  background: #0f172a;
  border-radius: var(--radius-xl);
  padding: 2rem 2.2rem;
  max-width: 440px;
  width: 90%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: var(--shadow-soft);
  color: var(--text);
  position: relative;
}

.ctm-close-link {
  position: absolute;
  right: 1rem;
  top: 1rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  text-decoration: none;
}

.ctm-close-link:hover {
  color: var(--accent);
}

.modal-text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-top: 1rem;
}

/* RESPONSIVE */

@media (max-width: 840px) {
  .hero-content,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    justify-content: flex-start;
  }
}

/* *************** */
/* MOBILE FIX HERE */
/* *************** */

@media (max-width: 640px) {

  /* Stack photo + text */
  .about-main {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Force small headshot AND shrink container */
  .about-photo {
    width: 120px !important;
  }

  .about-photo img {
    width: 120px !important;
    height: auto !important;
    max-width: 120px !important;
    display: block;
    margin: 0 auto 1rem !important;
  }

  .about-text {
    text-align: center !important;
  }

  .about-clients-card {
    margin-top: 1.5rem;
  }
}
