/* ============================================================
   CoPath — styles.css
   Plain CSS. Design tokens live in :root, edit there to rebrand.
   ============================================================ */

:root {
  /* Brand */
  --color-bg: #ffffff;
  --color-bg-alt: #f6f7f9;
  --color-text: #1a1d23;
  --color-muted: #5b6470;
  --color-accent: #2f6df6;
  --color-accent-dark: #1f54c9;
  --color-border: #e6e8ec;
  --color-card: #ffffff;

  /* Layout */
  --container: 1080px;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(16, 24, 40, 0.06), 0 8px 24px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 12px 40px rgba(16, 24, 40, 0.12);

  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1rem; }
a { color: var(--color-accent); text-decoration: none; }
a:hover { color: var(--color-accent-dark); }
img { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; }

.btn-lg { padding: .9rem 1.7rem; font-size: 1.05rem; }

.btn-primary { background: var(--color-accent); color: #fff; }
.btn-primary:hover { background: var(--color-accent-dark); color: #fff; box-shadow: var(--shadow); }

.btn-ghost { background: transparent; color: var(--color-text); border-color: var(--color-border); }
.btn-ghost:hover { background: var(--color-bg-alt); color: var(--color-text); }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { font-weight: 800; font-size: 1.25rem; color: var(--color-text); letter-spacing: -.02em; }
.brand-mark { color: var(--color-accent); }
.brand-rest { color: var(--color-text); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a { color: var(--color-muted); font-weight: 500; font-size: .95rem; }
.nav-links a:hover { color: var(--color-text); }
.nav-links a.btn { color: #fff; }
.nav-links a.btn:hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: .2s ease;
}

/* ---------- Hero ---------- */
.hero {
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(900px 400px at 80% -10%, rgba(47, 109, 246, .10), transparent 60%),
    var(--color-bg);
}
.hero-inner { max-width: 760px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: .75rem;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.accent { color: var(--color-accent); }
.lead { font-size: 1.2rem; color: var(--color-muted); max-width: 600px; }

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; margin: 1.75rem 0 2.5rem; }

.hero-stats {
  display: flex;
  gap: 2.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.8rem; font-weight: 800; letter-spacing: -.02em; }
.hero-stats span { color: var(--color-muted); font-size: .9rem; }

/* ---------- Sections ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--color-bg-alt); }
.section-title { font-size: clamp(1.7rem, 3.5vw, 2.3rem); letter-spacing: -.02em; }
.section-sub { color: var(--color-muted); font-size: 1.1rem; max-width: 560px; margin-bottom: 2.5rem; }

/* ---------- Grid ---------- */
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- Cards ---------- */
.card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card h3 { font-size: 1.2rem; }
.card p { color: var(--color-muted); margin: 0; }
.card-icon { font-size: 2rem; margin-bottom: .75rem; }

/* ---------- Problems ---------- */
.problem {
  display: flex;
  gap: .9rem;
  align-items: flex-start;
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
}
.problem p { margin: 0; font-weight: 500; }
.problem-check {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: rgba(47, 109, 246, .12);
  color: var(--color-accent);
  border-radius: 50%;
  font-weight: 700;
  font-size: .85rem;
}

/* ---------- Pricing / offers ---------- */
.price-card { display: flex; flex-direction: column; position: relative; }
.price-card .price { font-size: 1.9rem; font-weight: 800; margin: .25rem 0 .5rem; letter-spacing: -.02em; }
.price-card .price span { font-size: 1rem; font-weight: 500; color: var(--color-muted); }
.price-desc { color: var(--color-muted); }
.price-card.featured {
  border-color: var(--color-accent);
  box-shadow: 0 12px 40px rgba(47, 109, 246, .18);
}
.badge {
  position: absolute;
  top: -12px; right: 1.4rem;
  background: var(--color-accent);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .25rem .7rem;
  border-radius: 999px;
}
.check-list { list-style: none; padding: 0; margin: .5rem 0 1.5rem; flex: 1; }
.check-list li { padding-left: 1.6rem; position: relative; margin-bottom: .5rem; color: var(--color-muted); }
.check-list li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--color-accent); font-weight: 700;
}

/* ---------- About ---------- */
.about-inner { display: grid; grid-template-columns: 260px 1fr; gap: 3rem; align-items: center; }
.about-text { max-width: 560px; }
.photo-placeholder {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--color-accent), #7aa6ff);
  display: grid; place-items: center;
  color: #fff; font-size: 5rem; font-weight: 800;
}

/* ---------- Contact ---------- */
.contact-inner { max-width: 640px; }
.book-direct { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.book-or { color: var(--color-muted); font-size: .95rem; }
.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { font-weight: 600; font-size: .92rem; display: flex; flex-direction: column; gap: .4rem; }
.optional { font-weight: 400; color: var(--color-muted); }
.contact-form input,
.contact-form textarea {
  font: inherit;
  padding: .7rem .85rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(47, 109, 246, .15);
}
.form-status { margin: 0; font-weight: 500; min-height: 1.2em; }
.form-status.success { color: #128a4f; }
.form-status.error { color: #c0392b; }
.contact-alt { margin-top: 1.5rem; color: var(--color-muted); }

/* ---------- Problem cards ---------- */
.problem-card {
  background: var(--color-card);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow);
}
.problem-quote { font-size: 1.15rem; font-weight: 600; margin: 0 0 .6rem; }
.problem-stat { color: var(--color-muted); margin: 0; font-size: .95rem; }
.problem-stat strong { color: var(--color-text); }
.problem-src { display: block; margin-top: .6rem; font-size: .78rem; font-style: normal; }
.problem-src a { color: var(--color-muted); text-decoration: underline; text-underline-offset: 2px; }
.problem-src a:hover { color: var(--color-accent); }

/* ---------- Service cards ---------- */
.service-card { display: flex; flex-direction: column; }
.service-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.service-head h3 { margin: 0; font-size: 1.2rem; }
.service-problem { color: var(--color-text); margin: 0 0 .35rem; }
.service-card > p { color: var(--color-muted); }
.service-outcome { color: var(--color-text) !important; font-weight: 600; margin-top: auto; padding-top: .5rem; }

/* Featured / flagship service card */
.service-featured {
  position: relative;
  margin-bottom: 1.5rem;
  border-color: var(--color-accent);
  border-width: 1.5px;
  background:
    linear-gradient(180deg, rgba(47, 109, 246, .05), rgba(47, 109, 246, 0)),
    var(--color-card);
  box-shadow: var(--shadow-lg);
}
.featured-badge {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: #fff;
  background: var(--color-accent);
  padding: .25rem .6rem;
  border-radius: 999px;
}
.service-featured .service-head h3 { font-size: 1.4rem; }

.section-cta { text-align: center; margin-top: 2.5rem; }

/* ---------- Steps / how it works ---------- */
.steps {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.step { position: relative; padding-top: .5rem; }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-accent); color: #fff;
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: 1rem;
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--color-muted); margin: 0; }

/* ---------- Proof ---------- */
.proof-card h3 { font-size: 1.2rem; display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.proof-year { font-size: .85rem; font-weight: 500; color: var(--color-muted); }
.proof-card p { color: var(--color-muted); margin: 0; }
.proof-card strong { color: var(--color-text); }

.testimonial {
  margin: 2rem 0 0;
  padding: 1.5rem 1.75rem;
  border-left: 3px solid var(--color-accent);
  background: var(--color-bg-alt);
  border-radius: var(--radius);
  font-size: 1.15rem;
}
.testimonial cite { display: block; margin-top: .75rem; font-size: .9rem; color: var(--color-muted); font-style: normal; }

.creds { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2.5rem; }
.cred {
  font-size: .85rem; font-weight: 500;
  color: var(--color-muted);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: .4rem .9rem;
  background: var(--color-card);
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--color-border); padding: 2.5rem 0 1.5rem; background: var(--color-bg-alt); }
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.footer-tag { margin: .4rem 0 0; color: var(--color-muted); font-size: .95rem; }
.footer-contact { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-contact a { color: var(--color-muted); font-weight: 500; font-size: .92rem; }
.footer-contact a:hover { color: var(--color-text); }
.footer-copy { margin: 0; color: var(--color-muted); font-size: .85rem; padding-top: 1.25rem; border-top: 1px solid var(--color-border); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
  .about-inner { grid-template-columns: 1fr; gap: 2rem; }
  .about-photo { max-width: 220px; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: .5rem 1.25rem 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { padding: .35rem 0; }
  .nav-links a.btn { margin-top: .5rem; }

  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}
