/* Specialist repair pages -------------------------------------------------
   Purpose-built for services.html, watch-repair.html, and
   controller-repair.html. Loaded after apple-premium.css. */

.service-page {
  --service-ink: #1d1d1f;
  --service-copy: #6e6e73;
  --service-blue: #0071e3;
  --service-line: rgba(0, 0, 0, .09);
  --service-surface: #fff;
  --service-wash: #f5f5f7;
  --service-night: #050506;
  --service-max: 1280px;
  --service-gutter: clamp(20px, 4.5vw, 64px);
  --service-radius: clamp(24px, 3vw, 40px);
  background: var(--service-wash);
}

.service-page main {
  overflow: clip;
}

.service-page .service-shell {
  width: min(var(--service-max), calc(100% - var(--service-gutter) - var(--service-gutter)));
  margin-inline: auto;
}

.service-page .service-subnav {
  position: sticky;
  top: 54px;
  z-index: 35;
  min-height: 48px;
  border-bottom: 1px solid var(--service-line);
  background: rgba(250, 250, 252, .88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.service-page .service-subnav-inner {
  width: min(var(--service-max), calc(100% - var(--service-gutter) - var(--service-gutter)));
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.5vw, 30px);
  margin-inline: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.service-page .service-subnav-inner::-webkit-scrollbar { display: none; }

.service-page .service-subnav strong {
  margin-right: auto;
  color: var(--service-ink);
  font-size: .79rem;
  font-weight: 650;
  white-space: nowrap;
}

.service-page .service-subnav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: rgba(29, 29, 31, .72);
  border-bottom: 2px solid transparent;
  font-size: .74rem;
  font-weight: 520;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease;
}

.service-page .service-subnav a:hover,
.service-page .service-subnav a[aria-current="page"] {
  color: #000;
  border-bottom-color: #000;
}

.service-page .specialist-hero {
  position: relative;
  width: min(1440px, calc(100% - clamp(12px, 2vw, 28px) - clamp(12px, 2vw, 28px)));
  min-height: min(760px, calc(100svh - 102px));
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(460px, 1.1fr);
  align-items: stretch;
  margin: clamp(12px, 2vw, 28px) auto 0;
  border-radius: var(--service-radius);
  color: #f5f5f7;
  background:
    radial-gradient(circle at 18% 25%, rgba(0, 113, 227, .18), transparent 32%),
    linear-gradient(135deg, #050506, #121216 62%, #090a0c);
  box-shadow: 0 46px 100px -68px rgba(0, 0, 0, .82);
  overflow: hidden;
}

.service-page .specialist-hero-copy {
  position: relative;
  z-index: 2;
  align-self: center;
  max-width: 680px;
  padding: clamp(58px, 7vw, 108px) clamp(28px, 5.5vw, 86px);
}

.service-page .service-kicker {
  margin: 0 0 14px;
  color: #2997ff;
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.service-page .specialist-hero h1 {
  max-width: 11ch;
  margin: 0;
  color: #f5f5f7;
  font-size: clamp(3.45rem, 7.1vw, 7.5rem);
  line-height: .88;
  letter-spacing: -.067em;
}

.service-page .specialist-hero h1 span {
  display: block;
  color: #8f8f94;
}

.service-page .specialist-hero-lead {
  max-width: 49ch;
  margin: clamp(24px, 3vw, 36px) 0 0;
  color: rgba(245, 245, 247, .72);
  font-size: clamp(1.05rem, 1.65vw, 1.34rem);
  line-height: 1.46;
}

.service-page .specialist-hero-actions,
.service-page .service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
}

.service-page .specialist-hero .apple-button-light {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .1);
  backdrop-filter: blur(14px);
}

.service-page .specialist-hero .apple-button-light:hover {
  border-color: rgba(255, 255, 255, .38);
  background: rgba(255, 255, 255, .18);
}

.service-page .hero-fine-print {
  margin: 20px 0 0;
  color: rgba(245, 245, 247, .5);
  font-size: .79rem;
  line-height: 1.55;
}

.service-page .specialist-hero-media {
  position: relative;
  min-height: 560px;
  margin: 0;
  overflow: hidden;
  background: #111;
}

.service-page .specialist-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #09090b 0%, rgba(9, 9, 11, .45) 14%, transparent 44%),
    linear-gradient(0deg, rgba(0, 0, 0, .4), transparent 35%);
}

.service-page .specialist-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.015);
  transition: transform 1.2s cubic-bezier(.22, 1, .36, 1);
}

.service-page .specialist-hero:hover .specialist-hero-media img {
  transform: scale(1.045);
}

.service-page .service-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: min(var(--service-max), calc(100% - var(--service-gutter) - var(--service-gutter)));
  margin: 0 auto;
  padding: clamp(24px, 3vw, 38px) 0;
  border-bottom: 1px solid var(--service-line);
}

.service-page .service-trust div {
  min-width: 0;
  padding: 0 clamp(14px, 2.2vw, 30px);
  border-right: 1px solid var(--service-line);
}

.service-page .service-trust div:first-child { padding-left: 0; }
.service-page .service-trust div:last-child { border-right: 0; }
.service-page .service-trust strong,
.service-page .service-trust span { display: block; }
.service-page .service-trust strong {
  color: var(--service-ink);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  font-weight: 650;
  letter-spacing: -.025em;
}
.service-page .service-trust span {
  margin-top: 4px;
  color: var(--service-copy);
  font-size: .78rem;
}

.service-page .service-section {
  padding: clamp(82px, 10vw, 150px) 0;
}

.service-page .service-section + .service-section {
  border-top: 1px solid var(--service-line);
}

.service-page .service-section-dark {
  color: #f5f5f7;
  background: #000;
}

.service-page .service-section-head {
  max-width: 800px;
  margin-bottom: clamp(38px, 5vw, 70px);
}

.service-page .service-section-head.centered {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.service-page .service-section-head h2 {
  max-width: 14ch;
  margin: 0;
  font-size: clamp(2.65rem, 6vw, 6rem);
  line-height: .94;
  letter-spacing: -.06em;
}

.service-page .service-section-head.centered h2 { max-width: none; }

.service-page .service-section-head > p:last-child {
  max-width: 56ch;
  margin: 20px 0 0;
  font-size: clamp(1.05rem, 1.65vw, 1.3rem);
  line-height: 1.5;
}

.service-page .service-section-dark .service-section-head h2 { color: #f5f5f7; }
.service-page .service-section-dark .service-section-head > p:last-child { color: rgba(245, 245, 247, .64); }

.service-page .model-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 2vw, 24px);
}

.service-page .model-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(26px, 3vw, 42px);
  border: 1px solid var(--service-line);
  border-radius: clamp(22px, 2.6vw, 34px);
  background: var(--service-surface);
  overflow: hidden;
  transition: transform .45s cubic-bezier(.22, 1, .36, 1), box-shadow .45s ease;
}

.service-page .model-card::after {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -90px;
  bottom: -100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 113, 227, .16), transparent 68%);
  transition: transform .55s cubic-bezier(.22, 1, .36, 1);
}

.service-page .model-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 34px 74px -48px rgba(0, 0, 0, .42);
}
.service-page .model-card:hover::after { transform: scale(1.35); }

.service-page .model-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--service-blue);
  background: #edf5ff;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.service-page .model-card h3 {
  margin: 42px 0 0;
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  line-height: 1;
}

.service-page .model-card p {
  max-width: 33ch;
  margin: 12px 0 0;
  font-size: .92rem;
}

.service-page .repair-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}

.service-page .repair-service-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(25px, 3vw, 38px);
  border: 1px solid var(--service-line);
  border-radius: clamp(22px, 2.5vw, 32px);
  background: var(--service-surface);
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s ease, border-color .3s ease;
}

.service-page .repair-service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 113, 227, .22);
  box-shadow: 0 30px 64px -46px rgba(0, 0, 0, .42);
}

.service-page .repair-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--service-blue);
  font-size: .7rem;
  font-weight: 670;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.service-page .repair-index::before {
  content: "";
  width: 18px;
  height: 1px;
  background: currentColor;
}

.service-page .repair-service-card h3 {
  margin: 34px 0 10px;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1;
}

.service-page .repair-service-card p {
  margin: 0 0 28px;
  font-size: .93rem;
  line-height: 1.55;
}

.service-page .repair-service-card button,
.service-page .repair-service-card a {
  margin-top: auto;
}

.service-page .card-quiet-action {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 15px;
  border: 1px solid rgba(0, 113, 227, .24);
  border-radius: 999px;
  color: var(--service-blue);
  background: #fff;
  font: inherit;
  font-size: .8rem;
  font-weight: 580;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}

.service-page .card-quiet-action:hover {
  color: #fff;
  border-color: var(--service-blue);
  background: var(--service-blue);
  transform: translateY(-1px);
}

.service-page .editorial-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
  min-height: 630px;
  border-radius: var(--service-radius);
  background: #fff;
  box-shadow: 0 42px 100px -70px rgba(0, 0, 0, .72);
  overflow: hidden;
}

.service-page .editorial-split.reverse .editorial-media { order: 2; }

.service-page .editorial-media {
  min-height: 460px;
  background: #171719;
  overflow: hidden;
}

.service-page .editorial-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-page .editorial-copy {
  align-self: center;
  padding: clamp(42px, 6vw, 86px);
}

.service-page .editorial-copy h2 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.5rem, 5vw, 5rem);
  line-height: .94;
}

.service-page .editorial-copy > p:not(.service-kicker) {
  margin: 20px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.55;
}

.service-page .editorial-points {
  display: grid;
  gap: 0;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.service-page .editorial-points li {
  position: relative;
  padding: 15px 0 15px 30px;
  border-top: 1px solid var(--service-line);
  color: var(--service-ink);
  font-size: .9rem;
  font-weight: 540;
}

.service-page .editorial-points li::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 3px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--service-blue);
  border-radius: 50%;
}

.service-page .service-process {
  counter-reset: service-step;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.service-page .process-step {
  counter-increment: service-step;
  min-height: 260px;
  padding: clamp(27px, 3vw, 42px);
  border-right: 1px solid rgba(255, 255, 255, .16);
}

.service-page .process-step:last-child { border-right: 0; }

.service-page .process-step::before {
  content: "0" counter(service-step);
  color: #2997ff;
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
}

.service-page .process-step h3 {
  margin: 72px 0 10px;
  color: #f5f5f7;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}

.service-page .process-step p {
  margin: 0;
  color: rgba(245, 245, 247, .56);
  font-size: .88rem;
  line-height: 1.55;
}

.service-page .service-note {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  max-width: 900px;
  margin-top: 44px;
  padding: 23px 25px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 20px;
  background: rgba(255, 255, 255, .06);
}

.service-page .service-note strong {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #000;
  background: #f5f5f7;
  font-size: .78rem;
}

.service-page .service-note p {
  margin: 4px 0 0;
  color: rgba(245, 245, 247, .66);
  font-size: .86rem;
  line-height: 1.6;
}

.service-page .service-directory-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(12px, 2vw, 22px);
}

.service-page .directory-card {
  position: relative;
  min-height: 440px;
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(27px, 3vw, 42px);
  border: 1px solid var(--service-line);
  border-radius: clamp(24px, 2.8vw, 36px);
  color: var(--service-ink);
  background: #fff;
  overflow: hidden;
  transition: transform .5s cubic-bezier(.22, 1, .36, 1), box-shadow .5s ease;
}

.service-page .directory-card.wide {
  grid-column: span 8;
  min-height: 500px;
}

.service-page .directory-card.dark {
  color: #f5f5f7;
  border-color: transparent;
  background: #111113;
}

.service-page .directory-card:hover {
  color: inherit;
  transform: translateY(-7px);
  box-shadow: 0 34px 80px -52px rgba(0, 0, 0, .55);
}

.service-page .directory-card h3 {
  position: relative;
  z-index: 2;
  max-width: 12ch;
  margin: 4px 0 0;
  color: inherit;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: .94;
}

.service-page .directory-card p {
  position: relative;
  z-index: 2;
  max-width: 38ch;
  margin: 16px 0 0;
  color: var(--service-copy);
  font-size: .95rem;
}

.service-page .directory-card.dark p { color: rgba(245, 245, 247, .62); }

.service-page .directory-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 23px;
  color: var(--service-blue);
  font-size: .92rem;
  font-weight: 570;
}

.service-page .directory-link span { transition: transform .25s ease; }
.service-page .directory-card:hover .directory-link span { transform: translateX(4px); }

.service-page .directory-card-image {
  position: absolute;
  inset: auto 0 0 42%;
  width: 58%;
  height: 62%;
  object-fit: cover;
  object-position: center;
  border-radius: 28px 0 0 0;
  -webkit-mask-image: linear-gradient(135deg, transparent 0%, #000 34%);
  mask-image: linear-gradient(135deg, transparent 0%, #000 34%);
  transition: transform .8s cubic-bezier(.22, 1, .36, 1);
}

.service-page .directory-card:hover .directory-card-image { transform: scale(1.04); }

.service-page .service-faq-list {
  max-width: 940px;
  margin-inline: auto;
  border-top: 1px solid var(--service-line);
}

.service-page .service-faq-list details {
  border-bottom: 1px solid var(--service-line);
}

.service-page .service-faq-list summary {
  position: relative;
  min-height: 88px;
  display: flex;
  align-items: center;
  padding: 24px 64px 24px 0;
  color: var(--service-ink);
  font-size: clamp(1.03rem, 1.65vw, 1.28rem);
  font-weight: 590;
  letter-spacing: -.025em;
  list-style: none;
  cursor: pointer;
}

.service-page .service-faq-list summary::-webkit-details-marker { display: none; }

.service-page .service-faq-list summary::after {
  content: "+";
  position: absolute;
  right: 0;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--service-ink);
  background: #e8e8ed;
  font-size: 1.3rem;
  font-weight: 350;
  transition: color .25s ease, background .25s ease, transform .35s cubic-bezier(.22, 1, .36, 1);
}

.service-page .service-faq-list details[open] summary::after {
  color: #fff;
  background: var(--service-blue);
  transform: rotate(45deg);
}

.service-page .service-faq-list details p {
  max-width: 68ch;
  margin: -6px 64px 28px 0;
  font-size: 1rem;
  line-height: 1.65;
}

.service-page .service-closing {
  padding: clamp(90px, 11vw, 160px) var(--service-gutter);
  text-align: center;
  background:
    radial-gradient(circle at 50% 115%, rgba(0, 113, 227, .32), transparent 38%),
    #000;
}

.service-page .service-closing h2 {
  max-width: 14ch;
  margin: 0 auto;
  color: #f5f5f7;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: .9;
}

.service-page .service-closing p {
  max-width: 54ch;
  margin: 24px auto 0;
  color: rgba(245, 245, 247, .62);
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
}

.service-page .service-closing .service-actions { justify-content: center; }
.service-page .service-closing .apple-button-light {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .1);
}

@media (max-width: 1050px) {
  .service-page .specialist-hero {
    grid-template-columns: 1fr;
  }
  .service-page .specialist-hero-copy {
    max-width: 820px;
  }
  .service-page .specialist-hero-media {
    min-height: min(64vw, 620px);
  }
  .service-page .specialist-hero-media::after {
    background: linear-gradient(180deg, #09090b 0%, transparent 25%, rgba(0, 0, 0, .28));
  }
  .service-page .repair-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-page .editorial-split { grid-template-columns: 1fr; }
  .service-page .editorial-split.reverse .editorial-media { order: 0; }
  .service-page .service-process { grid-template-columns: repeat(2, 1fr); }
  .service-page .process-step:nth-child(2) { border-right: 0; }
  .service-page .process-step:nth-child(-n + 2) { border-bottom: 1px solid rgba(255, 255, 255, .16); }
}

@media (max-width: 800px) {
  .service-page .service-subnav strong { display: none; }
  .service-page .service-subnav-inner { gap: 22px; }
  .service-page .service-trust { grid-template-columns: repeat(2, 1fr); }
  .service-page .service-trust div { padding: 18px 16px; border-bottom: 1px solid var(--service-line); }
  .service-page .service-trust div:nth-child(2) { border-right: 0; }
  .service-page .service-trust div:nth-last-child(-n + 2) { border-bottom: 0; }
  .service-page .service-trust div:nth-child(3) { padding-left: 0; }
  .service-page .model-showcase { grid-template-columns: 1fr; }
  .service-page .model-card { min-height: 220px; }
  .service-page .model-card h3 { margin-top: 34px; }
  .service-page .directory-card,
  .service-page .directory-card.wide { grid-column: 1 / -1; }
}

@media (max-width: 620px) {
  .service-page .specialist-hero {
    width: calc(100% - 16px);
    min-height: 0;
    margin-top: 8px;
    border-radius: 28px;
  }
  .service-page .specialist-hero-copy {
    padding: 54px 24px 48px;
  }
  .service-page .specialist-hero h1 {
    font-size: clamp(3.4rem, 18vw, 5.25rem);
  }
  .service-page .specialist-hero-media { min-height: 92vw; }
  .service-page .specialist-hero-actions,
  .service-page .service-actions { display: grid; grid-template-columns: 1fr; }
  .service-page .specialist-hero-actions .apple-button,
  .service-page .service-actions .apple-button { width: 100%; }
  .service-page .repair-card-grid { grid-template-columns: 1fr; }
  .service-page .repair-service-card { min-height: 250px; }
  .service-page .service-process { grid-template-columns: 1fr; }
  .service-page .process-step,
  .service-page .process-step:nth-child(2) {
    min-height: 210px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
  }
  .service-page .process-step:last-child { border-bottom: 0; }
  .service-page .process-step h3 { margin-top: 46px; }
  .service-page .editorial-media { min-height: 94vw; }
  .service-page .editorial-copy { padding: 44px 24px 50px; }
  .service-page .service-note { grid-template-columns: 1fr; }
  .service-page .directory-card,
  .service-page .directory-card.wide { min-height: 430px; }
  .service-page .directory-card-image { inset-inline-start: 24%; width: 76%; height: 56%; }
  .service-page .service-faq-list summary { min-height: 78px; padding-right: 50px; }
  .service-page .service-faq-list details p { margin-right: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .service-page .specialist-hero-media img,
  .service-page .directory-card,
  .service-page .directory-card-image,
  .service-page .model-card,
  .service-page .repair-service-card { transition: none !important; }
  .service-page .specialist-hero:hover .specialist-hero-media img,
  .service-page .directory-card:hover,
  .service-page .directory-card:hover .directory-card-image,
  .service-page .model-card:hover,
  .service-page .repair-service-card:hover { transform: none !important; }
}
