/* ============================================================
   3C Digital Systems — shared design system
   White canvas · black text · royal blue #174EA6 · gold accents
   ============================================================ */

:root {
  --blue: #174EA6;
  --blue-dark: #113B7E;
  --blue-soft: #E9F0FA;      /* pale blue surface */
  --blue-pale: #F4F7FB;      /* alternating section bg */
  --blue-line: #C9D8EE;      /* thin blue borders */
  --gold: #8A6912;        /* text-safe gold, 5.1:1 on white (WCAG AA) */
  --gold-bright: #D4AF37; /* decorative accents only, not text */
  --gold-deep: #B28719;   /* borders and larger graphic elements */
  --ink: #0B0D12;
  --ink-soft: #3A4150;
  --ink-mute: #5C6474;
  --white: #FFFFFF;
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 3px rgba(11, 13, 18, 0.06), 0 4px 14px rgba(23, 78, 166, 0.06);
  --shadow-md: 0 2px 6px rgba(11, 13, 18, 0.07), 0 12px 32px rgba(23, 78, 166, 0.10);
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --container: 1160px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--blue); color: var(--white);
  padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 3.9rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); font-weight: 600; }
h4 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; }

.lede { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--ink-soft); max-width: 42em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold);
}
.eyebrow::before {
  content: ""; width: 22px; height: 2px; background: var(--gold); border-radius: 2px;
}

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section--pale { background: var(--blue-pale); }
.section-head { max-width: 46em; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .eyebrow { margin-bottom: 0.9rem; }
.section-head p { margin-top: 0.9rem; color: var(--ink-soft); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--blue-line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-display); font-weight: 600; font-size: 1.2rem;
  color: var(--ink); text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--blue); color: var(--white);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  box-shadow: 0 0 0 3px var(--blue-soft);
}
/* brand lockup: "3C Digital" with SYSTEMS as a letterspaced gold sub-line */
.brand > span:not(.brand-mark) {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand-sub {
  display: block;
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.58rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  margin-top: 3px;
}

.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav-links a {
  display: inline-block; padding: 0.45rem 0.85rem; border-radius: 8px;
  color: var(--ink-soft); font-weight: 500; font-size: 0.95rem;
}
.nav-links a:hover { color: var(--blue); background: var(--blue-soft); text-decoration: none; }
.nav-links a[aria-current="page"] {
  color: var(--blue); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--blue);
  border-radius: 8px 8px 0 0;
}
.nav-cta { margin-left: 0.5rem; }

/* keep the nav CTA readable: nav link rules must not override button colors */
.nav-links a.btn-primary,
.nav-links a.btn-primary[aria-current="page"] {
  color: var(--white);
  background: var(--blue);
  font-weight: 600;
  box-shadow: var(--shadow-sm);
  border-radius: var(--radius-sm);
}
.nav-links a.btn-primary:hover {
  color: var(--white);
  background: var(--blue-dark);
}

.nav-toggle {
  display: none; background: none; border: 1px solid var(--blue-line);
  border-radius: 10px; padding: 0.5rem 0.7rem; cursor: pointer; color: var(--ink);
}

@media (max-width: 920px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 600; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    background: var(--white); border-bottom: 1px solid var(--blue-line);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 1.5rem;
    box-shadow: var(--shadow-md);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { padding: 0.8rem 1rem; }
  .nav-links a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--blue); border-radius: 0 8px 8px 0; }
  .nav-cta { margin: 0.5rem 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 0.8rem 1.6rem; border-radius: var(--radius-sm);
  cursor: pointer; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost { background: var(--white); color: var(--ink); border-color: var(--blue-line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card--pale { background: var(--blue-soft); }
.card--static:hover { transform: none; box-shadow: var(--shadow-sm); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-soft); font-size: 0.98rem; }
.card .eyebrow { margin-bottom: 0.8rem; font-size: 0.72rem; }

.card-link { margin-top: 1rem; display: inline-flex; align-items: center; gap: 0.35rem; font-weight: 600; }

/* Outcome list inside cards */
.check-list { list-style: none; margin-top: 1rem; }
.check-list li {
  position: relative; padding-left: 1.7rem; margin-bottom: 0.55rem;
  color: var(--ink-soft); font-size: 0.97rem;
}
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}

/* ---------- Hero ---------- */
.hero { padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem); overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4rem); align-items: center;
}
.hero-copy .eyebrow { margin-bottom: 1.1rem; }
.hero-copy h1 { margin-bottom: 1.2rem; }
.hero-copy .lede { margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero-note { margin-top: 1.1rem; font-size: 0.88rem; color: var(--ink-mute); }

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* ---------- 3C Digital Core (orbit) ---------- */
.core-stage {
  position: relative;
  width: min(460px, 88vw);
  aspect-ratio: 1;
  margin: 0 auto;
}
.core-orbit-path {
  position: absolute; inset: 7%;
  border: 1px dashed var(--blue-line);
  border-radius: 50%;
}
.core-center {
  position: absolute; top: 50%; left: 50%;
  width: 34%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--blue);
  box-shadow: 0 0 0 10px rgba(23, 78, 166, 0.06), 0 0 46px rgba(23, 78, 166, 0.22);
  display: grid; place-items: center; text-align: center;
}
.core-center .core-label {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2.1rem); color: var(--blue); line-height: 1;
}
.core-center .core-sub {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); font-weight: 600; margin-top: 0.35rem;
}

.orbit-ring {
  position: absolute; inset: 0;
  animation: orbit-spin 46s linear infinite;
}
.orbit-sat {
  position: absolute;
  width: 0; height: 0;
}
/* fixed points on a circle of radius 43%; the ring's rotation carries them */
.orbit-sat:nth-child(1) { top: 7%;    left: 50%; }
.orbit-sat:nth-child(2) { top: 71.5%; left: 87.2%; }
.orbit-sat:nth-child(3) { top: 71.5%; left: 12.8%; }

.orbit-chip {
  position: absolute; top: 0; left: 0;
  transform: translate(-50%, -50%);
  animation: orbit-counter 46s linear infinite;
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; font-weight: 600; color: var(--ink);
}
.orbit-chip .dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--blue); flex: none;
}
.orbit-chip .dot--gold { background: var(--gold-bright); }

@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-counter {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(-360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .orbit-chip { animation: none !important; }
}

/* ---------- Workflow (Lead → AI Review → CRM → Team) ---------- */
.workflow {
  display: grid; grid-template-columns: repeat(7, auto);
  align-items: center; justify-content: center;
  gap: 0.6rem;
}
.wf-node {
  background: var(--white); border: 1.5px solid var(--blue-line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.25rem; text-align: center; min-width: 118px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s ease;
}
.wf-node .wf-icon { font-size: 1.3rem; line-height: 1; margin-bottom: 0.35rem; }
.wf-node .wf-name { font-weight: 600; font-size: 0.92rem; }
.wf-node .wf-desc { font-size: 0.75rem; color: var(--ink-mute); }
.wf-node.is-active {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(23, 78, 166, 0.12), var(--shadow-md);
  transform: translateY(-3px);
}
.wf-node.is-done { border-color: var(--blue); }
.wf-node.is-done .wf-name::after { content: " ✓"; color: var(--gold); }

.wf-arrow {
  position: relative; width: 46px; height: 2px;
  background: var(--blue-line); border-radius: 2px; overflow: hidden;
}
.wf-arrow::after {
  content: ""; position: absolute; inset: 0;
  background: var(--blue);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.6s ease;
}
.wf-arrow.is-active::after { transform: scaleX(1); }

@media (max-width: 780px) {
  .workflow { grid-template-columns: 1fr; justify-items: center; }
  .wf-arrow { width: 2px; height: 34px; }
  .wf-arrow::after { transform: scaleY(0); transform-origin: top; }
  .wf-arrow.is-active::after { transform: scaleY(1); }
  .wf-node { width: min(300px, 100%); }
}

/* ---------- Browser mockup ---------- */
.browser {
  background: var(--white);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.browser-bar {
  display: flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1rem;
  background: var(--blue-pale);
  border-bottom: 1px solid var(--blue-line);
}
.browser-bar .b-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-line); }
.browser-bar .b-dot:first-child { background: var(--gold-bright); }
.browser-bar .b-url {
  flex: 1; margin-left: 0.5rem;
  background: var(--white); border: 1px solid var(--blue-line);
  border-radius: 8px; padding: 0.25rem 0.8rem;
  font-size: 0.78rem; color: var(--ink-mute);
}
.browser-body { padding: clamp(1.25rem, 3vw, 2rem); }

/* skeleton shapes for mock sites */
.sk-line { height: 10px; border-radius: 6px; background: var(--blue-soft); margin-bottom: 0.6rem; }
.sk-line--dark { background: var(--blue); opacity: 0.85; height: 14px; width: 60%; }
.sk-line--gold { background: var(--gold-bright); width: 26%; height: 8px; }
.sk-btn { display: inline-block; height: 34px; width: 120px; border-radius: 8px; background: var(--blue); }
.sk-block { border: 1px solid var(--blue-line); border-radius: var(--radius-sm); background: var(--blue-pale); }

/* ---------- Scorecard ---------- */
.scorecard {
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}
.scorecard-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 1rem; margin-bottom: 1.5rem;
}
.scorecard-head h3 { font-size: 1.35rem; }
.scorecard-tag { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }

.score-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 2rem;
}
@media (max-width: 680px) { .score-grid { grid-template-columns: 1fr; } }

.score-item {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--blue-line);
}
.score-item:nth-last-child(-n+2) { border-bottom: none; }
@media (max-width: 680px) { .score-item:nth-last-child(2) { border-bottom: 1px solid var(--blue-line); } }
.score-num {
  font-family: var(--font-display); font-weight: 600;
  color: var(--gold); font-size: 1.05rem; min-width: 1.8em;
}
.score-item p { font-size: 0.95rem; color: var(--ink-soft); }
.score-item strong { color: var(--ink); font-weight: 600; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.25rem, 2.5vw, 2rem); }
.steps--4 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) { .steps, .steps--4 { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 3.2rem; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 600;
  color: var(--gold);
}
.step::after {
  content: ""; position: absolute; top: 1rem; left: 3.2rem; right: 0;
  height: 1px; background: var(--blue-line);
}
.step h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.step p { color: var(--ink-soft); font-size: 0.97rem; }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border: 1px solid var(--blue-line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}
label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 0.35rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; font: inherit; color: var(--ink);
  border: 1.5px solid var(--blue-line); border-radius: 10px;
  padding: 0.75rem 0.9rem; background: var(--white);
  margin-bottom: 1.1rem;
}
input:focus, select:focus, textarea:focus {
  outline: 3px solid rgba(23, 78, 166, 0.25);
  border-color: var(--blue);
}

/* HubSpot embed container */
.hs-form-frame { min-height: 320px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--blue);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 5vw, 4rem);
  text-align: center;
}
.cta-band h2 { color: var(--white); margin-bottom: 0.8rem; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 38em; margin: 0 auto 1.8rem; }
.cta-band .btn-primary { background: var(--white); color: var(--blue); }
.cta-band .btn-primary:hover { background: var(--blue-pale); }
.cta-band .btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.55); }
.cta-band .btn-ghost:hover { border-color: var(--white); color: var(--white); }
.cta-band .btn-row { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }
.cta-band .eyebrow { color: #EAD489; } /* 5.3:1 on the blue band */
.cta-band .eyebrow::before { background: #EAD489; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--blue-line);
  background: var(--blue-pale);
  padding: 3rem 0 2rem;
  font-size: 0.92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem; margin-bottom: 2rem;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { margin-bottom: 0.8rem; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-mute); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--blue); }
.footer-note { color: var(--ink-mute); border-top: 1px solid var(--blue-line); padding-top: 1.5rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Prose (blog / about) ---------- */
.prose { max-width: 46em; }
.prose p { margin-bottom: 1.2rem; color: var(--ink-soft); }
.prose h2 { margin: 2.2rem 0 0.9rem; }
.prose h3 { margin: 1.8rem 0 0.7rem; }
.prose strong { color: var(--ink); }

/* ---------- Utilities ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.gold { color: var(--gold); }
.badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); border: 1px solid var(--gold-bright);
  border-radius: 999px; padding: 0.2rem 0.7rem;
}
