/* ==========================================
   SHARED PAGE HERO
========================================== */

.page-hero {
  position: relative;
  height: 65vh;
  min-height: 520px;
  overflow: hidden;
}

.page-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.7),
      rgba(0, 0, 0, 0.2)
    );
}

.page-hero-overlay {
  position: absolute;
  left: 120px;
  right: 120px;
  bottom: 80px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.page-hero-overlay h1 {
  color: white;
  font-size: 72px;
  line-height: 1;
  font-weight: 600;
}

.page-hero-overlay p {
  color: white;
  max-width: 340px;
  font-size: 15px;
  line-height: 1.6;
}

/* ==========================================
   PRODUCTS LISTING PAGE
========================================== */

.products-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  padding: 120px 80px 80px;

  max-width: 1400px;
  margin: 0 auto;
}

.products-intro-heading h2 {
  font-size: clamp(48px, 5vw, 32px);
  line-height: 1;
  font-weight: 500;
}

.products-intro-copy {
  width: 380px;
}

.products-intro-copy p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(0,0,0,.95);
}

.products-page {
  color: var(--color-text);
}

.products-page .page-hero--centered .page-hero-overlay {
  left: clamp(24px, 8vw, 120px);
  right: clamp(24px, 8vw, 120px);

  bottom: clamp(40px, 6vw, 80px);

  transform: none;

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;

  gap: 0;
}

.products-page .page-hero--centered .page-hero-overlay h1 {
  font-size: clamp(42px, 6vw, 42px);
}

.products-page .page-hero--centered .page-hero-overlay p {
  display: none;
}

/* ==========================================
   PRODUCT CATALOG LIST
========================================== */

.products-catalog {
  --products-gutter: clamp(20px, 4vw, 56px);

  background: var(--color-bg);
  color: var(--color-text);
}

.product-list-item {
  border-bottom: 2px solid rgba(0, 0, 0, 0.08);
  padding-bottom: 10px;
  margin-bottom: 30px;
}

.product-list-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.product-list-link {
  display: grid;
  grid-template-columns: 120px 1fr;
  column-gap: 60px;

  padding: 0 40px;
  text-decoration: none;
  color: inherit;
}

.product-list-link:hover {
  opacity: 0.88;
}

.product-list-number {
  grid-column: 1;
  grid-row: 1 / span 2;

  align-self: start;

  font-size: 24px;
  font-weight: 500;
  color: rgba(0,0,0,.8);

  margin-top: 10px;
}

.product-list-media {
  grid-column: 2;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
}

.product-list-media img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 1;
  object-fit: cover;
  border-radius: 24px;
  transform-origin: center center;
  transform: scale(1.25);

  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.product-list-link:hover .product-list-media img {
  transform: scale(1);
}
.product-list-copy {
  grid-column: 2;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 12px;

  margin-top: 24px;
}
.product-list-copy h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 42px);
  line-height: 1.05;
  font-weight: 500;
}
.product-list-copy p {
  margin: 0;

  max-width: 420px;

  font-size: 15px;
  line-height: 1.6;

  color: rgba(0,0,0,.55);
}

.product-list-cta {
  display: none;
}

.product-list-cta .slot-text,
.product-list-cta .slot-arrow {
  height: 1.2em;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-list-cta .slot-text span,
.product-list-cta .slot-arrow span {
  height: 1.2em;
  display: flex;
  align-items: center;
  line-height: 1;
}

/* Wider images on large screens */
@media (min-width: 769px) {
  .products-catalog {
    --products-gutter: clamp(32px, 5vw, 72px);
  }

  .product-list-media img {
    aspect-ratio: 21 / 9;
    border-radius: var(--radius-md);
  }
}

@media (min-width: 1200px) {
  .products-catalog {
    --products-gutter: clamp(40px, 5vw, 80px);
  }

  .product-list-media img {
    aspect-ratio: 2.35 / 1;
  }
}

/* ==========================================
   PRODUCT DETAIL PAGE
========================================== */

.product-detail-page {
  color: var(--color-text);
}

.product-hero {
  position: relative;
  height: 65vh;
  min-height: 520px;
  overflow: hidden;
}

.product-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to top,
      rgba(0, 0, 0, 0.72),
      rgba(0, 0, 0, 0.25)
    );
}

.product-hero-overlay {
  position: absolute;
  left: clamp(24px, 8vw, 120px);
  right: clamp(24px, 8vw, 120px);
  bottom: clamp(40px, 6vw, 80px);
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.product-hero-overlay h1 {
  color: var(--color-white);
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1;
  font-weight: 600;
}

.product-hero-overlay p {
  color: var(--color-white);
  max-width: 340px;
  font-size: 15px;
  line-height: 1.6;
  text-align: right;
}

/* Narrative */

.product-narrative {
  padding: clamp(50px, 10vw, 5px) 0;
  background: var(--color-bg);
}

.product-narrative .container {
  max-width: 900px;
  text-align: center;
}

.product-narrative h2 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.12;
  margin-bottom: clamp(28px, 4vw, 40px);
  color: var(--color-text);
}

.product-narrative p {
  font-size: 16px;
  line-height: 1.8;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: clamp(32px, 5vw, 48px);
}

.product-narrative-img {
  width: 100%;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.product-narrative-img:last-of-type {
  margin-bottom: 0;
}

.product-detail-page .products-catalog {
  padding-top: clamp(32px, 5vw, 64px);
}

.product-detail-page .products-catalog + .product-narrative {
  padding-top: clamp(48px, 8vw, 80px);
}

/* Why AHA */

.product-why {
  padding: clamp(64px, 8vw, 100px) 0 clamp(80px, 10vw, 120px);
  background: var(--color-bg);
}

.product-why .container {
  max-width: 720px;
}

.product-why h2 {
  font-size: clamp(28px, 3.5vw, 28px);
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--color-text);
}

.product-why .container > h2:not(:first-child) {
  margin-top: 40px;
}

.product-why > .container > p {
  font-size: 16px;
  line-height: 1.75;
  color: rgba(0, 0, 0, 0.65);
  margin-bottom: 32px;
}

.product-why-list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.product-why-list li {
  position: relative;
  padding-left: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(0, 0, 0, 0.75);
}

.product-why-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-text);
}

/* Demo booking — contact form section */

.contact-demo-section {
  padding: clamp(56px, 8vw, 96px) 0 clamp(72px, 9vw, 120px);
}

.contact-demo-section .contact-copy h2 {
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 18px;
}

.contact-demo-section .contact-copy > p {
  max-width: 420px;
  font-size: clamp(15px, 1.6vw, 16px);
  line-height: 1.65;
  color: rgba(0, 0, 0, 0.6);
}

.contact-action-list {
  list-style: none;
  display: grid;
  gap: 18px;
  margin-top: 36px;
  padding: 0;
}

.contact-action-list li {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: clamp(14px, 1.5vw, 15px);
  line-height: 1.5;
  color: var(--color-text);
}

.contact-action-list a {
  color: var(--color-text);
  text-decoration: none;
  transition: color var(--transition), text-decoration-color var(--transition);
}

.contact-action-list a:hover {
  color: var(--color-accent);
  text-underline-offset: 3px;
}

.contact-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  color: rgba(0, 0, 0, 0.6);
  background: rgba(0, 0, 0, 0.04);
}

.contact-demo-section .contact-layout {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 480px);
  align-items: start;
}

.contact-demo-section .contact-form {
  border-radius: 18px;
  background: #1a1a1a;
  box-shadow: none;
}

.contact-demo-section .contact-form button {
  width: 100%;
  margin-top: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-weight: 700;
}

.contact-demo-section .contact-form button:hover {
  transform: none;
  filter: brightness(0.96);
}

@media (max-width: 900px) {
  .contact-demo-section .contact-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

/* Experience centre — products listing & detail pages */

.products-page .experience-centre-section,
.product-detail-page .experience-centre-section {
  padding-top: clamp(64px, 10vw, 120px);
}

/* Detail pages wrap copy in an inner div — stretch it to the full card
   so the absolute button anchors to the card, not the heading box. */
.product-detail-page .experience-centre-card > div {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 10vw, 110px) clamp(24px, 4vw, 40px)
    clamp(96px, 12vw, 120px);
  text-align: center;
  max-width: none;
  pointer-events: none;
}

.product-detail-page .experience-centre-card .section-button {
  pointer-events: auto;
  border-radius: 999px;
  padding: 15px 28px;
  width: auto;
  height: auto;
}

.products-page .experience-centre-card > h2,
.product-detail-page .experience-centre-card > div > h2 {
  max-width: 11em;
}

/* ==========================================
   RESPONSIVE
========================================== */

@media (max-width: 768px) {
  .page-hero-overlay {
    left: 24px;
    right: 24px;
    bottom: 40px;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .page-hero-overlay h1 {
    font-size: 42px;
  }

  /* ---- Products listing page ---- */

  .products-page .page-hero {
    height: clamp(260px, 52vw, 360px);
    min-height: 0;
  }

  .products-page .page-hero--centered .page-hero-overlay {
    left: var(--container-padding);
    right: var(--container-padding);
    bottom: 28px;
    transform: none;
    align-items: flex-start;
    text-align: left;
  }

  .products-page .page-hero--centered .page-hero-overlay h1 {
    font-size: clamp(28px, 7.5vw, 36px);
    max-width: 100%;
    line-height: 1.08;
  }

  .products-intro {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 48px var(--container-padding) 24px;
  }

  .products-intro-heading h2 {
    font-size: clamp(32px, 8vw, 40px);
    line-height: 1.05;
  }

  .products-intro-copy {
    width: 100%;
    max-width: none;
  }

  .products-intro-copy p {
    font-size: 15px;
    line-height: 1.65;
  }

  .products-page .products-catalog,
  .product-detail-page .products-catalog {
    --products-gutter: var(--container-padding);
    counter-reset: product-item;
  }

  .products-page .product-list-item,
  .product-detail-page .product-list-item {
    counter-increment: product-item;
  }

  .products-page .product-list-link,
  .product-detail-page .product-list-link {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5px var(--container-padding) 36px;
  }

  .products-page .product-list-number,
  .product-detail-page .product-list-number {
    align-self: flex-start;
    margin: 0 0 16px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: rgba(0, 0, 0, 0.42);
  }

  .products-page .product-list-number::after {
    content: "/07";
  }

  .product-detail-page .product-list-number::after {
    content: "/02";
  }

  .products-page .product-list-media,
  .product-detail-page .product-list-media {
    width: 100%;
    margin: 0 0 20px;
  }

  .products-page .product-list-media img,
  .product-detail-page .product-list-media img {
    aspect-ratio: 16 / 10;
    border-radius: var(--radius-sm);
  }

  .products-page .product-list-copy,
  .product-detail-page .product-list-copy {
    margin-top: 0;
    gap: 10px;
  }

  .products-page .product-list-copy h2,
  .product-detail-page .product-list-copy h2 {
    font-size: clamp(22px, 5.5vw, 28px);
    line-height: 1.1;
  }

  .products-page .product-list-copy p,
  .product-detail-page .product-list-copy p {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(0, 0, 0, 0.58);
  }

  .products-page .product-list-cta,
  .product-detail-page .product-list-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text);
  }

  .products-page .product-list-cta .slot-text,
  .products-page .product-list-cta .slot-arrow,
  .product-detail-page .product-list-cta .slot-text,
  .product-detail-page .product-list-cta .slot-arrow {
    height: auto;
    overflow: visible;
    display: inline-flex;
    flex-direction: row;
    transform: none !important;
  }

  .products-page .product-list-cta .slot-text span:nth-child(2),
  .products-page .product-list-cta .slot-arrow span:nth-child(2),
  .product-detail-page .product-list-cta .slot-text span:nth-child(2),
  .product-detail-page .product-list-cta .slot-arrow span:nth-child(2) {
    display: none;
  }

  .products-page .product-list-cta .slot-text span,
  .products-page .product-list-cta .slot-arrow span,
  .product-detail-page .product-list-cta .slot-text span,
  .product-detail-page .product-list-cta .slot-arrow span {
    height: auto;
    display: inline-flex;
  }

  .products-page .compatibility-section {
    padding-bottom: 48px;
  }

  .products-page .compatibility-header h2 {
    font-size: clamp(26px, 6.5vw, 32px);
    line-height: 1.15;
  }

  .products-page .experience-centre-section,
  .product-detail-page .experience-centre-section {
    padding-top: 48px;
  }

  .products-page .experience-centre-header,
  .product-detail-page .experience-centre-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 32px;
  }

  .products-page .experience-centre-header h2,
  .product-detail-page .experience-centre-header h2 {
    font-size: clamp(26px, 6vw, 32px);
    line-height: 1.2;
    max-width: 100%;
  }

  .products-page .experience-centre-cta,
  .product-detail-page .experience-centre-cta {
    max-width: 100%;
  }

  .products-page .experience-centre-cta p,
  .product-detail-page .experience-centre-cta p {
    font-size: 14px;
    line-height: 1.65;
  }

  .products-page .experience-centre-card,
  .product-detail-page .experience-centre-card {
    min-height: clamp(340px, 88vw, 480px);
    padding: 0;
    border-radius: var(--radius-md);
    display: block;
  }

  .products-page .experience-centre-card img,
  .products-page .experience-centre-card::after,
  .product-detail-page .experience-centre-card img,
  .product-detail-page .experience-centre-card::after {
    border-radius: var(--radius-md);
  }

  .products-page .experience-centre-card > h2 {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    margin: 0;
    padding: 0 var(--container-padding);
    max-width: 11em;
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.08;
    text-align: center;
  }

  .product-detail-page .experience-centre-card > div {
    padding: 48px var(--container-padding) 96px;
  }

  .products-page .experience-centre-card h2,
  .product-detail-page .experience-centre-card h2 {
    font-size: clamp(26px, 7vw, 34px);
    line-height: 1.08;
    max-width: 11em;
  }

  .products-page .experience-centre-card .section-button,
  .product-detail-page .experience-centre-card .section-button {
    left: var(--container-padding);
    bottom: 28px;
    transform: none;
    padding: 13px 24px;
    font-size: 13px;
  }

  .products-page .product-demo-section {
    padding: 48px 0 64px;
  }

  .products-page .product-demo-section .contact-copy h2 {
    font-size: clamp(26px, 6.5vw, 32px);
    line-height: 1.15;
  }

  .products-page .product-demo-section .contact-copy > p {
    font-size: 14px;
    line-height: 1.65;
  }

  .products-page .product-demo-section .contact-details {
    margin-top: 28px;
    gap: 12px;
  }

  .product-demo-section .contact-details p {
    flex-direction: row;
    align-items: baseline;
    font-size: 14px;
  }

  .product-hero-overlay {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-hero-overlay p {
    text-align: left;
    max-width: 100%;
  }
}
