/* ================================================
   Supplier Detail Page — Porsche-inspired dark design
   Root selector: .supplier-apple
   Theme: Dark, edge-to-edge imagery, sharp angles, cinematic
   ================================================ */

.supplier-apple {
  --p-bg: #FAF9F5;
  --p-bg-alt: #FAF9F5;
  --p-bg-card: #fff;
  --p-text: #1a1a1a;
  --p-text-muted: #666;
  --p-accent: #D97757;
  --p-accent-hover: #c0623e;
  --p-border: rgba(0, 0, 0, 0.1);
  --p-radius: 0;
  background: var(--p-bg);
  color: var(--p-text);
}

/* ── Reset & Base ── */
.supplier-apple.play-page {
  background: var(--p-bg);
}

/* ── Hide header on supplier page so Hero starts from very top ── */
.supplier-apple .header-top,
.supplier-apple .header-nav {
  display: none !important;
}

.supplier-apple .play-shell {
  max-width: 100% !important;
  margin: 0 auto;
  padding: 0 !important;
  gap: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, -apple-system, BlinkMacSystemFont, sans-serif;
}

.supplier-apple h1, .supplier-apple h2, .supplier-apple h3 {
  color: var(--p-text);
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 700;
}

.supplier-apple .p-hero h1 {
  color: #fff;
}

.supplier-apple p {
  color: var(--p-text-muted);
  line-height: 1.6;
  margin: 0;
}

.supplier-apple a {
  color: var(--p-text);
  text-decoration: none;
}

.supplier-apple .p-hero a {
  color: #fff;
}

.supplier-apple .p-btn--accent,
.supplier-apple a.p-btn--accent {
  color: #fff;
}

/* ── Scroll Reveal ── */
.supplier-apple [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.supplier-apple [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Buttons (Porsche angular style) ── */
.p-btn-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.p-btn-group--center {
  justify-content: center;
}

.p-btn-group--left {
  justify-content: flex-start;
}

.p-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.p-btn--primary {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff;
}

.p-btn--primary:hover {
  background: #f0f0f0 !important;
  color: #000 !important;
  border-color: #f0f0f0;
}

.p-btn--outline {
  background: #fff !important;
  color: #000 !important;
  border-color: #fff;
}

.p-btn--outline:hover {
  background: #f0f0f0 !important;
  color: #000 !important;
  border-color: #f0f0f0;
}

.p-btn--dark {
  background: transparent;
  color: var(--p-text);
  border-color: var(--p-border);
}

.p-btn--dark:hover {
  border-color: var(--p-text);
}

.p-btn--accent {
  background: var(--p-accent);
  color: #fff;
  border-color: var(--p-accent);
}

.p-btn--accent:hover {
  background: var(--p-accent-hover);
  border-color: var(--p-accent-hover);
  color: #fff;
}

/* ── Full-bleed Hero ── */
.p-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  margin-top: -130px;
  padding-top: 0;
  height: calc(100vh + 130px);
  min-height: 750px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.p-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.p-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.p-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.p-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 40px;
  max-width: 960px;
  text-align: center;
}

.p-hero__home {
  position: absolute;
  top: 170px;
  left: 40px;
  z-index: 3;
  color: #fff !important;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  background: rgba(0, 0, 0, 0.25);
  padding: 8px 18px;
  border-radius: 20px;
  transition: background 0.3s, opacity 0.3s;
}

.p-hero__home:hover {
  background: rgba(0, 0, 0, 0.45);
}


.p-hero__eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-bottom: 24px;
}

.p-hero__title {
  font-size: clamp(40px, 5.5vw, 68px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

.p-hero__subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  margin-bottom: 32px;
  max-width: 460px;
  font-weight: 400;
}

.p-hero__proof {
  font-size: 13px;
  color: var(--p-text-muted);
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.p-hero__proof::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34c759;
  flex-shrink: 0;
}

/* ── Section (general) ── */
.p-section {
  padding: 80px 60px;
}

.p-section--alt {
  background: var(--p-bg-alt);
}

.p-section__header {
  text-align: center;
  margin-bottom: 64px;
}

.p-section__eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--p-accent);
  margin-bottom: 16px;
  display: block;
}

.p-section__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--p-text);
  margin-left: auto;
  margin-right: auto;
}

.p-section__desc {
  font-size: 18px;
  color: var(--p-text-muted);
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ── Section Heading (full-width banner title) ── */
.p-section-heading {
  padding: 48px 60px 20px;
  text-align: center;
}

.p-section-heading__title {
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--p-text);
}

/* ── Feature list (H3 items below H2 heading) ── */
.p-feature-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  text-align: center;
}

.p-feature-item {
  font-size: clamp(14px, 1.4vw, 16px);
  font-weight: 500;
  color: var(--p-text-muted);
  margin: 0;
  letter-spacing: 0.01em;
}

.p-feature-item a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.p-feature-item a:hover {
  color: var(--p-accent);
}

/* ── Card Grid (Porsche 3-col overlay) ── */
.p-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  padding: 0 60px 40px;
}

.p-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

.p-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.p-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-card:hover .p-card__media img {
  transform: scale(1.04);
}

.p-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 45%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.p-card__body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 20px 24px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.p-card__title {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.p-card__sub {
  display: none;
}

.p-card__arrow {
  font-size: 18px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.p-card:hover .p-card__arrow {
  transform: translateX(4px);
}

/* ── Product Grid (overlay style) ── */
.p-category {
  padding: 56px 60px;
  border-bottom: 1px solid var(--p-border);
}

.p-category:nth-child(even) {
  background: #F2F1EC;
}

.p-category__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--p-border);
}

.p-category__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.p-category__desc {
  font-size: 14px;
  color: var(--p-text-muted);
}

.p-category__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.p-product {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: default;
}

.p-product__media {
  aspect-ratio: 1;
  overflow: hidden;
}

.p-product__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.p-product:hover .p-product__media img {
  transform: scale(1.06);
}

.p-product__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.08) 55%, transparent 100%);
  z-index: 1;
  pointer-events: none;
}

.p-product__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 14px 16px;
}

.p-product__name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.p-product__sub {
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* ── Contact Section (Porsche CTA) ── */
.p-contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 500px;
  border-top: 1px solid var(--p-border);
}

.p-contact__left {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px;
  background: var(--p-bg-alt);
}

.p-contact__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.p-contact__desc {
  font-size: 17px;
  color: var(--p-text-muted);
  line-height: 1.6;
  margin-bottom: 40px;
  max-width: 400px;
}

.p-contact__right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 80px;
  background: var(--p-bg);
  border-left: 1px solid var(--p-border);
}

.p-contact__map {
  padding: 0;
  overflow: hidden;
}

.p-contact__map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 400px;
}

.p-contact__details {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 40px;
}

.p-contact__details .p-contact__item {
  padding: 20px 0;
  border-bottom: 1px solid var(--p-border);
}

.p-contact__details .p-contact__item:first-child {
  padding-top: 0;
}

.p-contact__details .p-contact__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.p-contact__item {
  padding: 24px 0;
  border-bottom: 1px solid var(--p-border);
}

.p-contact__item:first-child {
  padding-top: 0;
}

.p-contact__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.p-contact__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--p-text-muted);
  margin-bottom: 8px;
  display: block;
}

.p-contact__value,
.p-contact__value a {
  font-size: 17px;
  color: var(--p-text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.p-contact__value a:hover {
  color: var(--p-accent);
}

/* ── Footer link ── */
.p-footer-link {
  padding: 48px 60px;
  display: flex;
  justify-content: center;
  border-top: 1px solid var(--p-border);
}

.p-footer-link a {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
  text-decoration: none;
  padding: 14px 40px;
  background: var(--p-accent);
  border: none;
  border-radius: 6px;
  transition: background 0.3s;
}

.p-footer-link a:hover {
  background: var(--p-accent-hover);
  color: #fff;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .p-hero__content {
    padding: 0 40px 80px;
  }

  .p-section {
    padding: 80px 40px;
  }

  .p-card-grid {
    grid-template-columns: 1fr;
    padding: 0 40px 32px;
    gap: 16px;
  }

  .p-section-heading {
    padding: 48px 40px 20px;
  }

  .p-category {
    padding: 48px 40px;
  }

  .p-category__header {
    flex-direction: column;
    gap: 8px;
  }

  .p-category__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .p-contact {
    grid-template-columns: 1fr;
  }

  .p-contact__left,
  .p-contact__right {
    padding: 60px 40px;
  }

  .p-contact__right {
    border-left: none;
    border-top: 1px solid var(--p-border);
  }

  .p-contact__map {
    min-height: 300px;
  }
}

@media (max-width: 640px) {
  .p-hero {
    height: 80vh;
    min-height: 500px;
  }

  .p-hero__content {
    padding: 0 24px 64px;
  }

  .p-section {
    padding: 60px 24px;
  }

  .p-btn-group {
    flex-direction: column;
    width: 100%;
  }

  .p-btn {
    width: 100%;
    justify-content: center;
  }

  .p-section-heading {
    padding: 40px 24px 16px;
  }

  .p-card-grid {
    padding: 0 20px 24px;
    gap: 12px;
  }

  .p-category {
    padding: 36px 20px;
  }

  .p-category__grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .p-product__info {
    padding: 10px 12px;
  }

  .p-product__name {
    font-size: 13px;
  }

  .p-product__sub {
    font-size: 11px;
  }

  .p-contact__left,
  .p-contact__right {
    padding: 48px 24px;
  }

  .p-footer-link {
    padding: 40px 24px;
  }
}
