/* Homepage — apple.com / Apple Store aesthetic */

body.site-apple-home {
  background: #fff;
  background-image: none;
}

body.site-apple-home .scroll-progress {
  height: 1px;
  opacity: 0.35;
}

body.site-apple-home .header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  transition:
    background 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease,
    color 0.3s ease;
}

body.site-apple-home .header.header--on-dark {
  background: var(--glass-dark-bg);
  border-bottom-color: var(--glass-dark-border);
  box-shadow: var(--glass-dark-shadow);
}

body.site-apple-home .header.header--on-dark .header__brand,
body.site-apple-home .header.header--on-dark .header__nav a,
body.site-apple-home .header.header--on-dark .locale__btn {
  color: rgba(255, 255, 255, 0.88);
}

body.site-apple-home .header.header--on-dark .header__logo {
  filter: brightness(0) invert(1);
}

body.site-apple-home .header.header--on-dark .header__nav a.is-active,
body.site-apple-home .header.header--on-dark .header__nav a:hover {
  color: #fff;
}

body.site-apple-home .header.header--on-dark .header__nav a::after {
  background: #fff;
}

body.site-apple-home .header.header--on-dark .locale {
  background: rgba(255, 255, 255, 0.14);
}

body.site-apple-home .header.header--on-dark .locale__btn.is-active {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.site-apple-home .header.header--on-dark .header__badge {
  background: #fff;
  color: #1d1d1f;
}

body.site-apple-home .promo {
  display: none;
}

body.site-apple-home.nav-open .mobile-nav {
  padding-top: calc(var(--header-height) + 1.5rem);
}

/* Fullscreen ad */
.apple-fullscreen-ad {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 2rem) 1.5rem 3.5rem;
}

.apple-fullscreen-ad__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 38% center;
  transform: scale(1.02);
  will-change: transform;
  z-index: 0;
}

.apple-fullscreen-ad__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.05) 28%, rgba(0, 0, 0, 0.15) 55%, rgba(0, 0, 0, 0.72) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 0%, transparent 45%);
  pointer-events: none;
  z-index: 1;
}

.apple-fullscreen-ad__content {
  position: relative;
  z-index: 3;
  width: min(100%, 680px);
  text-align: center;
  color: #f5f5f7;
}

.apple-fullscreen-ad__title {
  margin: 0;
  font-size: clamp(2.5rem, 9vw, 4.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.02;
  text-wrap: balance;
}

.apple-fullscreen-ad__subtitle {
  margin: 0.85rem auto 0;
  max-width: 34ch;
  font-size: clamp(1.125rem, 2.5vw, 1.4375rem);
  line-height: 1.35;
  letter-spacing: 0.004em;
  color: rgba(255, 255, 255, 0.78);
}

.apple-fullscreen-ad__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.35rem;
}

.apple-link--on-dark.apple-link--cta {
  background: #fff;
  color: #1d1d1f;
}

.apple-link--on-dark.apple-link--cta:hover {
  background: #f5f5f7;
}

.apple-link--on-dark {
  color: #2997ff;
}

.apple-fullscreen-ad__scroll {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  animation: apple-ad-bounce 2.2s ease-in-out infinite;
}

.apple-fullscreen-ad__scroll:hover {
  color: #fff;
}

@keyframes apple-ad-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

@media (min-width: 900px) {
  .apple-fullscreen-ad {
    align-items: center;
    justify-content: flex-end;
    padding-right: clamp(2rem, 8vw, 6rem);
    padding-bottom: 4rem;
  }

  .apple-fullscreen-ad__content {
    text-align: right;
    margin-left: auto;
  }

  .apple-fullscreen-ad__subtitle {
    margin-left: auto;
  }

  .apple-fullscreen-ad__actions {
    justify-content: flex-end;
  }

  .apple-fullscreen-ad__image {
    object-position: 30% center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apple-fullscreen-ad__scroll {
    animation: none;
  }

  .apple-fullscreen-ad__image {
    transform: none;
  }

}

/* Category ribbon */
.apple-ribbon {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.85rem 1.5rem 0;
  max-width: var(--max-width-wide);
  margin-inline: auto;
}

.apple-ribbon a {
  padding: 0.4rem 0.95rem;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
  background: #f5f5f7;
  transition: background 0.2s ease;
}

.apple-ribbon a {
  transition: background 0.2s ease, transform 0.2s var(--ease-out);
}

.apple-ribbon a:hover {
  background: #e8e8ed;
  transform: translateY(-1px);
}

/* Hero — centered, image-forward */
.apple-hero {
  padding: calc(var(--header-height) + var(--promo-height) + 1.5rem) 0 0;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, #fbfbfd 62%, #f5f5f7 100%);
  overflow: hidden;
}

.apple-hero__inner {
  max-width: 980px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.apple-hero__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  color: #6e6e73;
}

.apple-hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #1d1d1f;
}

.apple-hero__subtitle {
  margin: 0.65rem auto 0;
  max-width: 28ch;
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  line-height: 1.35;
  letter-spacing: 0.004em;
  color: #6e6e73;
}

.apple-hero__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1rem;
}

.apple-link {
  font-size: 17px;
  color: #0066cc;
  text-decoration: none;
  letter-spacing: -0.022em;
}

.apple-link::after {
  content: ' ›';
  font-size: 1.1em;
}

.apple-link:hover {
  text-decoration: underline;
}

.apple-link--cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.35rem;
  border-radius: 980px;
  background: #0071e3;
  color: #fff;
  font-size: 17px;
  text-decoration: none;
}

.apple-link--cta::after {
  content: none;
}

.apple-link--cta:hover {
  background: #0077ed;
  text-decoration: none;
}

.apple-hero__visual {
  margin-top: 1.5rem;
  padding: 0 0 2rem;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: min(52vh, 520px);
}

.apple-hero__visual .racket-stage--hero {
  min-height: auto;
  width: 100%;
}

.apple-hero__visual .racket-stage__glow {
  display: none;
}

.apple-hero__visual .racket-stage__float {
  animation: none;
}

.apple-hero__visual .racket-stage__img--hero {
  max-height: min(48vh, 480px);
  margin-inline: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.12));
}

/* Bento */
.apple-bento {
  padding: 3.5rem 1.5rem 4rem;
  background: #fff;
}

.apple-bento__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  max-width: var(--max-width-wide);
  margin-inline: auto;
}

.apple-tile {
  position: relative;
  grid-column: span 4;
  min-height: 380px;
  padding: 2rem;
  border-radius: 18px;
  background: #f5f5f7;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition:
    transform 0.45s var(--ease-out),
    box-shadow 0.45s var(--ease-out);
}

.apple-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.09);
}

.apple-tile:hover .apple-tile__art img {
  transform: translateY(-6px) scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
  .apple-tile,
  .apple-tile:hover {
    transform: none;
    box-shadow: none;
  }
  .apple-tile:hover .apple-tile__art img {
    transform: none;
  }
}

.apple-tile--wide {
  grid-column: span 6;
}

.apple-tile--hero {
  grid-column: span 12;
  min-height: 420px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f0f0f5 100%);
}

.apple-tile__label {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #86868b;
}

.apple-tile h3 {
  margin: 0.35rem 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #1d1d1f;
}

.apple-tile p {
  margin: 0;
  font-size: 17px;
  line-height: 1.47;
  color: #6e6e73;
  max-width: 32ch;
}

.apple-tile .apple-link {
  margin-top: 0.85rem;
}

.apple-tile__art {
  margin-top: auto;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  padding-top: 0.5rem;
}

.apple-tile__art img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.1));
  transition: transform 0.5s var(--ease-out);
}

.apple-tile--hero .apple-tile__art img {
  max-height: 280px;
}

.apple-tile--strings {
  background: linear-gradient(160deg, #f5f5f7 0%, #eef6f1 100%);
}

.apple-tile--sponsored {
  background: linear-gradient(160deg, #f5f5f7 0%, #f3f0eb 100%);
}

@media (max-width: 900px) {
  .apple-tile,
  .apple-tile--wide,
  .apple-tile--hero {
    grid-column: span 12;
    min-height: 320px;
  }
}

/* Lineup — Apple product picker */
body.site-apple-home .lineup {
  padding-block: 5rem;
  text-align: center;
  background: #fff;
  border-block: 1px solid #e8e8ed;
}

body.site-apple-home .lineup .container {
  max-width: 980px;
}

body.site-apple-home .lineup__headline {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  text-align: center;
}

body.site-apple-home .lineup__sub {
  font-size: 21px;
  color: #6e6e73;
  text-align: center;
  margin-bottom: 2.5rem;
}

body.site-apple-home .lineup__stage {
  min-height: 400px;
  background: linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  border: none;
  border-radius: 0;
}

body.site-apple-home .lineup__picker {
  justify-content: center;
  margin-top: 1.75rem;
}

body.site-apple-home .lineup__meta {
  text-align: center;
  margin-top: 2rem;
}

body.site-apple-home .lineup__name {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

body.site-apple-home .lineup__tagline {
  font-size: 17px;
  color: #6e6e73;
}

body.site-apple-home .lineup__price {
  font-size: 17px;
}

body.site-apple-home .lineup__actions {
  justify-content: center;
  gap: 1.25rem;
}

body.site-apple-home .lineup__actions .btn-primary {
  background: #0071e3;
}

body.site-apple-home .lineup__actions .link-more {
  font-size: 17px;
}

/* Technology stack */
body.site-apple-home .portal-stack {
  background: #fbfbfd;
}

body.site-apple-home .portal-stack__row {
  padding-block: 5rem;
  border-bottom-color: #e8e8ed;
}

body.site-apple-home .portal-stack__title {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
}

body.site-apple-home .portal-stack__media {
  background: #fff;
  border: none;
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

body.site-apple-home .portal-stack__media img {
  max-height: 360px;
}

body.site-apple-home .portal-stack__copy .link-more {
  font-size: 17px;
  color: #0066cc;
}

body.site-apple-home .portal-stack__copy .link-more::after {
  content: ' ›';
}

/* Shop sections */
body.site-apple-home .store-grid {
  padding-block: 5rem;
  background: #fff;
}

body.site-apple-home .store-grid--featured {
  padding-top: 3rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid #d2d2d7;
}

body.site-apple-home .section-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

body.site-apple-home .section-header .eyebrow {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
  text-transform: none;
  color: #6e6e73;
}

body.site-apple-home .section-header .headline-lg {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  margin-top: 0.25rem;
}

body.site-apple-home .section-header__lead {
  margin-inline: auto;
  font-size: 21px;
  color: #6e6e73;
}

body.site-apple-home .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem 1.25rem;
}

body.site-apple-home .store-grid--featured .product-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2.5rem 1.5rem;
}

body.site-apple-home .product-grid .card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.site-apple-home .product-grid .card:hover {
  box-shadow: none;
  transform: none;
}

body.site-apple-home .product-grid .card__media {
  border-radius: 22px;
  min-height: 0;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.site-apple-home .product-grid .card__media--racket {
  background:
    radial-gradient(ellipse 85% 65% at 50% 82%, rgba(26, 127, 75, 0.12) 0%, transparent 55%),
    linear-gradient(180deg, #f8f9fa 0%, #eef1ee 55%, #e8eaed 100%);
}

body.site-apple-home .product-grid .card__media--reel {
  background:
    radial-gradient(circle at 50% 38%, #f3f3f5 0%, #eceef0 40%, #e4e6e9 100%);
}

body.site-apple-home .store-grid--featured .card__media--racket {
  aspect-ratio: 3 / 4;
  min-height: 320px;
}

body.site-apple-home .store-grid--featured .card__media--reel {
  aspect-ratio: 5 / 6;
}

body.site-apple-home .product-grid .card__media--apparel,
body.site-apple-home .product-grid .card__media--accessory {
  border-radius: 18px;
  background: linear-gradient(180deg, #f8f9fa 0%, #eef1ee 55%, #e8eaed 100%);
}

body.site-apple-home #merch-grid .card__media--apparel,
body.site-apple-home #merch-grid .card__media--accessory {
  background: #f5f5f7;
}

body.site-apple-home .product-grid .card__media--apparel img,
body.site-apple-home .product-grid .card__media--accessory img {
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.1));
}

/* Beat global .card__media img { width/height:100%; object-fit:cover } */
body.site-apple-home .product-grid .card__media--racket img,
body.site-apple-home .product-grid .card__media--reel img,
body.site-apple-home .product-grid .card__media--shot img,
body.site-apple-home .product-grid .card__media--apparel img,
body.site-apple-home .product-grid .card__media--accessory img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: none;
}

body.site-apple-home .store-grid--featured .product-grid .card__media {
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

body.site-apple-home .product-grid .product-card:hover .card__media img {
  transform: none;
}

body.site-apple-home .product-grid .card__body {
  padding: 1rem 0.35rem 0;
  text-align: center;
}

body.site-apple-home .product-grid .card__title {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

body.site-apple-home .product-grid .card__tagline {
  font-size: 14px;
  color: #6e6e73;
}

body.site-apple-home .product-grid .card__footer {
  justify-content: center;
}

body.site-apple-home .product-grid .card__price {
  font-size: 14px;
  color: #1d1d1f;
}

body.site-apple-home .product-grid .card__arrow {
  display: none;
}

body.site-apple-home .product-grid .card__from {
  color: #6e6e73;
}

/* Services — compact strip */
.apple-services {
  padding: 4rem 1.5rem;
  background: #f5f5f7;
  border-block: 1px solid #e8e8ed;
}

.apple-services__inner {
  max-width: var(--max-width-wide);
  margin-inline: auto;
  text-align: center;
}

.apple-services__title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.apple-services__lead {
  margin: 0 auto 2rem;
  max-width: 42ch;
  font-size: 17px;
  color: #6e6e73;
}

.apple-services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
}

.apple-services__item h4 {
  margin: 0 0 0.35rem;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.022em;
}

.apple-services__item p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #6e6e73;
}

@media (max-width: 768px) {
  .apple-services__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .apple-services__grid {
    grid-template-columns: 1fr;
  }

  .apple-ribbon {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.3rem;
    padding-inline: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    margin-bottom: 0.25rem;
  }

  .apple-ribbon::-webkit-scrollbar {
    display: none;
  }

  .apple-ribbon a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 11px;
    padding: 0.38rem 0.8rem;
  }

  body.site-apple-home .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  body.site-apple-home .store-grid--featured .product-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  body.site-apple-home .store-grid--featured .card__media--racket {
    min-height: 240px;
  }

  body.site-apple-home .apple-fullscreen-ad__title {
    font-size: clamp(1.75rem, 8vw, 2.5rem);
  }

  body.site-apple-home .apple-fullscreen-ad__subtitle {
    font-size: 1rem;
  }

  body.site-apple-home .apple-tile,
  body.site-apple-home .apple-tile--wide,
  body.site-apple-home .apple-tile--hero {
    min-height: 280px;
    padding: 1.25rem;
  }

  body.site-apple-home .portal-cta__card {
    padding: 3rem 1rem;
  }

  body.site-apple-home .portal-cta__actions {
    flex-direction: column;
    width: 100%;
  }

  body.site-apple-home .portal-cta__actions .btn {
    width: 100%;
  }
}

/* Stats */
body.site-apple-home .stats {
  background: #fff;
  border: none;
  padding-block: 3rem;
}

body.site-apple-home .stats__grid {
  gap: 2rem;
}

body.site-apple-home .stats__item {
  text-align: center;
}

body.site-apple-home .stats__value {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 600;
  letter-spacing: -0.04em;
}

/* CTA band */
body.site-apple-home .portal-cta {
  padding: 0;
  background: #1d1d1f;
  border: none;
}

body.site-apple-home .portal-cta .container {
  width: 100%;
  max-width: none;
  padding: 0;
}

body.site-apple-home .portal-cta__card {
  border: none;
  border-radius: 0;
  box-shadow: none;
  max-width: none;
  padding: 5rem 1.5rem;
  background: transparent;
  justify-content: center;
  text-align: center;
  flex-direction: column;
}

body.site-apple-home .portal-cta__card .eyebrow {
  color: #86868b;
  text-transform: none;
  font-size: 17px;
  letter-spacing: -0.022em;
}

body.site-apple-home .portal-cta__title {
  color: #f5f5f7;
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: -0.04em;
}

body.site-apple-home .portal-cta__body {
  color: #a1a1a6;
  margin-inline: auto;
  font-size: 21px;
}

body.site-apple-home .portal-cta__actions {
  justify-content: center;
  margin-top: 0.5rem;
}

body.site-apple-home .portal-cta .btn-primary {
  background: #0071e3;
}

body.site-apple-home .portal-cta .btn-secondary {
  color: #2997ff;
  border-color: rgba(255, 255, 255, 0.2);
  background: transparent;
}

body.site-apple-home .portal-cta .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Footer */
body.site-apple-home .footer {
  background: #f5f5f7;
}

/* Reveal animations — softer on home */
body.site-apple-home .reveal-on-scroll {
  transition: opacity 0.8s cubic-bezier(0.25, 0.1, 0.25, 1),
    transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}
