@import './service-pages.tokens.css';

@font-face {
  font-family: 'BOOKKEEPER';
  src: url('/fonts/BOOKKEEPER.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spartan MB';
  src: url('/fonts/Spartan-MB-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Spartan MB';
  src: url('/fonts/Spartan-MB-Bold.ttf') format('truetype');
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Canva Sans';
  src: url('/fonts/Canva-Sans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Canva Sans';
  src: url('/fonts/Canva-Sans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.service-page,
.service-page * {
  box-sizing: border-box;
}

.service-page {
  margin: 0;
  background: var(--service-page-surface);
  color: var(--service-page-brand-deep);
  font-family: 'Canva Sans', 'Source Sans Pro', sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.service-page a {
  color: inherit;
}

.service-page a:focus-visible,
.service-page button:focus-visible {
  outline: none;
  box-shadow: var(--service-page-focus-ring);
}

.service-page__skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 10px 14px;
  border-radius: var(--service-page-radius-sm);
  background: var(--service-page-accent);
  color: var(--service-page-brand-deep);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform var(--service-page-transition);
}

.service-page__skip-link:focus {
  transform: translateY(0);
}

.service-page__container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.service-page__header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(255 255 255 / 0.96);
  border-bottom: 1px solid var(--service-page-border);
}

.service-page__header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 82px;
}

.service-page__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.service-page__brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.service-page__brand-copy {
  display: grid;
  gap: 2px;
}

.service-page__brand-name {
  font-family: 'Spartan MB', 'League Spartan', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.05;
}

.service-page__brand-subtitle {
  color: var(--service-page-brand);
  font-family: 'BOOKKEEPER', 'Bebas Neue', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.service-page__nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  font-family: 'Spartan MB', 'League Spartan', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
}

.service-page__nav a {
  text-decoration: none;
  transition: color var(--service-page-transition);
}

.service-page__nav a:hover {
  color: var(--service-page-accent-ink);
}

.service-page__nav-cta {
  padding: 10px 14px;
  border-radius: var(--service-page-radius-pill);
  background: var(--service-page-brand);
  color: #fff !important;
}

.service-page__nav-cta:hover {
  background: var(--service-page-brand-deep);
}

.service-page__hero {
  overflow: hidden;
  background: var(--service-page-brand);
  color: #fff;
}

.service-page__hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(320px, 0.96fr);
  gap: clamp(42px, 7vw, 100px);
  align-items: center;
  padding-top: clamp(64px, 9vw, 116px);
  padding-bottom: clamp(72px, 10vw, 132px);
}

.service-page__back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px;
  color: rgb(255 255 255 / 0.76);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--service-page-transition);
}

.service-page__back-link:hover {
  color: #fff;
}

.service-page__eyebrow,
.service-page__section-label {
  margin: 0 0 16px;
  color: var(--service-page-accent);
  font-family: 'BOOKKEEPER', 'Bebas Neue', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

.service-page__hero h1,
.service-page__section h2,
.service-page__cta h2 {
  margin: 0;
  font-family: 'Spartan MB', 'League Spartan', sans-serif;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.02;
  text-wrap: balance;
  text-transform: uppercase;
}

.service-page__hero h1 {
  font-size: clamp(2.75rem, 7vw, 6rem);
}

.service-page__hero h1 span {
  color: var(--service-page-accent);
}

.service-page__hero-copy {
  max-width: 660px;
}

.service-page__hero-lede {
  max-width: 62ch;
  margin: 28px 0 0;
  color: rgb(255 255 255 / 0.82);
  font-size: clamp(1.05rem, 1.8vw, 1.22rem);
  line-height: 1.65;
}

.service-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.service-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--service-page-radius-pill);
  font-family: 'Spartan MB', 'League Spartan', sans-serif;
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background var(--service-page-transition), color var(--service-page-transition), border-color var(--service-page-transition), transform var(--service-page-transition);
}

.service-page__button:hover {
  transform: translateY(-2px);
}

.service-page__button--primary {
  background: var(--service-page-accent);
  color: var(--service-page-brand-deep);
}

.service-page__button--primary:hover {
  background: #d8b976;
}

.service-page__button--light {
  border-color: rgb(255 255 255 / 0.45);
  color: #fff;
}

.service-page__button--light:hover {
  border-color: #fff;
  background: #fff;
  color: var(--service-page-brand-deep);
}

.service-page__hero-media {
  position: relative;
  isolation: isolate;
  max-width: 530px;
  margin-left: auto;
}

.service-page__hero-media::after {
  position: absolute;
  z-index: -1;
  inset: 18px -18px -18px 18px;
  background: var(--service-page-accent);
  content: '';
}

.service-page__hero-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 1px solid rgb(255 255 255 / 0.24);
  border-radius: var(--service-page-radius-md);
  box-shadow: var(--service-page-shadow-media);
  object-fit: cover;
}

.service-page__hero-media figcaption {
  margin-top: 14px;
  color: rgb(255 255 255 / 0.66);
  font-size: 0.78rem;
}

.service-page__section {
  padding: clamp(72px, 9vw, 126px) 0;
}

.service-page__section--muted {
  background: var(--service-page-surface-panel);
}

.service-page__section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 8vw, 120px);
  align-items: start;
}

.service-page__section h2 {
  color: var(--service-page-brand);
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.service-page__section-copy {
  max-width: 68ch;
}

.service-page__section-copy p,
.service-page__details p,
.service-page__steps p {
  margin: 0;
  color: oklch(34% 0.025 165);
  font-size: 1.02rem;
  line-height: 1.75;
}

.service-page__section-copy p + p {
  margin-top: 18px;
}

.service-page__details {
  display: grid;
  gap: 0;
  margin: 0;
}

.service-page__details > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--service-page-border);
}

.service-page__details > div:last-child {
  border-bottom: 1px solid var(--service-page-border);
}

.service-page__details dt {
  color: var(--service-page-brand);
  font-family: 'Spartan MB', 'League Spartan', sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.service-page__details dd {
  margin: 0;
}

.service-page__steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 4vw, 48px);
  margin: 42px 0 0;
}

.service-page__step {
  padding-top: 18px;
  border-top: 2px solid var(--service-page-accent);
}

.service-page__step-number {
  display: block;
  margin-bottom: 22px;
  color: var(--service-page-accent-ink);
  font-family: 'BOOKKEEPER', 'Bebas Neue', sans-serif;
  font-size: 1.7rem;
  line-height: 1;
}

.service-page__step h3 {
  margin: 0 0 10px;
  color: var(--service-page-brand);
  font-family: 'Spartan MB', 'League Spartan', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
  text-transform: uppercase;
}

.service-page__cta {
  background: var(--service-page-brand-deep);
  color: #fff;
  padding: clamp(64px, 8vw, 100px) 0;
}

.service-page__cta-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}

.service-page__cta h2 {
  max-width: 760px;
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 4rem);
}

.service-page__cta p {
  max-width: 62ch;
  margin: 20px 0 0;
  color: rgb(255 255 255 / 0.74);
  font-size: 1.05rem;
  line-height: 1.7;
}

.service-page__footer {
  background: var(--service-page-brand-deep);
  border-top: 1px solid rgb(255 255 255 / 0.14);
  color: rgb(255 255 255 / 0.66);
  padding: 28px 0;
}

.service-page__footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.service-page__footer p {
  margin: 0;
  font-size: 0.78rem;
}

.service-page__footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.service-page__footer a {
  color: #fff;
  font-size: 0.78rem;
  text-decoration: none;
}

.service-page__footer a:hover {
  color: var(--service-page-accent);
}

@media (max-width: 860px) {
  .service-page__header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px 0;
  }

  .service-page__nav {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px 16px;
  }

  .service-page__hero-inner,
  .service-page__section-grid {
    grid-template-columns: 1fr;
  }

  .service-page__hero-media {
    margin-left: 0;
  }

  .service-page__section-grid {
    gap: 38px;
  }

  .service-page__cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .service-page__container {
    width: min(100% - 32px, 1180px);
  }

  .service-page__brand-subtitle {
    font-size: 0.56rem;
  }

  .service-page__nav {
    font-size: 0.7rem;
  }

  .service-page__hero-media::after {
    inset: 12px -10px -10px 12px;
  }

  .service-page__details > div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .service-page__steps {
    grid-template-columns: 1fr;
  }

  .service-page__footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .service-page,
  .service-page * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
