/* ============================================================
   product-pages.css — GSV Sales
   Shared styles for product pages content sections
   ============================================================ */

/* ── LAYOUT & SPACING ────────────────────────────────────────── */
.product-section {
  padding-top: var(--section-pad);
  padding-bottom: var(--section-pad);
  position: relative;
}

.product-section--off-white { background: var(--off-white); }
.product-section--white { background: var(--white); }
.product-section--dark { background: var(--black); color: var(--white); }

/* ── OVERVIEW SECTION ────────────────────────────────────────── */
.product-overview__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  max-width: 900px;
}

.product-overview__headline {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--black);
}

.product-overview__desc {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--gray-2);
  line-height: 1.5;
  max-width: 720px;
}

/* ── PRODUCT GRID (General) ──────────────────────────────────── */
.product-grid__header {
  margin-bottom: 64px;
}

.product-grid__headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.product-grid__sub {
  font-size: 18px;
  color: var(--gray-1);
}

.product-grid__cards {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Variable columns support */
.product-grid__cards--2-col { grid-template-columns: repeat(2, 1fr); }
.product-grid__cards--3-col { grid-template-columns: repeat(3, 1fr); }
.product-grid__cards--4-col { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
  .product-grid__cards--4-col,
  .product-grid__cards--3-col { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .product-grid__cards--4-col,
  .product-grid__cards--3-col,
  .product-grid__cards--2-col { grid-template-columns: 1fr; }
}

/* ── PRODUCT CARDS (with swipe-up hover) ─────────────────────── */
.product-card {
  background: var(--off-white);
  padding: 40px 32px;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid var(--gray-light);
}

/* Swipe-up background effect */
.product-card::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 0%;
  background: var(--black-2);
  z-index: -1;
  transition: height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-card:hover::before {
  height: 100%;
}

.product-card__icon {
  width: 48px;
  height: 48px;
  background: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--orange);
  transition: all 0.3s ease;
}

.product-card__title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
  transition: color 0.3s ease;
}

.product-card__desc {
  font-size: 16px;
  color: var(--gray-2);
  line-height: 1.6;
  transition: color 0.3s ease;
}

/* Hover state text colors */
.product-card:hover .product-card__title { color: var(--white); }
.product-card:hover .product-card__desc { color: rgba(255, 255, 255, 0.7); }
.product-card:hover .product-card__icon { background: var(--gray-3); color: var(--orange); }


/* ── PRODUCT FEATURE (Full Width / Split) ────────────────────── */
.product-feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.product-feature__inner--reverse {
  direction: rtl;
}
.product-feature__inner--reverse > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .product-feature__inner, .product-feature__inner--reverse {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.product-feature__content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-feature__headline {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.product-feature__desc {
  font-size: 18px;
  color: var(--gray-2);
  line-height: 1.6;
}

/* ── PLACEHOLDERS ────────────────────────────────────────────── */
.placeholder-media {
  background: var(--gray-light);
  border-radius: var(--radius);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-1);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.1em;
  border: 1px dashed var(--gray-1);
}

.placeholder-media--16-9 { aspect-ratio: 16 / 9; }
.placeholder-media--4-3 { aspect-ratio: 4 / 3; }
.placeholder-media--1-1 { aspect-ratio: 1 / 1; }

/* ── FINAL CTA ───────────────────────────────────────────────── */
/* We can reuse the .cta-final from sections.css if we include sections.css, 
   but since these are separate pages, we'll redefine or just ensure sections.css is loaded.
   Actually, it's better to ensure sections.css is loaded on these pages, OR duplicate it here 
   so we don't load the whole sections.css. Let's recreate a dedicated one just in case, or use a shared class. */

.pg-cta {
  min-height: 100vh;
  display: flex;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--black);
}

.pg-cta::before {
  content: '';
  position: absolute;
  bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 640px; height: 340px;
  background: radial-gradient(ellipse, rgba(240,90,34,0.16) 0%, transparent 68%);
  pointer-events: none;
}

.pg-cta__inner {
  padding: var(--section-pad) 0;
  position: relative;
  z-index: 1;
  width: 100%;
}

.pg-cta__headline {
  font-size: clamp(30px, 4.5vw, 58px);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 auto 18px;
  max-width: 800px;
}

.pg-cta__sub {
  font-size: 18px;
  color: rgba(255,255,255,0.48);
  margin-bottom: 44px;
}

.pg-cta__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

@media (max-width: 600px) {
  .pg-cta__actions {
    flex-direction: column;
    align-items: center;
  }
}
