/* ============================================================
   HALCYON — free multi-page website template
   ------------------------------------------------------------
   REBRAND IN ONE PLACE: change --accent just below.
   Every button, link, icon, focus ring and glow derives from it.

   No build step. No dependencies. No external requests.
   ============================================================ */

:root {
  --accent: #5b7cfa;

  --bg:        #0c0e14;
  --bg-soft:   #12151d;
  --bg-raised: #171b25;
  --text:      #f2f4f9;
  --text-mid:  #a3acc0;
  --text-dim:  #6c7690;
  --line:      rgba(255, 255, 255, 0.09);

  --measure: 34rem;
  --shell: 68rem;
  --radius: 14px;
  --pad: clamp(1.25rem, 4vw, 2rem);

  --step--1: clamp(0.82rem, 0.79rem + 0.14vw, 0.89rem);
  --step-0:  clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  --step-1:  clamp(1.2rem, 1.11rem + 0.44vw, 1.45rem);
  --step-2:  clamp(1.5rem, 1.32rem + 0.9vw, 2.05rem);
  --step-3:  clamp(1.95rem, 1.6rem + 1.75vw, 3rem);
  --step-4:  clamp(2.5rem, 1.85rem + 3.2vw, 4.4rem);
}

/* Light mode follows the visitor's system setting. No toggle to wire up,
   no flash on load. Delete this block to stay dark permanently. */
@media (prefers-color-scheme: light) {
  :root {
    --bg:        #ffffff;
    --bg-soft:   #f5f6fa;
    --bg-raised: #ffffff;
    --text:      #12151d;
    --text-mid:  #4c5568;
    --text-dim:  #78829a;
    --line:      rgba(12, 14, 20, 0.11);
  }
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { line-height: 1.1; letter-spacing: -0.022em; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

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

.shell { width: min(100% - var(--pad) * 2, var(--shell)); margin-inline: auto; }
[id] { scroll-margin-top: 5.5rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--text-dim);
}
.eyebrow::before {
  content: ""; width: 0.4rem; height: 0.4rem; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent);
}
.lede { font-size: var(--step-1); color: var(--text-mid); max-width: var(--measure); }

.skip {
  position: absolute; left: 0.5rem; top: -3rem; z-index: 99;
  background: var(--accent); color: #fff; padding: 0.6rem 1rem;
  border-radius: 8px; text-decoration: none; font-weight: 600;
  transition: top 0.15s ease;
}
.skip:focus { top: 0.5rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.78rem 1.4rem; border-radius: 9px; border: 1px solid transparent;
  font: inherit; font-size: var(--step--1); font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 86%, #fff); }
.btn--ghost { border-color: var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); }

/* ---------- logo ---------- */
/* The mark is inline SVG so it inherits the accent and needs no extra request.
   assets/logo.svg is the same artwork as a standalone file — swap both when
   you drop in your own. */
.brand { display: inline-flex; align-items: center; gap: 0.62rem; text-decoration: none; }
.brand-mark { width: 1.85rem; height: 1.85rem; flex: none; }
.brand-name {
  font-size: 1.12rem; font-weight: 700; letter-spacing: -0.03em; color: var(--text);
}
.brand-name em {
  font-style: normal; color: var(--accent);
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 4.1rem; }
.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a {
  font-size: var(--step--1); color: var(--text-mid); text-decoration: none;
  transition: color 0.14s ease; position: relative; padding-block: 0.35rem;
}
.nav-links a:hover { color: var(--text); }
/* Mark the current page. Each page sets aria-current="page" on its own link. */
.nav-links a[aria-current="page"] { color: var(--text); font-weight: 600; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.1rem;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 0.45rem 0.6rem; color: var(--text); cursor: pointer;
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn--ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.is-open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    position: absolute; left: 0; right: 0; top: 4.1rem;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 1.25rem var(--pad) 1.5rem;
  }
  .nav-links.is-open a[aria-current="page"]::after { display: none; }
}

/* ---------- sections ---------- */
section { padding-block: clamp(3.5rem, 9vw, 7rem); }
.section-head { max-width: var(--measure); margin-bottom: 2.75rem; }
.section-head h2 { font-size: var(--step-2); margin: 0.9rem 0 0.7rem; }
.section-head p { color: var(--text-mid); }
.section--soft { background: var(--bg-soft); border-block: 1px solid var(--line); }

/* ---------- page header (inner pages) ---------- */
.page-head { position: relative; overflow: hidden; padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-head::before {
  content: ""; position: absolute; inset: -60% 55% 30% -25%; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 62%);
  filter: blur(70px); pointer-events: none;
}
.page-head .shell { position: relative; z-index: 1; }
.page-head h1 { font-size: var(--step-3); margin: 1rem 0 1rem; }

/* ---------- hero (home) ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(4rem, 11vw, 8rem) clamp(3rem, 7vw, 5rem); }
.hero::before {
  content: ""; position: absolute; inset: -35% 40% 40% -20%; z-index: 0;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 26%, transparent), transparent 62%);
  filter: blur(70px); pointer-events: none;
}
.hero .shell { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { font-size: var(--step-4); margin: 1.15rem 0 1.25rem; }
.hero .lede { margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: 1.5rem 1rem; border-top: 1px solid var(--line);
  padding-top: 2rem; margin-top: clamp(2.5rem, 6vw, 4rem);
}
.stat strong { display: block; font-size: var(--step-2); font-weight: 600; letter-spacing: -0.03em; }
.stat span { font-size: var(--step--1); color: var(--text-dim); }

/* ---------- images ---------- */
/* Every .media is a drop-in slot: replace the <img> src and keep the wrapper.
   The aspect-ratio holds the layout steady so swapping an image never shifts
   the page while it loads. */
.media {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-soft);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media--wide { aspect-ratio: 16 / 10; }
.media--square { aspect-ratio: 1 / 1; }
.media--portrait { aspect-ratio: 4 / 5; }
.media--tall { aspect-ratio: 3 / 4; }

figure { margin: 0; }
figcaption { font-size: var(--step--1); color: var(--text-dim); margin-top: 0.7rem; }

/* ---------- cards ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr)); gap: 1.1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
.card {
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.65rem 1.55rem;
  transition: border-color 0.16s ease, transform 0.16s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); transform: translateY(-2px); }
.card-icon {
  width: 2.3rem; height: 2.3rem; border-radius: 9px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent); margin-bottom: 1.1rem;
}
.card h3 { font-size: var(--step-1); margin-bottom: 0.5rem; }
.card p { font-size: 0.95rem; color: var(--text-mid); }

/* Service card with an image on top */
.card--media { padding: 0; overflow: hidden; }
.card--media .media { border: 0; border-radius: 0; border-bottom: 1px solid var(--line); }
.card--media .card-body { padding: 1.5rem 1.55rem 1.7rem; }

/* ---------- work gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.1rem; }
.work-item { text-decoration: none; display: block; }
.work-item .media { transition: border-color 0.16s ease, transform 0.16s ease; }
.work-item:hover .media { border-color: var(--accent); transform: translateY(-3px); }
.work-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: 0.9rem; }
.work-meta h3 { font-size: var(--step-0); }
.work-meta span { font-size: var(--step--1); color: var(--text-dim); white-space: nowrap; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem 1.5rem; counter-reset: step; }
.step { counter-increment: step; padding-top: 1.25rem; border-top: 2px solid var(--line); }
.step::before {
  content: "0" counter(step); display: block; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; color: var(--accent); margin-bottom: 0.6rem;
}
.step h3 { font-size: var(--step-0); margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--text-mid); }

/* ---------- quote ---------- */
.quote blockquote { max-width: 46rem; margin-inline: auto; text-align: center; }
.quote p { font-size: var(--step-2); line-height: 1.35; letter-spacing: -0.02em; margin-bottom: 1.5rem; }
.quote footer { font-size: var(--step--1); color: var(--text-dim); }
.quote cite { font-style: normal; font-weight: 600; color: var(--text-mid); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.1rem; align-items: start; }
.tier { position: relative; background: var(--bg-raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.85rem 1.65rem; }
.tier--featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 18px 44px -28px color-mix(in srgb, var(--accent) 65%, transparent); }
.tier-flag {
  position: absolute; top: -0.68rem; left: 1.65rem; background: var(--accent); color: #fff;
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase;
  padding: 0.24rem 0.6rem; border-radius: 999px;
}
.tier h3 { font-size: var(--step-0); color: var(--text-mid); font-weight: 600; margin-bottom: 0.7rem; }
.tier-price { font-size: var(--step-3); font-weight: 600; letter-spacing: -0.035em; line-height: 1; }
/* Every tier carries this label line so the three big numbers share a baseline. */
.tier-from {
  display: block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.5rem;
}
.tier ul { list-style: none; padding: 0; margin: 1.35rem 0 1.6rem; display: grid; gap: 0.6rem; }
.tier li { display: flex; gap: 0.6rem; font-size: 0.93rem; color: var(--text-mid); }
.tier li svg { flex: none; margin-top: 0.32rem; color: var(--accent); }
.tier .btn { width: 100%; }

/* ---------- team ---------- */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem; }
.member h3 { font-size: var(--step-0); margin: 0.95rem 0 0.15rem; }
.member p { font-size: var(--step--1); color: var(--text-dim); }

/* ---------- faq ---------- */
.faq { max-width: 44rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0; cursor: pointer; font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-size: 1.35rem; font-weight: 400; color: var(--accent);
  transition: transform 0.18s ease; line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 1.2rem; color: var(--text-mid); font-size: 0.96rem; max-width: 40rem; }

/* ---------- form ---------- */
.form { display: grid; gap: 1.1rem; max-width: 34rem; }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--step--1); font-weight: 600; }
.field input, .field textarea, .field select {
  font: inherit; font-size: var(--step--1); color: var(--text);
  background: var(--bg-raised); border: 1px solid var(--line);
  border-radius: 9px; padding: 0.7rem 0.85rem; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field-hint { font-size: 0.78rem; color: var(--text-dim); }

.contact-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-detail { display: grid; gap: 1.4rem; }
.contact-detail h3 { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.12em; color: var(--text-dim); margin-bottom: 0.3rem; }
.contact-detail a { color: var(--accent); text-decoration: none; }
.contact-detail a:hover { text-decoration: underline; }

/* ---------- final cta ---------- */
.cta-band { text-align: center; }
.cta-box {
  border: 1px solid var(--line); border-radius: 20px; padding: clamp(2.25rem, 6vw, 3.75rem) var(--pad);
  background:
    radial-gradient(120% 130% at 50% 0%, color-mix(in srgb, var(--accent) 17%, transparent), transparent 62%),
    var(--bg-soft);
}
.cta-box h2 { font-size: var(--step-3); margin-bottom: 0.9rem; }
.cta-box p { color: var(--text-mid); max-width: 34rem; margin: 0 auto 1.9rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 2.75rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center; justify-content: space-between; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.4rem; }
.footer-links a { font-size: var(--step--1); color: var(--text-mid); text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.footer-note { font-size: var(--step--1); color: var(--text-dim); }

/* ---------- reveal on scroll ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.55s ease, transform 0.55s ease; }
  .reveal.is-in { opacity: 1; transform: none; }
}
