/* ==========================================================================
   Develop Motions — main.css
   Palette from Brand_Plan.md. --accent-text is a brightened magenta tuned to
   pass WCAG AA (4.5:1) on the near-black background; pure #C0007A is reserved
   for large display text, button fills, and the signature gradient.
   ========================================================================== */

:root {
  --bg: #0D0B12;
  --bg-raised: #161020;
  --violet: #1E0A3C;
  --magenta: #C0007A;
  --accent-text: #FF4DA3;
  --light: #F5F2F0;
  --muted: #B8AFC4;
  --line: rgba(245, 242, 240, 0.10);
  --gradient: linear-gradient(120deg, var(--violet), #6E1170 45%, var(--magenta));
  --radius: 14px;
  --font: "Montserrat", "Segoe UI", -apple-system, system-ui, Roboto, Arial, sans-serif;
}

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/montserrat-300.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/montserrat-400.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/montserrat-700.woff2") format("woff2");
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--light);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--light); }

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.6em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2rem);
}

.prose { max-width: 72ch; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.35em; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 62ch;
}
.lead strong { color: var(--light); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 0.9rem;
}

/* --- Skip link / focus ----------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--magenta);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* --- Header ------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 11, 18, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 70px;
}

.wordmark {
  font-size: 1.22rem;
  text-decoration: none;
  color: var(--light);
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.wordmark span { font-weight: 300; }
.wordmark strong {
  font-weight: 700;
  background: linear-gradient(100deg, var(--accent-text), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--magenta); /* fallback */
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.75rem);
}
.site-nav a {
  color: var(--light);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: var(--accent-text); }
.site-nav a[aria-current="page"] {
  color: var(--accent-text);
  font-weight: 700;
}

.nav-toggle {
  display: none;
  background: transparent;
  color: var(--light);
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

/* --- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-block;
  background-image: linear-gradient(120deg, var(--magenta), #8A1590 50%, var(--magenta));
  background-size: 220% 100%;
  background-position: 0% 50%;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 0;
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  cursor: pointer;
  transition: background-position 0.6s ease, transform 0.15s ease;
  animation: btn-sweep 7s linear infinite;
}
.btn:hover { color: #fff; background-position: 100% 50%; transform: translateY(-1px); }

@keyframes btn-sweep {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.btn-ghost {
  display: inline-block;
  color: var(--light);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid rgba(245, 242, 240, 0.3);
  border-radius: 999px;
  padding: 0.8rem 1.7rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.btn-ghost:hover { border-color: var(--accent-text); color: var(--accent-text); }

.btn-small { padding: 0.5rem 1.15rem; font-size: 0.9rem; animation: none; }
.btn-large { padding: 0.95rem 2.1rem; font-size: 1.08rem; }

/* --- Sections ------------------------------------------------------------ */

.section { padding-block: clamp(3rem, 7vw, 5rem); }
.section-alt { background: var(--bg-raised); border-block: 1px solid var(--line); }

.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head p { color: var(--muted); }

.hero { padding-block: clamp(3.5rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.8rem; }

.crumbs {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 1.4rem 0 0;
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-text); }

/* --- Grids & cards -------------------------------------------------------- */

.grid-2, .grid-3, .grid-4 { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
}
.section-alt .card { background: var(--bg); }
.card .price {
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.7rem;
}
.card p { color: var(--muted); font-size: 0.95rem; }
.card .card-link { margin-top: auto; font-weight: 700; font-size: 0.92rem; text-decoration: none; }

/* --- Facts strip ------------------------------------------------------------ */

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 1.2rem;
  padding: 0;
  margin: 0;
  list-style: none;
  text-align: center;
}
.fact-num {
  display: block;
  font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 700;
  background: linear-gradient(100deg, var(--accent-text), var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fact-label { color: var(--muted); font-size: 0.92rem; }

/* --- Process steps ------------------------------------------------------------ */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.2rem;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin-bottom: 0.6rem;
}
.steps h3 { margin-bottom: 0.4em; }
.steps p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* --- Service sections (services page) ---------------------------------------- */

.service {
  border-top: 1px solid var(--line);
  padding-block: 2.4rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 1.5rem 3rem;
}
.service:last-of-type { border-bottom: 1px solid var(--line); }
.service h2 { margin-bottom: 0.2em; }
.service .price-line {
  color: var(--accent-text);
  font-weight: 700;
  margin-bottom: 1rem;
}
.service ul { padding-left: 1.2rem; color: var(--muted); margin: 0; }
.service li { margin-bottom: 0.35em; }
.service .best-for {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  align-self: start;
}
.service .best-for h3 { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.service .best-for p { margin: 0 0 1rem; }

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

/* --- FAQ ------------------------------------------------------------ */

.faq-item { border-top: 1px solid var(--line); padding-block: 1.8rem; max-width: 76ch; }
.faq-item:last-of-type { border-bottom: 1px solid var(--line); }
.faq-item h2 { font-size: 1.2rem; margin-bottom: 0.5em; }
.faq-item p { color: var(--muted); }
.faq-item p strong { color: var(--light); }

/* --- Media / portfolio ------------------------------------------------------- */

.media-figure { margin: 0; }
.poster-wrap {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-raised);
}
.poster-wrap img, .poster-wrap video { width: 100%; }
.media-figure figcaption {
  font-size: 0.88rem;
  color: var(--muted);
  padding-top: 0.6rem;
}
.play-btn {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 0;
  background: rgba(13, 11, 18, 0.7);
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s ease;
}
.play-btn:hover { background: var(--magenta); }

.char-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 1.2rem; }
.char-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.2rem;
  text-align: center;
}
.char-avatar {
  width: 84px;
  height: 84px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  font-weight: 700;
  color: #fff;
  background: var(--gradient);
}
.char-card img.char-img {
  width: 84px;
  height: 84px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  object-fit: cover;
}
.char-card h3 { margin-bottom: 0.25em; font-size: 1.02rem; }
.char-card p { color: var(--muted); font-size: 0.87rem; margin: 0; }

.deliverables { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 1rem; }
.deliverables li {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--magenta);
  border-radius: 10px;
  padding: 1rem 1.2rem;
  font-size: 0.95rem;
}

/* --- CTA band ------------------------------------------------------------ */

.cta-band {
  background: var(--gradient);
  border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 3.5rem);
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); max-width: 55ch; margin-inline: auto; }
.cta-band .btn {
  background: var(--bg);
  background-image: none;
  animation: none;
  color: var(--light);
  margin-top: 0.8rem;
}
.cta-band .btn:hover { color: var(--accent-text); }
.cta-band .cta-alt { color: #fff; display: block; margin-top: 1.1rem; font-size: 0.95rem; }

/* --- Forms ------------------------------------------------------------ */

.contact-form { max-width: 620px; }
.contact-form label {
  display: block;
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.35rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: var(--bg-raised);
  border: 1px solid rgba(245, 242, 240, 0.18);
  border-radius: 10px;
  color: var(--light);
  font: inherit;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1.2rem;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--accent-text);
  outline-offset: 1px;
  border-color: transparent;
}
.contact-form textarea { min-height: 160px; resize: vertical; }

/* Honeypot — hidden from humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note { color: var(--muted); font-size: 0.9rem; }
.error-note {
  display: none;
  background: rgba(192, 0, 122, 0.15);
  border: 1px solid var(--magenta);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem;
}
.error-note.visible { display: block; }

/* --- Footer ------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-block: 2.8rem 1.6rem;
  font-size: 0.95rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2rem;
}
.site-footer address { font-style: normal; color: var(--muted); margin-top: 0.9rem; }
.footer-tagline { color: var(--muted); margin-top: 0.9rem; max-width: 40ch; }
.footer-nav { display: grid; gap: 0.5rem; align-content: start; justify-items: start; }
.footer-nav a { color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--accent-text); }
.footer-legal { color: var(--muted); font-size: 0.85rem; margin-top: 2.2rem; }

@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* --- Mobile nav ------------------------------------------------------------ */

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.25rem, 5vw, 2rem) 1.4rem;
    gap: 0.9rem;
  }
  .site-nav.open { display: flex; }
  .site-nav .nav-cta { text-align: center; }
}

/* --- Reduced motion ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
