/* ---- Brand settings: change these to restyle the whole site ---- */
:root {
  --bg: #f8f8fd;
  --surface: #ffffff;
  --text: #1e2235;
  --muted: #585d78;
  --accent: #5866d4;        /* periwinkle: buttons, links */
  --accent-dark: #3b45a8;
  --accent-soft: #eceeff;
  --periwinkle: #a9b2f7;    /* light periwinkle: glows, decoration */
  --lavender: #c9b8f5;
  --ink: #22264f;           /* deep navy for the AI spotlight */
  --border: #e3e4f0;
  --radius: 14px;
  --max: 1080px;
  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: .8em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; background: var(--surface); padding: 8px 12px; z-index: 100; }

/* ---- Buttons ---- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: 999px;
  background: var(--accent); color: #fff; text-decoration: none; font-weight: 600;
  transition: background .2s;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }
.btn.ghost:hover { background: var(--accent-soft); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248,248,253,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--font-head); font-size: 1.3rem; font-weight: 600; color: var(--text); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--text); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav .btn { color: #fff; padding: 10px 20px; }
.menu-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--text); }

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 24px 20px; background: var(--bg); border-bottom: 1px solid var(--border);
  }
  .nav.open { display: flex; }
  .section { padding: 56px 0; }
}

/* ---- Hero ---- */
.hero { padding: 110px 0 90px; }
.hero h1 { max-width: 820px; }

/* ---- Cards / grids ---- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 40px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.section.alt .card { background: var(--bg); }
.card ul { padding-left: 1.1em; margin: 0 0 1em; color: var(--muted); }
.card a.more { font-weight: 600; text-decoration: none; }

.stats { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin: 36px 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 2.4rem; color: var(--accent); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }

.split { display: grid; gap: 56px; grid-template-columns: 1fr 1.4fr; align-items: center; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; gap: 32px; } }
.photo-placeholder {
  aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--accent-soft);
  display: grid; place-items: center; color: var(--accent); font-weight: 600; text-align: center; padding: 20px;
}
.photo { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }

/* ---- Services detail ---- */
.service { padding: 40px 0; border-top: 1px solid var(--border); display: grid; gap: 32px; grid-template-columns: 1fr 1.5fr; }
.service:first-of-type { border-top: 0; }
@media (max-width: 760px) { .service { grid-template-columns: 1fr; gap: 12px; } }
.service ul { margin: 0; padding-left: 1.1em; }

/* ---- CTA band ---- */
.cta { background: linear-gradient(120deg, var(--accent-dark), var(--accent) 55%, #7f73d9); color: #fff; border-radius: var(--radius); padding: 56px 40px; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: rgba(255,255,255,.85); max-width: 560px; margin-left: auto; margin-right: auto; }
.cta .btn { background: #fff; color: var(--accent); }
.cta .btn:hover { background: var(--accent-soft); }

/* ---- Form ---- */
form { display: grid; gap: 16px; }
label { font-weight: 600; font-size: .95rem; display: grid; gap: 6px; }
input, textarea {
  font: inherit; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text);
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 140px; resize: vertical; }
form .btn { border: 0; cursor: pointer; font-size: 1rem; justify-self: start; }
.hidden { display: none; }

/* ---- Footer ---- */
.site-footer { padding: 48px 0; color: var(--muted); font-size: .95rem; }
.site-footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer strong { color: var(--text); font-family: var(--font-head); font-size: 1.1rem; }

/* ---- Small muted line under a heading (hours, company, dates) ---- */
.meta { color: var(--muted); font-size: .92rem; font-weight: 500; margin: -.2em 0 .9em; }
.service h3 { margin-bottom: .3em; }

/* ---- Homepage hero with headshot ---- */
.hero-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.hero-photo { max-width: 400px; justify-self: end; }
.narrow { max-width: 820px; }
@media (max-width: 760px) {
  .hero { padding: 48px 0 64px; }
  .hero-split { grid-template-columns: 1fr; gap: 28px; }
  .hero-photo { order: -1; max-width: 220px; justify-self: start; }
}

/* ---- AI touches ---- */
.badge-ai {
  display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em; vertical-align: middle;
  color: var(--accent-dark); background: linear-gradient(90deg, var(--accent-soft), #f1ebff);
  border: 1px solid var(--periwinkle);
}
.card.ai {
  border: 1.5px solid transparent;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
              linear-gradient(135deg, var(--periwinkle), var(--lavender), var(--accent)) border-box;
  box-shadow: 0 10px 30px -18px rgba(88,102,212,.55);
}

/* Soft periwinkle glow behind the homepage headshot */
.hero-photo-wrap { position: relative; justify-self: end; max-width: 400px; width: 100%; }
.hero-photo-wrap::before {
  content: ""; position: absolute; inset: -14% -12%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(169,178,247,.75), rgba(201,184,245,.35) 60%, transparent);
  filter: blur(18px); animation: glow 9s ease-in-out infinite alternate;
}
.hero-photo-wrap .hero-photo { max-width: none; }
.hero { position: relative; isolation: isolate; overflow: hidden; }
@keyframes glow { from { transform: translate(-3%, 2%) scale(1); } to { transform: translate(3%, -3%) scale(1.08); } }

/* AI spotlight section */
.spotlight { background: var(--ink); color: #e9ebff; padding: 88px 0; position: relative; overflow: hidden; }
.spotlight::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -140px; top: -180px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(169,178,247,.35), transparent); pointer-events: none;
}
.spotlight h2 { color: #fff; }
.spotlight .eyebrow { color: var(--periwinkle); }
.spotlight p { color: #c9cdf0; }
.spotlight a.more { color: #c9ceff; font-weight: 600; text-decoration: none; }
.spotlight a.more:hover { color: #fff; }
.spotlight .stats { margin: 28px 0; }
.spotlight .stat strong { color: #c9ceff; }
.spotlight .stat span { color: #aeb3dc; }
.spotlight-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; position: relative; }

/* Illustrative chat */
.chat {
  background: rgba(255,255,255,.06); border: 1px solid rgba(169,178,247,.35); border-radius: 18px;
  padding: 22px; display: grid; gap: 12px; box-shadow: 0 20px 60px -30px rgba(0,0,0,.6);
}
.chat-head { display: flex; align-items: center; gap: 8px; font-weight: 600; color: #fff; font-size: .95rem; padding-bottom: 6px; border-bottom: 1px solid rgba(169,178,247,.2); }
.chat-dot { width: 8px; height: 8px; border-radius: 50%; background: #7ee2b8; box-shadow: 0 0 0 4px rgba(126,226,184,.18); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: .95rem; line-height: 1.45; opacity: 0; animation: pop .5s ease forwards; }
.msg.user { justify-self: end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot { justify-self: start; background: #eef0ff; color: var(--ink); border-bottom-left-radius: 4px; }
.msg:nth-of-type(1) { animation-delay: .3s; }
.msg:nth-of-type(2) { animation-delay: 1.3s; }
.msg:nth-of-type(3) { animation-delay: 2.4s; }
.msg:nth-of-type(4) { animation-delay: 3.4s; }
.chat-note { font-size: .78rem; color: #9aa0cc; margin: 4px 0 0; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 760px) {
  .spotlight { padding: 64px 0; }
  .spotlight-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-photo-wrap { order: -1; max-width: 220px; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo-wrap::before { animation: none; }
  .msg { animation: none; opacity: 1; }
}

/* Company names that link to their websites */
.co-link { color: inherit; text-decoration: none; border-bottom: 1px solid var(--periwinkle); }
.co-link:hover { color: var(--accent); border-bottom-color: var(--accent); }
.co-link span { font-size: .75em; color: var(--accent); }
