/* Purple Piranha - site styles (hand-written, no build step) */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-display: swap;
}
@font-face {
  font-family: "Figtree";
  src: url("../fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --purple: #7d317b;
  --purple-deep: #3d1340;
  --ink: #2a1230;
  --lilac: #f6eef7;
  --paper: #ffffff;
  --muted: #5d4a62;

  /* Brand spectrum - keep this order */
  --blue: #009ee3;
  --green: #3fa435;
  --yellow: #ffed00;
  --orange: #ef7900;
  --magenta: #e6007e;
  --spectrum: linear-gradient(to right,
      var(--blue) 0 20%, var(--green) 20% 40%, var(--yellow) 40% 60%,
      var(--orange) 60% 80%, var(--magenta) 80% 100%);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --radius: 1.25rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --max: 72rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); }
a:hover { color: var(--purple-deep); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.5rem, 6.5vw, 4.75rem); font-weight: 800; margin-bottom: .3em; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.375rem; font-weight: 700; }
p { margin: 0 0 1em; max-width: 62ch; }
h1:focus { outline: none; }

:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section-tint { background: var(--lilac); }
.lead { font-size: 1.25rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---- Spectrum bar ---- */
.spectrum { height: 10px; background: var(--spectrum); }
.spectrum-thick { height: 18px; }
.site-header .spectrum { transform-origin: left; animation: sweep .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes sweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---- Buttons ---- */
.btn {
  display: inline-block; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--magenta); color: #fff; transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--purple-deep); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--yellow); color: var(--ink); }
.btn-outline { background: transparent; border-color: currentColor; color: #fff; }
.btn-outline:hover { background: #fff; color: var(--purple-deep); }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---- Header / nav ---- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 12px rgba(42,18,48,.08); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .75rem; }
.logo img { height: 4rem; width: auto; }
@media (min-width: 52rem) { .header-row { padding-block: 1.1rem; } .logo img { height: 5.25rem; } }
.nav-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 2.75rem; height: 2.75rem; padding: .7rem; cursor: pointer; border-radius: .75rem;
}
.nav-toggle span { display: block; height: 3px; border-radius: 2px; background: var(--purple); }
.nav-toggle-input:focus-visible + .nav-toggle { outline: 3px solid var(--magenta); }
.site-nav {
  display: none; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; padding: 1rem var(--gutter) 1.5rem; flex-direction: column; gap: .25rem;
  box-shadow: 0 12px 24px rgba(42,18,48,.12);
}
.nav-toggle-input:checked ~ .site-nav { display: flex; }
.nav-link { display: block; padding: .6rem .25rem; font-weight: 600; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; }
.nav-link:hover { color: var(--purple); }
.nav-link.active { color: var(--purple); border-bottom-color: var(--magenta); }
.site-nav .btn { margin-top: .5rem; text-align: center; }

@media (min-width: 52rem) {
  .nav-toggle { display: none; }
  .site-nav {
    display: flex; position: static; flex-direction: row; align-items: center; gap: 1.75rem;
    padding: 0; box-shadow: none; background: none;
  }
  .site-nav .btn { margin: 0; padding: .6rem 1.25rem; }
}

/* ---- Home hero ---- */
.hero {
  background: radial-gradient(120% 90% at 85% 0%, var(--purple) 0%, var(--purple-deep) 70%);
  color: #fff; overflow: hidden;
}
.hero-grid { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2rem, 5vw, 4rem); }
.hero p { color: #f1e3f2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.hero-art { position: relative; padding: 0 0 2rem 0; }
.hero-photo { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: 1.5rem 1.5rem 7rem 1.5rem; }
.hero-photo-small {
  position: absolute; left: -.5rem; bottom: 0; width: 42%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 1rem; border: 6px solid var(--purple-deep);
}
.swatches { position: absolute; top: -.875rem; right: 1.75rem; display: flex; gap: .45rem; }
.swatches i { display: block; width: 1.75rem; height: 1.75rem; border-radius: 50%; }
.swatches i:nth-child(1) { background: var(--blue); }
.swatches i:nth-child(2) { background: var(--green); }
.swatches i:nth-child(3) { background: var(--yellow); }
.swatches i:nth-child(4) { background: var(--orange); }
.swatches i:nth-child(5) { background: var(--magenta); }
@media (min-width: 52rem) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 4rem; }
}

/* ---- Inner page hero ---- */
.page-hero { position: relative; color: #fff; background: var(--purple-deep); overflow: hidden; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.page-hero .wrap { position: relative; padding-block: clamp(3rem, 9vw, 6rem); }
.page-hero h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); }
.page-hero p { font-size: 1.25rem; color: #f6ebf7; }

/* ---- Service tiles ---- */
.section-head { max-width: 46rem; margin-bottom: 2rem; }
.section-head p { margin-bottom: 0; }
.tiles { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.tile { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--tile, var(--lilac)); color: var(--ink); }
.tile img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.tile-body { padding: 1.25rem 1.5rem 1.75rem; }
.tile-body p { margin-bottom: 0; max-width: none; }
.tile-blue { --tile: var(--blue); }
.tile-green { --tile: var(--green); }
.tile-yellow { --tile: var(--yellow); }
.tile-orange { --tile: var(--orange); }
.tile-magenta { --tile: var(--magenta); color: #fff; }
@media (min-width: 40rem) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile-wide .tile-body p + p { margin-top: 1.25rem; }
@media (min-width: 40rem) {
  .tile-wide { grid-column: 1 / -1; flex-direction: row; }
  .tile-wide img { width: 50%; aspect-ratio: auto; flex: none; }
  .tile-wide .tile-body { width: 50%; align-self: center; padding: 2rem 2.5rem; }
}

/* ---- Process ---- */
.split { display: grid; gap: 2.5rem; align-items: center; }
.split-photo { width: 100%; border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 52rem) { .split { grid-template-columns: 1fr 1fr; gap: 4rem; } }
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.steps li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; }
.steps b {
  display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.2rem; color: var(--ink); background: var(--c);
}
.steps li:nth-child(1) { --c: var(--blue); }
.steps li:nth-child(2) { --c: var(--green); }
.steps li:nth-child(3) { --c: var(--yellow); }
.steps li:nth-child(4) { --c: var(--orange); }
.steps p { margin: 0; }
.steps strong { display: block; font-size: 1.15rem; }

/* ---- Photo trio ---- */
.trio { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.trio figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.trio img { width: 100%; height: 100%; min-height: 16rem; aspect-ratio: 4 / 5; object-fit: cover; }
.trio .pos-left img { object-position: 18% 50%; }
.trio .pos-top img { object-position: 50% 30%; }
.trio figcaption {
  position: absolute; left: 0; bottom: 0; right: 0; padding: 2.5rem 1.25rem 1rem; color: #fff; font-weight: 700;
  background: linear-gradient(to top, rgba(42,18,48,.85), transparent);
}
@media (min-width: 40rem) { .trio { grid-template-columns: repeat(3, 1fr); } }

/* ---- CTA band ---- */
.cta { position: relative; color: #fff; background: var(--purple-deep); overflow: hidden; }
.cta-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(42,18,48,.82), rgba(42,18,48,.35)); }
.cta .wrap { z-index: 1; }
.cta .wrap { position: relative; padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.cta p { font-size: 1.25rem; }

/* ---- Footer ---- */
.site-footer { background: #fff; }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.footer-grid h2 { font-size: 1.1rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.footer-logo { height: 6.5rem; width: auto; margin-bottom: .75rem; }
.footer-legal { padding-block: 1rem 2rem; color: var(--muted); font-size: .95rem; border-top: 1px solid #e7d9e8; }
.footer-legal p { margin: 0; max-width: none; }
@media (min-width: 52rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; } }

/* ---- Portfolio ---- */
.cards { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { border-radius: var(--radius); overflow: hidden; background: var(--lilac); }
.card-shot { display: grid; place-items: center; aspect-ratio: 16 / 10; background: var(--c); color: var(--ink); font-weight: 700; }
img.card-shot { display: block; width: 100%; height: auto; object-fit: cover; object-position: top; }
.card:nth-child(5n+1) { --c: var(--blue); }
.card:nth-child(5n+2) { --c: var(--green); }
.card:nth-child(5n+3) { --c: var(--yellow); }
.card:nth-child(5n+4) { --c: var(--orange); }
.card:nth-child(5n+5) { --c: var(--magenta); }
.card-body { padding: 1.25rem 1.5rem 1.5rem; }
.card-body p { margin-bottom: 0; }
.card-body p + p { margin-top: .75rem; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 .6rem; padding: 0; }
.tag { display: inline-block; padding: .15rem .7rem; border-radius: 999px; background: var(--purple); color: #fff; font-size: .875rem; font-weight: 600; }

/* ---- Contact form ---- */
.contact-grid { display: grid; gap: 3rem; }
@media (min-width: 52rem) { .contact-grid { grid-template-columns: 1.3fr 1fr; } }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: .3rem; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); padding: .75rem 1rem; background: #fff;
  border: 2px solid #8d758f; border-radius: .75rem;
}
.field input:focus, .field textarea:focus { border-color: var(--purple); outline: 3px solid var(--magenta); outline-offset: 2px; }
.hint { color: var(--muted); font-weight: 400; }
.validation-message { color: #b00020; font-weight: 600; font-size: .95rem; }
.invalid { border-color: #b00020 !important; }
.alert { padding: 1rem 1.25rem; border-radius: .75rem; margin-bottom: 1.25rem; font-weight: 600; }
.alert-ok { background: #e3f4e1; color: #1d5a17; }
.alert-error { background: #fde3e8; color: #8c0a24; }
.aside-card { padding: 1.5rem; border-radius: var(--radius); background: var(--lilac); }
.aside-card ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.honeypot { position: absolute; left: -9999px; }

/* ---- Blazor chrome ---- */
#blazor-error-ui {
  background: #fff7c2; bottom: 0; box-shadow: 0 -1px 4px rgba(0,0,0,.25); display: none;
  left: 0; padding: .6rem 1.25rem .7rem; position: fixed; width: 100%; z-index: 1000; color: #000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-header .spectrum { animation: none; }
}

/* ---- Home polish ---- */
.strip { background: #fff; border-bottom: 1px solid #eadcec; }
.strip-list { list-style: none; margin: 0 auto; padding-block: 1.1rem; display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-weight: 600; }
.strip-list li { display: flex; align-items: center; gap: .6rem; }
.strip-list li::before { content: ""; width: .8rem; height: .8rem; border-radius: 50%; background: var(--dot); flex: none; }
.strip-list li:nth-child(1) { --dot: var(--blue); }
.strip-list li:nth-child(2) { --dot: var(--green); }
.strip-list li:nth-child(3) { --dot: var(--magenta); }

/* whole tile is clickable via its heading link */
.h3 { font-size: 1.375rem; font-weight: 700; }
.tile { position: relative; transition: transform .15s ease; }
.tile h3 a { color: inherit; text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; }
.tile h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.tile:has(h3 a):hover { transform: translateY(-3px); }
.tile:focus-within { outline: 3px solid var(--magenta); outline-offset: 3px; }
.tile h3 a:focus-visible { outline: none; }
.tile-magenta h3 a { color: #fff; }

.split-photo-tall { aspect-ratio: 4 / 3; }
@media (min-width: 52rem) { .split-photo-tall { aspect-ratio: 4 / 5; } }
@media (min-width: 52rem) { .split-reverse .split-photo { order: 2; } }
.points { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.5rem; }
.points li { padding-left: 1.25rem; border-left: 6px solid var(--bar); }
.points li:nth-child(1) { --bar: var(--blue); }
.points li:nth-child(2) { --bar: var(--orange); }
.points li:nth-child(3) { --bar: var(--magenta); }
.points h3 { margin-bottom: .25rem; }
.points p { margin: 0; }

@media (prefers-reduced-motion: reduce) { .tile { transition: none; } .tile:hover { transform: none; } }

/* ---- Footer links and long-form text ---- */
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin-top: .5rem !important; }
.prose > * { max-width: 48rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2rem; }

#cookie-declaration { margin-top: 1rem; overflow-x: auto; }

.btn-dark { background: var(--purple-deep); color: #fff; }
.btn-dark:hover { background: var(--purple); color: #fff; }
code { background: var(--lilac); padding: .1rem .4rem; border-radius: .35rem; }
.hero-actions + .hint { margin-top: 1.5rem; }
.footer-phone { margin-bottom: 1rem; }
.footer-legal p + p { margin-top: .25rem; }
