/* Nelford Consulting - styles.css */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --surface: #ffffff;
  --text: #14171f;
  --text-muted: #5a6472;
  --border: #e6e8ec;
  --brand: #4f46e5;
  --brand-strong: #4338ca;
  --brand-contrast: #ffffff;
  --accent-glow: rgba(79, 70, 229, 0.12);
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
  --radius: 16px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Explicit dark choice (via the toggle) */
:root[data-theme="dark"] {
  --bg: #0c0e14;
  --bg-alt: #12151d;
  --surface: #151924;
  --text: #eef1f6;
  --text-muted: #9aa4b2;
  --border: #232838;
  --brand: #8b85ff;
  --brand-strong: #a29bff;
  --brand-contrast: #0c0e14;
  --accent-glow: rgba(139, 133, 255, 0.16);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
}

/* System dark, only when the visitor has not made an explicit choice */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0c0e14;
    --bg-alt: #12151d;
    --surface: #151924;
    --text: #eef1f6;
    --text-muted: #9aa4b2;
    --border: #232838;
    --brand: #8b85ff;
    --brand-strong: #a29bff;
    --brand-contrast: #0c0e14;
    --accent-glow: rgba(139, 133, 255, 0.16);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px rgba(0, 0, 0, 0.4);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 0.4em; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1rem; }

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand);
  color: var(--brand-contrast);
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.75rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 4px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--border);
}
.brand-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: 1.02rem; letter-spacing: -0.01em; }

.site-nav { display: flex; align-items: center; }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu a { color: var(--text-muted); font-weight: 600; font-size: 0.95rem; }
.nav-menu a:hover { color: var(--text); text-decoration: none; }
.nav-cta {
  background: var(--brand);
  color: var(--brand-contrast) !important;
  padding: 9px 16px;
  border-radius: 10px;
}
.nav-cta:hover { background: var(--brand-strong); }

/* Theme toggle */
.theme-toggle {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  flex: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle svg { width: 20px; height: 20px; }
/* Show moon in light, sun in dark, keeping icon in sync with auto + explicit themes */
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

.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(--text);
  border-radius: 2px;
  transition: 0.2s;
}

/* Buttons */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: 12px;
  transition: transform 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--brand); color: var(--brand-contrast); box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-strong); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); background: var(--surface); }
.btn-lg { padding: 16px 32px; font-size: 1.08rem; }

/* Hero */
.hero {
  position: relative;
  padding: clamp(72px, 12vw, 132px) 0 clamp(56px, 9vw, 96px);
  background:
    radial-gradient(60% 90% at 15% -10%, var(--accent-glow), transparent 60%),
    radial-gradient(50% 80% at 100% 0%, var(--accent-glow), transparent 55%);
}
.hero-inner { max-width: 760px; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: var(--text-muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 20px; }
.hero-note { font-size: 0.92rem; color: var(--text-muted); margin: 0; }

/* Sections */
.section { padding: clamp(64px, 9vw, 104px) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 0 48px; }
.section-sub { font-size: 1.1rem; color: var(--text-muted); margin: 0; }

/* Service cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--brand); }
.card-icon {
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--brand);
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}
.card p { color: var(--text-muted); margin: 0; }

/* Approach */
.approach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 48px;
}
.approach-item { border-top: 2px solid var(--brand); padding-top: 18px; }
.approach-item p { color: var(--text-muted); margin: 0; }

/* Story */
.story-inner { max-width: 760px; }
.story-lead { font-size: clamp(1.15rem, 2.4vw, 1.45rem); color: var(--text); font-weight: 500; }
.story-inner p:not(.story-lead):not(.eyebrow) { color: var(--text-muted); font-size: 1.08rem; }

/* Price card */
.price-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: 0 12px 40px var(--accent-glow);
  text-align: center;
}
.price-head { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-bottom: 24px; }
.price { font-size: clamp(2.6rem, 7vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--text); }
.price-unit { color: var(--text-muted); font-weight: 600; }
.check-list { list-style: none; margin: 0 0 28px; padding: 0; text-align: left; }
.check-list li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-top: 1px solid var(--border);
  color: var(--text);
}
.check-list li:first-child { border-top: 0; }
.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 18px;
  height: 10px;
  border-left: 2.5px solid var(--brand);
  border-bottom: 2.5px solid var(--brand);
  transform: rotate(-45deg);
}
.price-note { margin: 18px 0 0; font-size: 0.92rem; color: var(--text-muted); }

/* Additional services panel */
.also-panel {
  margin-top: 32px;
  padding: 28px 32px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.also-panel h3 { margin-bottom: 8px; }
.also-panel p { margin: 0; color: var(--text-muted); }
.also-panel strong { color: var(--text); }

/* Card "see the outcomes" button */
.card-more {
  margin-top: 18px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--brand);
  font: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
}
.card-more:hover { text-decoration: underline; }

/* Support guarantee */
.guarantee {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 32px;
  padding: 28px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--brand);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.guarantee-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--brand);
}
.guarantee-copy h3 { margin-bottom: 6px; }
.guarantee-copy p { margin: 0; color: var(--text-muted); }

/* Modals */
.modal {
  width: min(620px, calc(100vw - 32px));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 34px 34px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.modal::backdrop { background: rgba(8, 10, 16, 0.55); backdrop-filter: blur(2px); }
.modal[open] { animation: modal-in 0.18s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.modal .eyebrow { margin-bottom: 0.4rem; }
.modal h3 { font-size: 1.5rem; margin-bottom: 22px; }
.modal-close-form { margin: 0; position: absolute; top: 14px; right: 16px; }
.modal-close {
  background: none;
  border: 0;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
}
.modal-close:hover { color: var(--text); background: var(--bg-alt); }
.modal-sub { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin: 24px 0 10px; }
.modal .check-list { margin-bottom: 26px; }
.modal .btn { display: inline-block; }

.outcomes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.outcome { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 12px; padding: 16px 14px; }
.outcome-label { display: block; font-weight: 700; font-size: 0.82rem; color: var(--brand); margin-bottom: 6px; }
.outcome p { margin: 0; font-size: 0.92rem; color: var(--text-muted); }

/* Calendly embed */
.calendly-inline-widget { margin-top: 40px; border-radius: var(--radius); overflow: hidden; }
.cta-fallback { margin-top: 28px; }

@media (max-width: 620px) {
  .outcomes { grid-template-columns: 1fr; }
  .guarantee { flex-direction: column; gap: 12px; }
}

/* Examples */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.example-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.example-card:hover { transform: translateY(-4px); border-color: var(--brand); }
.example-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand);
  background: var(--accent-glow);
  padding: 5px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.example-card h3 { margin-bottom: 10px; }
.example-card p { color: var(--text-muted); margin: 0; }
.example-card-cta { display: flex; flex-direction: column; background: var(--bg-alt); border-style: dashed; }
.example-link { margin-top: auto; padding-top: 14px; font-weight: 700; }

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}
.about-photo img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-alt);
}
.about-copy p { color: var(--text-muted); }
.about-copy p:first-of-type { color: var(--text); }

/* CTA */
.cta { text-align: center; }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 28px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; background: var(--bg-alt); }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-copy { color: var(--text-muted); font-size: 0.92rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; }
.footer-links a { color: var(--text-muted); font-size: 0.92rem; font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: none; }

/* Responsive */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-photo { max-width: 300px; }
}

@media (max-width: 680px) {
  .approach-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: flex; }
  .nav-menu {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    display: none;
  }
  .nav-menu.open { display: flex; }
  .nav-menu li { padding: 6px 0; }
  .nav-cta { text-align: center; margin-top: 8px; }
}

/* FAQ */
.faq { max-width: 760px; }
.faq details {
  border-bottom: 1px solid var(--border);
  padding: 6px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 40px 18px 0;
  font-weight: 700;
  font-size: 1.08rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--text-muted); max-width: 68ch; }

/* Contact details */
.contact-lines { font-size: 1.05rem; font-weight: 600; }
.contact-lines a { color: var(--brand); }
.contact-sep { color: var(--text-muted); margin: 0 10px; }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 5vw, 2.6rem); margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); margin-bottom: 32px; }
.legal h2 { font-size: 1.3rem; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-muted); }
.legal ul { padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { font-weight: 600; }
.legal-note {
  margin-top: 40px;
  padding: 16px 18px;
  border: 1px dashed var(--border);
  border-radius: 12px;
  font-size: 0.9rem;
}
.legal-back { display: inline-block; margin-bottom: 28px; font-weight: 600; }

/* 404 */
.notfound { min-height: 72vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound-mark { width: 60px; height: 60px; margin: 0 auto 24px; padding: 8px; }
.notfound .lede { margin: 0 auto 28px; }

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