/* ==========================================================
   Click Central — clickcentral.co.uk
   Palette: Ink #14110F · Coral #FF6F5B · Cream #FAF7F4
   Type:    Sora (display) · Poppins (body)
   ========================================================== */

:root {
  --ink: #14110F;
  --ink-2: #1C1815;
  --line: #2C2620;
  --cream: #FAF7F4;
  --cream-dim: #C7BFB6;
  --coral: #FF6F5B;
  --coral-deep: #E85B47;
  --nav-h: 76px;
  --radius: 16px;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  background: var(--ink);
  color: var(--cream);
  font-family: "Poppins", system-ui, -apple-system, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { font-family: "Sora", system-ui, sans-serif; line-height: 1.15; }

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

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

::selection { background: var(--coral); color: var(--ink); }

/* ---------- shared bits ---------- */

.eyebrow {
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.1rem;
}

.btn {
  display: inline-block;
  font-family: "Sora", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease,
              color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn--solid { background: var(--coral); color: var(--ink); }
.btn--solid:hover { background: var(--coral-deep); }

.btn--ghost { border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: var(--coral); color: var(--coral); }

.btn--lg { padding: 1rem 2.3rem; font-size: 1.02rem; }

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 50;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  max-width: var(--max);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav__logo { height: 38px; width: auto; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__link {
  font-family: "Sora", sans-serif;
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--cream-dim);
  position: relative;
  padding: 6px 0;
  transition: color 0.18s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.nav__link:hover,
.nav__link.is-active { color: var(--cream); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.nav__cta { padding: 0.6rem 1.3rem; font-size: 0.88rem; }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--cream);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.is-open span:nth-child(2) { opacity: 0; }
.nav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 24px 64px;
}

.hero__inner {
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
}

.hero__title {
  font-size: clamp(2.5rem, 6.4vw, 4.7rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  max-width: 15ch;
}

.hero__sub {
  margin-top: 1.6rem;
  max-width: 56ch;
  font-size: 1.07rem;
  color: var(--cream-dim);
}

.hero__cta {
  margin-top: 2.4rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.hero__cta-note {
  font-size: 0.9rem;
  color: var(--cream-dim);
  opacity: 0.85;
}

/* faint C-arc watermark, drawn in CSS so it scales crisply */
.hero__arc {
  position: absolute;
  right: -16vmin;
  top: 50%;
  transform: translateY(-50%) rotate(38deg);
  width: 72vmin;
  height: 72vmin;
  border: 9vmin solid var(--ink-2);
  border-right-color: transparent;
  border-radius: 50%;
  pointer-events: none;
}

/* ----- signature: the cursor that clicks the word "click" ----- */

.clickword {
  position: relative;
  display: inline-block;
  padding: 0 0.08em;
}
.clickword__text { position: relative; z-index: 2; }

/* coral "selection" highlight that sweeps in behind the word */
.clickword::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0; right: 0;
  bottom: 0.04em;
  height: 0.34em;
  background: var(--coral);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left;
}
.clickword.is-clicked::before {
  animation: cc-sweep 0.45s cubic-bezier(0.6, 0, 0.2, 1) forwards;
}
@keyframes cc-sweep { to { transform: scaleX(1); } }

/* the travelling cursor — its tip (top-left of the SVG) lands on the
   bottom-right corner of the word, like a real pointer clicking it */
.clickword__cursor {
  position: absolute;
  z-index: 3;
  width: clamp(22px, 2.6vw, 34px);
  height: clamp(22px, 2.6vw, 34px);
  left: calc(100% - 0.22em);
  top: 58%;
  opacity: 0;
  transform: translate(140px, 110px);
}
.clickword__cursor svg {
  width: 100%;
  height: 100%;
  fill: var(--coral);
  stroke: var(--ink);
  stroke-width: 1.4;
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.45));
}
.clickword.is-clicked .clickword__cursor {
  animation: cc-glide 1.05s cubic-bezier(0.22, 0.9, 0.24, 1) forwards;
}
@keyframes cc-glide {
  0%   { opacity: 0; transform: translate(140px, 110px); }
  18%  { opacity: 1; }
  72%  { transform: translate(0, 0); }
  80%  { transform: translate(0, 0) scale(0.82); }
  100% { opacity: 1; transform: translate(0, 0) scale(1); }
}

/* click ripple ring, centred on the cursor tip */
.clickword__ring {
  position: absolute;
  z-index: 0;
  left: calc(100% - 0.22em);
  top: 58%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--coral);
  border-radius: 50%;
  opacity: 0;
}
.clickword.is-clicked .clickword__ring {
  animation: cc-ring 0.55s ease-out 0.78s forwards;
}
@keyframes cc-ring {
  0%   { opacity: 0.9; transform: scale(0.4); }
  100% { opacity: 0; transform: scale(3.4); }
}

/* ---------- sections ---------- */

.section { padding: 104px 24px; }
.section--alt { background: var(--ink-2); }

.section__inner { max-width: var(--max); margin: 0 auto; }

.section__title {
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.015em;
  max-width: 22ch;
}

.section__lede {
  margin-top: 1.1rem;
  max-width: 58ch;
  color: var(--cream-dim);
}

/* ---------- services cards ---------- */

.cards {
  margin-top: 3.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  gap: 1.2rem;
}

.card {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--coral); }

.section--alt .card { background: var(--ink); }

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
}
.card__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.card__icon svg .fill { fill: var(--coral); stroke: none; }

.card h3 {
  font-size: 1.08rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
}
.card p { font-size: 0.95rem; color: var(--cream-dim); }

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

.steps {
  margin-top: 3.2rem;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.2rem;
  counter-reset: step;
}

.step {
  border-top: 2px solid var(--line);
  padding-top: 1.4rem;
  position: relative;
}
.step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--coral);
}

.step__num {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--coral);
}

.step h3 { font-size: 1.15rem; font-weight: 600; margin: 0.5rem 0 0.5rem; }
.step p { font-size: 0.95rem; color: var(--cream-dim); }

/* ---------- about ---------- */

.section__inner--split {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3.5rem;
  align-items: start;
}

.about__copy p + p { margin-top: 1rem; }
.about__copy p { color: var(--cream-dim); max-width: 58ch; }
.about__copy .eyebrow { color: var(--coral); }

.founder {
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.2rem 1.8rem;
  text-align: center;
}
.founder__mark {
  width: 86px;
  margin: 0 auto 1.3rem;
}
.founder h3 { font-size: 1.2rem; font-weight: 700; }
.founder__role {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--coral);
  margin: 0.35rem 0 1rem;
}
.founder__mail {
  font-size: 0.92rem;
  color: var(--cream-dim);
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.18s ease, border-color 0.18s ease;
}
.founder__mail:hover { color: var(--coral); border-color: var(--coral); }

/* ---------- contact form ---------- */

.contact-form {
  margin: 3rem auto 0;
  max-width: 680px;
  background: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.4rem 2.2rem;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.contact-form__field { margin-bottom: 1.1rem; }

.contact-form__field label {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream-dim);
  margin-bottom: 0.45rem;
}

.contact-form__field input,
.contact-form__field select,
.contact-form__field textarea {
  width: 100%;
  background: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--cream);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 0.97rem;
  font-weight: 300;
  padding: 0.8rem 1rem;
  transition: border-color 0.18s ease;
}

.contact-form__field input::placeholder,
.contact-form__field textarea::placeholder {
  color: var(--cream-dim);
  opacity: 0.55;
}

.contact-form__field input:focus,
.contact-form__field select:focus,
.contact-form__field textarea:focus {
  outline: none;
  border-color: var(--coral);
}

.contact-form__field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23C7BFB6' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
}

.contact-form__field textarea { resize: vertical; min-height: 140px; }

/* honeypot — visually removed, still in the DOM for bots */
.contact-form__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__submit { margin-top: 0.4rem; }
.contact-form__submit:disabled { opacity: 0.6; cursor: wait; transform: none; }

.contact-form__status {
  margin-top: 1rem;
  font-size: 0.93rem;
  min-height: 1.4em;
}
.contact-form__status.is-success { color: #7ED9A2; }
.contact-form__status.is-error { color: var(--coral); }

.contact__direct {
  margin-top: 2.2rem;
  text-align: center;
  color: var(--cream-dim);
  font-size: 0.95rem;
}
.contact__direct a {
  color: var(--coral);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}

/* ---------- footer ---------- */

.footer {
  border-top: 1px solid var(--line);
  padding: 64px 24px 48px;
}

.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}

.footer__logo {
  height: 34px;
  width: auto;
  margin: 0 auto 1.1rem;
}

.footer__slogan {
  font-family: "Sora", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--coral);
}

.footer__links {
  margin-top: 1.8rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.6rem;
}
.footer__links a {
  font-size: 0.9rem;
  color: var(--cream-dim);
  transition: color 0.18s ease;
}
.footer__links a:hover { color: var(--cream); }

.footer__legal {
  margin-top: 2rem;
  font-size: 0.82rem;
  color: var(--cream-dim);
  opacity: 0.7;
}

/* ---------- scroll reveal ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .section__inner--split { grid-template-columns: 1fr; gap: 2.4rem; }
}

@media (max-width: 760px) {
  .nav__burger { display: flex; }

  .nav__links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  }
  .nav__links.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }
  .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 16px; text-align: center; }

  .hero { min-height: 92svh; }
  .hero__arc { right: -42vmin; opacity: 0.7; }
  .section { padding: 84px 20px; }
  .contact-form { padding: 1.8rem 1.4rem; }
  .contact-form__row { grid-template-columns: 1fr; gap: 0; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .clickword__cursor,
  .clickword__ring { animation: none !important; opacity: 0 !important; }
  .clickword::before { transform: scaleX(1); animation: none; }
  .btn, .card, .contact__card { transition: none; }
}
