/* =========================================================
   SparklingPeach
   Clean static site CSS
   ========================================================= */

/* -----------------------------
   Tokens
----------------------------- */

:root {
  --ink: #17151f;
  --muted-text: #625b6d;

  --paper: #fffaf6;
  --white: #ffffff;
  --soft: #f6eee9;

  --peach: #ff8f70;
  --peach-soft: #ffd1c2;
  --peach-deep: #e95f43;

  --plum: #211729;
  --plum-deep: #120f18;

  --border: rgba(23, 21, 31, 0.12);
  --border-dark: rgba(255, 255, 255, 0.14);

  --shadow: 0 14px 36px rgba(23, 21, 31, 0.09);
  --shadow-strong: 0 18px 50px rgba(23, 21, 31, 0.1);
  --shadow-dark: 0 24px 70px rgba(0, 0, 0, 0.28);

  --font:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;

  --display:
    "Space Grotesk", Inter, ui-sans-serif, system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;

  --container: 1180px;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 32px;

  --s-1: 0.5rem;
  --s-2: 0.875rem;
  --s-3: 1.25rem;
  --s-4: 2rem;
  --s-5: 3.5rem;
  --s-6: 5rem;
  --s-7: 7rem;
}

/* -----------------------------
   Reset / base
----------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

::selection {
  color: var(--ink);
  background: var(--peach-soft);
}

:focus-visible {
  outline: 3px solid var(--peach);
  outline-offset: 4px;
}

/* -----------------------------
   Layout
----------------------------- */

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding-block: var(--s-7);
}

.section--white {
  background: var(--white);
}

.section--light {
  background: var(--paper);
}

.section--muted {
  background: var(--soft);
}

.section--dark {
  color: var(--white);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 143, 112, 0.18), transparent 30%),
    linear-gradient(135deg, var(--plum), var(--plum-deep));
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--s-5);
  align-items: start;
}

.grid {
  display: grid;
  gap: 1.15rem;
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.stack > * + * {
  margin-top: var(--s-3);
}

.section-title {
  max-width: 760px;
  margin-bottom: var(--s-5);
}

/* -----------------------------
   Type
----------------------------- */

h1,
h2,
h3 {
  margin-top: 0;
  font-family: var(--display);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 980px;
  margin-bottom: 0;
  font-size: clamp(2.8rem, 6.6vw, 5.7rem);
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.5rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.25rem, 2vw, 1.55rem);
}

p {
  margin-top: 0;
}

.lede {
  color: var(--muted-text);
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
}

.section-title .lede {
  margin-bottom: 0;
}

.section--dark .lede {
  color: rgba(255, 255, 255, 0.78);
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--peach-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: var(--peach-soft);
}

.muted {
  color: var(--muted-text);
}

.section--dark .muted {
  color: rgba(255, 255, 255, 0.72);
}

/* -----------------------------
   Accessibility
----------------------------- */

.skip-link {
  position: absolute;
  z-index: 1000;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--r-sm);
  transform: translateY(-140%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

/* -----------------------------
   Header / nav
----------------------------- */

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(18, 15, 24, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-dark);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.site-logo,
.footer-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  width: 190px;
}

.footer-logo {
  width: 220px;
  margin-bottom: 1.2rem;
}

.site-logo img,
.footer-logo img {
  width: 100%;
  height: auto;
}

.site-nav ul,
.footer-nav ul {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-nav a,
.footer-nav a {
  text-decoration: none;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  font-weight: 650;
}

.site-nav a:hover,
.footer-nav a:hover {
  color: var(--white);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 1rem;
  color: var(--ink) !important;
  background: var(--peach);
  border-radius: 999px;
}

.nav-cta:hover {
  background: var(--peach-soft);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-dark);
  border-radius: 999px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--white);
  border-radius: 999px;
}

/* -----------------------------
   Buttons
----------------------------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  color: inherit;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  color: var(--ink);
  background: var(--peach);
  box-shadow: 0 12px 28px rgba(255, 143, 112, 0.28);
}

.button--primary:hover {
  background: var(--peach-soft);
}

.button--ghost {
  color: var(--ink);
  background: transparent;
  border-color: rgba(23, 21, 31, 0.26);
}

.section--dark .button--ghost,
.hero .button--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.32);
}

.section--dark .button--ghost:hover,
.hero .button--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* -----------------------------
   Cards
----------------------------- */

.card {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
}

.card p {
  margin-bottom: 0;
  color: var(--muted-text);
}

.card--tall {
  min-height: 190px;
}

.card--glass {
  background: rgba(255, 255, 255, 0.74);
}

.card--dark {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-dark);
}

.card--dark p {
  color: rgba(255, 255, 255, 0.72);
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

/* -----------------------------
   Hero
----------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100svh - 76px);
  padding-block: clamp(3rem, 2vw, 5rem);
  background:
    radial-gradient(circle at 74% 38%, rgba(255, 143, 112, 0.56), transparent 24rem),
    radial-gradient(circle at 25% 14%, rgba(255, 143, 112, 0.18), transparent 32rem),
    linear-gradient(135deg, var(--plum), var(--plum-deep));
}

.hero::after {
  display: none;
}

.hero-glow {
  position: absolute;
  top: 18%;
  right: 6%;
  width: clamp(24rem, 46vw, 46rem);
  aspect-ratio: 1;
  background:
    radial-gradient(
      circle at 42% 42%,
      rgba(255, 209, 194, 0.82),
      rgba(255, 143, 112, 0.56) 34%,
      rgba(233, 95, 67, 0.2) 58%,
      transparent 74%
    );
  border-radius: 43% 57% 48% 52% / 52% 44% 56% 48%;
  filter: blur(64px);
  opacity: 0.72;
  pointer-events: none;
  transform: rotate(-14deg);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-brand {
  width: min(100%, 680px);
  margin-bottom: clamp(1.75rem, 4vw, 3rem);
}

.hero-brand img {
  width: 100%;
  height: auto;
}

.hero-content {
  max-width: 960px;
}

.hero-intro {
  max-width: 680px;
  margin-top: 1.25rem;
}

.hero-services {
  margin-top: 1rem;
  color: var(--peach-soft);
  font-weight: 750;
  letter-spacing: -0.015em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.75rem;
}

/* -----------------------------
   Client logos
----------------------------- */

.client-strip {
  padding-block: 3rem;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}

.client-strip h2 {
  margin-bottom: 1.5rem;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}

.client-logo-card {
  min-height: 110px;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: #fbf7f3;
}

.client-logo-card img {
  max-width: 165px;
  max-height: 60px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.88;
}

.client-note {
  max-width: 760px;
  margin-top: 1.15rem;
  font-size: 0.92rem;
}

/* -----------------------------
   Case studies
----------------------------- */

.case-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
}

.case-card__type {
  margin-bottom: 0.75rem;
  color: var(--peach-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-card h3 {
  margin-bottom: 0.75rem;
}

.case-card p:not(.case-card__type) {
  margin-bottom: 1.5rem;
}

.case-card__link {
  margin-top: auto;
  color: var(--ink);
  font-weight: 850;
  text-decoration-color: var(--peach);
  text-decoration-thickness: 0.14em;
}

.case-card__link:hover {
  color: var(--peach-deep);
}

/* -----------------------------
   Process / stats
----------------------------- */

.process-step .step-number {
  display: inline-block;
  margin-bottom: 1.75rem;
  color: var(--peach-soft);
  font-family: var(--display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.stat-card strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--peach-deep);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.stat-card span {
  display: block;
  color: var(--muted-text);
  line-height: 1.35;
}

/* -----------------------------
   Contact / forms
----------------------------- */

.contact-section {
  background:
    radial-gradient(circle at 78% 20%, rgba(255, 143, 112, 0.24), transparent 34%),
    linear-gradient(135deg, #fff6f1, #f4e9e2);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: var(--s-5);
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 1rem;
}

.contact-email a {
  color: var(--peach-deep);
  font-weight: 850;
}

.contact-form {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(14px);
}

.form-note {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
}

.form-field {
  margin-bottom: 1rem;
}

.form-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-weight: 750;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid rgba(23, 21, 31, 0.18);
  border-radius: var(--r-sm);
}

.form-field textarea {
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--peach-deep);
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 143, 112, 0.22);
}

/* -----------------------------
   Footer
----------------------------- */

.site-footer {
  padding-block: var(--s-5) var(--s-4);
  color: rgba(255, 255, 255, 0.78);
  background: var(--plum-deep);
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s-5);
  align-items: start;
}

.footer-tagline {
  color: var(--peach-soft);
  font-weight: 800;
}

.footer-nav ul {
  display: grid;
  gap: 0.65rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.78);
}

.footer-bottom {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--border-dark);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.9rem;
}

/* -----------------------------
   Responsive
----------------------------- */

@media (max-width: 980px) {
  :root {
    --s-7: 5rem;
  }

  .split,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-brand {
    width: min(100%, 560px);
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 1.5rem, var(--container));
  }

  .header-inner {
    min-height: 68px;
  }

  .site-logo {
    width: 165px;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    display: none;
    padding: 1rem;
    background: rgba(18, 15, 24, 0.96);
    border: 1px solid var(--border-dark);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-dark);
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    display: grid;
    gap: 0.25rem;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem;
  }

  .nav-cta {
    justify-content: center;
    margin-top: 0.4rem;
  }

  .section {
    padding-block: 4rem;
  }

  .hero {
    padding-block: 3rem 4rem;
  }

  .hero-glow {
    top: 5rem;
    right: -8rem;
    width: 26rem;
    filter: blur(44px);
  }

  .hero-brand {
    width: min(100%, 420px);
    margin-bottom: 2rem;
  }

  h1 {
    font-size: clamp(2.35rem, 12vw, 3.6rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .grid--5 {
    grid-template-columns: 1fr;
  }

  .client-logo-card {
    min-height: 100px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h2 {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .hero-services {
    font-size: 0.98rem;
  }

  .card,
  .contact-form {
    border-radius: 18px;
  }
}

/* -----------------------------
   Reduced motion
----------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}