﻿/* ==================================================
   SERVICE PAGE ONLY
   Save as: css/service.css
================================================== */

:root {
  --service-bg: #f5f3e5;
  --service-ink: #101010;
  --service-muted: #62625c;
  --service-card: rgba(255, 254, 246, 0.82);
  --service-card-solid: #fffdf4;
  --service-line: rgba(17, 17, 17, 0.18);
  --service-hard-line: #111111;
  --service-shadow: 0 18px 46px rgba(17, 17, 17, 0.1);

  --service-accent: #8df5b5;
  --service-accent-soft: rgba(141, 245, 181, 0.34);

  --hero-bg:
    radial-gradient(
      circle at 18% 18%,
      rgba(255, 255, 255, 0.72),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 20%,
      rgba(141, 245, 181, 0.42),
      transparent 28%
    ),
    radial-gradient(
      circle at 72% 88%,
      rgba(118, 189, 255, 0.35),
      transparent 34%
    ),
    linear-gradient(135deg, #f5f0dc 0%, #dbeee3 48%, #d9e7ff 100%);
  --hero-ink: #101010;
  --hero-muted: rgba(16, 16, 16, 0.68);
}

html[data-theme="dark"] {
  --service-bg: #101722;
  --service-ink: #fff3dc;
  --service-muted: #c9c1b1;
  --service-card: rgba(22, 30, 43, 0.82);
  --service-card-solid: #151e2d;
  --service-line: rgba(255, 243, 220, 0.16);
  --service-hard-line: rgba(255, 243, 220, 0.78);
  --service-shadow: 0 24px 60px rgba(0, 0, 0, 0.36);

  --service-accent: #8df5b5;
  --service-accent-soft: rgba(141, 245, 181, 0.24);

  --hero-bg:
    radial-gradient(
      circle at 18% 18%,
      rgba(141, 245, 181, 0.15),
      transparent 28%
    ),
    radial-gradient(
      circle at 82% 16%,
      rgba(118, 189, 255, 0.15),
      transparent 32%
    ),
    radial-gradient(
      circle at 78% 88%,
      rgba(169, 140, 255, 0.18),
      transparent 34%
    ),
    linear-gradient(135deg, #0e1622 0%, #162c2b 48%, #2a2347 100%);
  --hero-ink: #fff3dc;
  --hero-muted: rgba(255, 243, 220, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.service-hub-page {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 8% 20%,
      rgba(141, 245, 181, 0.08),
      transparent 28%
    ),
    radial-gradient(
      circle at 90% 75%,
      rgba(118, 189, 255, 0.07),
      transparent 32%
    ),
    var(--service-bg);
  color: var(--service-ink);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.45;
}

/* removes old watermark safely */
.service-hub-page::before,
.service-hub-page::after {
  display: none !important;
  content: none !important;
}

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

button {
  font: inherit;
}

/* NAV */
.service-hub-nav {
  position: sticky;
  top: 16px;
  z-index: 20;
  display: flex;
  width: min(1168px, calc(100% - 32px));
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 16px auto 0;
  border: 2px solid var(--service-hard-line);
  border-radius: 12px;
  background: rgba(255, 253, 244, 0.78);
  box-shadow: var(--service-shadow);
  padding: 12px 14px;
  backdrop-filter: blur(14px);
}

html[data-theme="dark"] .service-hub-nav {
  background: rgba(21, 30, 45, 0.78);
}

.service-hub-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.service-hub-brand img {
  width: 42px;
  height: 42px;
  border: 1.5px solid var(--service-line);
  border-radius: 12px;
  object-fit: contain;
  background: transparent;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

html[data-theme="dark"] .service-hub-brand img {
  content: url("../assets/icon/brand-logodarkbg.png");
  background: #151515;
  object-fit: cover;
}

html:not([data-theme="dark"]) .service-hub-brand img {
  content: url("../assets/icon/brand-logo.webp");
  background: transparent;
  object-fit: contain;
}

.service-hub-brand:hover img,
.service-hub-brand:focus-visible img {
  box-shadow: 4px 4px 0 var(--service-accent-soft);
  transform: rotate(-4deg) translateY(-1px);
}

.service-hub-brand span {
  display: grid;
  line-height: 1.05;
}

.service-hub-brand strong {
  color: var(--service-ink);
  font-size: 1rem;
  font-weight: 950;
}

.service-hub-brand small {
  color: var(--service-muted);
  font-size: 0.74rem;
  font-weight: 850;
}

.service-hub-nav nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2.2vw, 30px);
  margin-left: auto;
}

.service-hub-nav nav a {
  position: relative;
  color: var(--service-ink);
  font-size: 0.94rem;
  font-weight: 900;
  white-space: nowrap;
}

.service-hub-nav nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 6px;
  border-radius: 999px;
  background: var(--service-accent-soft);
  content: "";
  transform: scaleX(0.42);
  transform-origin: center;
  transition: transform 160ms ease;
}

.service-hub-nav nav a:hover::after,
.service-hub-nav nav a.is-active::after {
  transform: scaleX(1);
}

/* THEME TOGGLE */
.service-hub-theme-toggle {
  position: static;
  display: inline-grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 42px;
  place-items: center;
  border: 2px solid var(--service-line);
  border-radius: 999px;
  background: var(--service-card-solid);
  box-shadow: 5px 5px 0 rgba(17, 17, 17, 0.12);
  cursor: pointer;
}

.theme-toggle-icon {
  position: relative;
  display: block;
  width: 19px;
  height: 19px;
  border: 2px solid var(--service-ink);
  border-radius: 50%;
  overflow: hidden;
}

.theme-toggle-icon::after {
  position: absolute;
  inset: -2px -2px -2px 50%;
  background: var(--service-ink);
  content: "";
}

/* SHELL */
.service-hub-shell {
  width: min(1168px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
}

/* HERO */
.service-hub-mini-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 390px);
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  min-height: clamp(280px, 30vw, 390px);
  overflow: hidden;
  border: 3px solid var(--service-hard-line);
  border-radius: 14px;
  background: var(--hero-bg);
  box-shadow: var(--service-shadow);
  padding: clamp(24px, 5vw, 52px);
}

.service-hub-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--hero-muted);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-hub-kicker::before {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--service-accent);
  content: "";
}

.service-hub-hero-copy h1 {
  max-width: 11ch;
  margin: 16px 0 0;
  color: var(--hero-ink);
  font-size: clamp(2.35rem, 5.6vw, 4.85rem);
  font-weight: 1000;
  line-height: 0.92;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

.service-hub-hero-copy p {
  max-width: 48ch;
  margin: 18px 0 0;
  color: var(--hero-muted);
  font-size: 1rem;
  font-weight: 720;
}

.service-hub-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.service-hub-btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--service-hard-line);
  border-radius: 999px;
  background: var(--service-accent);
  color: #101010;
  padding: 11px 20px;
  font-weight: 950;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.service-hub-btn.is-soft {
  background: transparent;
  color: var(--hero-ink);
}

.service-hub-btn:hover {
  box-shadow: 7px 7px 0 rgba(17, 17, 17, 0.18);
  transform: translate(-2px, -2px);
}

.service-hub-hero-art {
  display: grid;
  margin: 0;
  place-items: center;
}

.service-hub-hero-art img {
  display: block;
  width: min(100%, 350px);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(17, 17, 17, 0.18));
}

/* SECTION */
.service-hub-section {
  padding: clamp(34px, 5vw, 58px) 0 20px;
}

.service-hub-section-rule {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: clamp(22px, 4vw, 38px);
  color: var(--service-ink);
  font-size: clamp(1.12rem, 2vw, 1.55rem);
  font-weight: 850;
}

.service-hub-section-rule::before,
.service-hub-section-rule::after {
  flex: 1 1 auto;
  height: 3px;
  background: var(--service-ink);
  content: "";
}

/* CARDS */
.service-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(22px, 4vw, 52px);
}

.service-hub-card {
  display: grid;
  overflow: hidden;
  border: 1.5px solid var(--service-line);
  border-radius: 12px;
  background: var(--service-card);
  box-shadow: var(--service-shadow);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
  backdrop-filter: blur(10px);
}

.service-hub-card:hover {
  border-color: var(--service-hard-line);
  box-shadow:
    0 28px 64px rgba(17, 17, 17, 0.14),
    7px 7px 0 var(--service-accent-soft);
  transform: translateY(-7px);
}

.service-hub-card-media {
  display: grid;
  min-height: clamp(160px, 17vw, 220px);
  margin: 0;
  place-items: center;
  overflow: hidden;
  border-bottom: 1.5px solid var(--service-line);
  background: rgba(255, 255, 255, 0.12);
}

/* image area is blank until you add a real image */
.service-hub-card-media img {
  display: block;
  width: 100%;
  height: clamp(160px, 17vw, 220px);
  object-fit: contain;
  object-position: center;
}

.service-hub-card-content {
  padding: 22px clamp(18px, 2vw, 26px) 26px;
}

.service-hub-number {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--service-muted);
  font-size: 1rem;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.service-hub-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  margin-bottom: 20px;
  border: 1.5px solid var(--service-line);
  border-radius: 16px;
  background: var(--service-card-solid);
  box-shadow: 7px 7px 0 rgba(17, 17, 17, 0.08);
}

.service-hub-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.service-hub-card h2 {
  margin: 0 0 14px;
  color: var(--service-ink);
  font-size: clamp(2rem, 3.1vw, 2.9rem);
  font-weight: 1000;
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.service-hub-card p {
  min-height: 4.4em;
  margin: 0 0 22px;
  color: var(--service-muted);
  font-size: 1rem;
  font-weight: 620;
  line-height: 1.35;
}

.service-hub-card-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  border: 1.5px solid var(--service-line);
  border-radius: 999px;
  background: var(--service-card-solid);
  padding: 8px 16px;
  color: var(--service-ink);
  font-weight: 950;
}

.service-hub-card-link::after {
  content: "→";
  font-size: 1.6rem;
  line-height: 0;
}

/* CLARITY CARD */
.service-hub-small-cta {
  margin-top: 38px;
  border-top: 4px solid var(--service-ink);
  padding-top: 34px;
}

.service-hub-clarity-card {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(22px, 5vw, 58px);
  align-items: center;
  border: 1.5px solid var(--service-line);
  border-radius: 22px;
  background: var(--service-card);
  box-shadow: var(--service-shadow);
  padding: clamp(26px, 4vw, 40px);
  backdrop-filter: blur(10px);
}

.service-hub-clarity-card .service-hub-kicker {
  color: var(--service-muted);
}

.service-hub-clarity-card h2 {
  max-width: 10ch;
  margin: 16px 0 0;
  color: var(--service-ink);
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  font-weight: 1000;
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.service-hub-clarity-card ul {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-hub-clarity-card li {
  position: relative;
  border-bottom: 1px solid var(--service-line);
  padding: 15px 0 15px 22px;
  color: var(--service-muted);
  font-weight: 640;
}

.service-hub-clarity-card li::before {
  position: absolute;
  top: 22px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--service-accent);
  content: "";
}

.service-hub-footer {
  display: flex;
  width: min(1168px, calc(100% - 32px));
  justify-content: space-between;
  gap: 20px;
  margin: 0 auto;
  border-top: 1px solid var(--service-line);
  padding: 26px 0 52px;
  color: var(--service-muted);
  font-size: 0.9rem;
  font-weight: 850;
}

.service-hub-footer a {
  color: var(--service-ink);
}

/* RESPONSIVE */
@media (max-width: 920px) {
  .service-hub-mini-hero {
    grid-template-columns: 1fr;
  }

  .service-hub-hero-art {
    order: -1;
  }

  .service-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-hub-clarity-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .service-hub-nav {
    top: 8px;
    width: calc(100% - 20px);
    gap: 10px;
    padding: 8px 10px;
  }

  .service-hub-brand {
    display: none;
  }

  .service-hub-nav nav {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 26px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .service-hub-nav nav::-webkit-scrollbar {
    display: none;
  }

  .service-hub-nav nav a {
    flex: 0 0 auto;
    font-size: 0.78rem;
  }

  .service-hub-theme-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    margin-left: auto;
  }

  .theme-toggle-icon {
    width: 16px;
    height: 16px;
  }

  .service-hub-shell {
    width: min(100% - 22px, 540px);
    padding-top: 22px;
  }

  .service-hub-mini-hero {
    min-height: auto;
    padding: 24px;
  }

  .service-hub-hero-copy h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  .service-hub-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .service-hub-card-media,
  .service-hub-card-media img {
    height: 190px;
  }

  .service-hub-card-content {
    padding: 18px;
  }

  .service-hub-card h2 {
    font-size: clamp(2rem, 10vw, 2.7rem);
  }

  .service-hub-card p {
    min-height: 0;
    font-size: 0.94rem;
  }

  .service-hub-clarity-card h2 {
    font-size: clamp(2.4rem, 12vw, 3.4rem);
  }

  .service-hub-footer {
    width: calc(100% - 22px);
    flex-direction: column;
    padding-bottom: 34px;
  }
}

/* =========================================
   FLOATING IMAGE ANIMATION
   Put this at the bottom of service.css
========================================= */

.service-hub-hero-art img {
  animation: serviceHeroImageFloat 7.5s ease-in-out infinite;
  will-change: transform;
}

.service-hub-card-media img {
  animation: serviceCardImageFloat 6.5s ease-in-out infinite;
  will-change: transform;
}

/* different delay so all cards do not move same time */
.service-hub-card:nth-child(2) .service-hub-card-media img {
  animation-delay: 0.4s;
}

.service-hub-card:nth-child(3) .service-hub-card-media img {
  animation-delay: 0.8s;
}

.service-hub-card:nth-child(4) .service-hub-card-media img {
  animation-delay: 1.2s;
}

.service-hub-card:nth-child(5) .service-hub-card-media img {
  animation-delay: 1.6s;
}

@keyframes serviceHeroImageFloat {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  50% {
    transform: translateY(-12px) rotate(1.5deg);
  }
}

@keyframes serviceCardImageFloat {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-8px) scale(1.02);
  }
}

/* accessibility: stop animation for people who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .service-hub-hero-art img,
  .service-hub-card-media img {
    animation: none !important;
  }
}


