/* ============================================================
   Aptomix — Products Section CSS
   Enqueued by: Aptomix_Products_Widget::get_style_depends()
   Google Fonts: enqueued separately via wp_enqueue_style()
   ============================================================ */

/* ── Scoped reset ────────────────────────────────────────────── */
.aptomix-products *,
.aptomix-products *::before,
.aptomix-products *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Section wrapper ─────────────────────────────────────────── */
.aptomix-products {
  background: #F4F7FA;
  padding: 100px 0;
  font-family: 'DM Sans', sans-serif;
  color: #1A2E3B;
  scroll-margin-top: 72px;
  --product-img-bg: transparent;
  --product-img-card-bg: #0D1B2A;
  --product-img-padding: 0px;
  --product-img-radius: 0px;
  --product-img-border-color: transparent;
  --product-img-border-width: 0px;
}

/* ── Container ───────────────────────────────────────────────── */
.aptomix-products__container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 40px;
}

/* ── Section header ──────────────────────────────────────────── */
.aptomix-products__head {
  margin-bottom: 64px;
}

.aptomix-products__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 2.8px;
  text-transform: uppercase;
  color: #00B0F0;
  margin-bottom: 14px;
}

.aptomix-products__heading {
  font-family: 'Outfit', sans-serif;
  font-size: 46px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: -1px;
  line-height: 1.1;
  position: relative;
  padding-left: 20px;
  margin-bottom: 16px;
}

/* Blue vertical accent bar — matches About section */
.aptomix-products__heading::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: linear-gradient(to bottom, #00B0F0 0%, rgba(0, 176, 240, 0.5) 100%);
  border-radius: 2px;
}

.aptomix-products__subheading {
  font-family: 'Outfit', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #00B0F0;
  letter-spacing: -0.2px;
  padding-left: 20px;
  margin-bottom: 20px;
}

.aptomix-products__intro {
  max-width: 680px;
  padding-left: 20px;
  font-size: 16.5px;
  line-height: 1.75;
  color: #3D5166;
}

.aptomix-products__intro p {
  margin: 0;
}

.aptomix-products__intro strong {
  color: #0D1B2A;
  font-weight: 600;
}

/* ── Product rows wrapper ────────────────────────────────────── */
.aptomix-products__rows {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ── Individual product row ──────────────────────────────────── */
.aptomix-products__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.06);
  min-height: 400px;
}

/* Alternate row: light blue tint */
.aptomix-products__row--alt {
  background: #EAF5FC;
}

/* Reversed: image right, content left */
.aptomix-products__row--reverse .aptomix-products__row-media  { order: 2; }
.aptomix-products__row--reverse .aptomix-products__row-content { order: 1; }

/* ── Row: media side ─────────────────────────────────────────── */
.aptomix-products__row-media {
  position: relative;
  overflow: hidden;
  min-height: 380px;
  background: var(--product-img-card-bg);
}

.aptomix-products__row-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--product-img-bg);
  padding: var(--product-img-padding);
  border-radius: var(--product-img-radius);
  border: var(--product-img-border-width) solid var(--product-img-border-color);
  transition: transform 0.6s ease;
}

.aptomix-products__row:hover .aptomix-products__row-media img {
  transform: scale(1.03);
}

/* Subtle inner edge overlay */
.aptomix-products__row-media-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Fade right edge for standard (image-left) rows */
.aptomix-products__row:not(.aptomix-products__row--reverse) .aptomix-products__row-media-overlay {
  background: linear-gradient(to right, transparent 55%, rgba(255, 255, 255, 0.18) 100%);
}

/* Fade left edge for reversed rows */
.aptomix-products__row--reverse .aptomix-products__row-media-overlay {
  background: linear-gradient(to left, transparent 55%, rgba(234, 245, 252, 0.18) 100%);
}

/* ── Row: content side ───────────────────────────────────────── */
.aptomix-products__row-content {
  padding: 52px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Row number badge */
.aptomix-products__row-number {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #00B0F0;
  text-transform: uppercase;
  margin-bottom: 8px;
}

/* Product title */
.aptomix-products__row-title {
  font-family: 'Outfit', sans-serif;
  font-size: 30px;
  font-weight: 700;
  color: #0D1B2A;
  letter-spacing: -0.5px;
  line-height: 1.18;
  margin-bottom: 22px;
}

/* Feature bullet list */
.aptomix-products__row-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding: 0;
}

.aptomix-products__row-features li {
  font-family: 'DM Sans', sans-serif;
  font-size: 15.5px;
  line-height: 1.6;
  color: #3D5166;
  padding-left: 22px;
  position: relative;
}

.aptomix-products__row-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #00B0F0;
  flex-shrink: 0;
}

/* ── Kit variants sub-block ──────────────────────────────────── */
.aptomix-products__row-variants {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding: 18px 20px;
  background: rgba(0, 176, 240, 0.07);
  border-left: 2px solid #00B0F0;
  border-radius: 0 6px 6px 0;
}

.aptomix-products__row-variant-label {
  display: block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #00B0F0;
  margin-bottom: 4px;
}

.aptomix-products__row-variant-desc {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: #3D5166;
}

/* ── Custom service callout ──────────────────────────────────── */
.aptomix-products__row-callout {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  padding: 16px 18px;
  margin-bottom: 28px;
}

.aptomix-products__row-callout p {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: #4A6070;
  font-style: italic;
}

/* ── CTA link ────────────────────────────────────────────────── */
.aptomix-products__row-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'DM Sans', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #00B0F0;
  text-decoration: none;
  width: fit-content;
  transition: gap 0.22s ease, color 0.22s ease;
  margin-top: auto;
  padding-top: 4px;
}

.aptomix-products__row-btn svg {
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.aptomix-products__row-btn:hover {
  color: #0096CC;
}

.aptomix-products__row-btn:hover svg {
  transform: translateX(4px);
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1200px) {
  .aptomix-products__row-content { padding: 44px 44px; }
  .aptomix-products__row-title   { font-size: 26px; }
  .aptomix-products__heading     { font-size: 40px; }
}

@media (max-width: 1024px) {
  .aptomix-products              { padding: 80px 0; }
  .aptomix-products__row         { grid-template-columns: 1fr; min-height: auto; }
  /* On tablet: stack image top, content below — both layouts */
  .aptomix-products__row--reverse .aptomix-products__row-media  { order: 0; }
  .aptomix-products__row--reverse .aptomix-products__row-content { order: 1; }
  .aptomix-products__row-media   { min-height: 300px; }
  .aptomix-products__row-content { padding: 40px 40px; }
  /* Remove edge-fade overlays on stacked layout */
  .aptomix-products__row-media-overlay { display: none; }
}

@media (max-width: 768px) {
  .aptomix-products__heading    { font-size: 36px; letter-spacing: -0.6px; }
  .aptomix-products__subheading { font-size: 19px; }
  .aptomix-products__intro      { font-size: 15.5px; }
  .aptomix-products__row-title  { font-size: 24px; }
  .aptomix-products__row-media  { min-height: 260px; }
}

@media (max-width: 600px) {
  .aptomix-products              { padding: 60px 0; }
  .aptomix-products__container   { padding: 0 20px; }
  .aptomix-products__head        { margin-bottom: 44px; }
  .aptomix-products__heading     { font-size: 30px; padding-left: 16px; }
  .aptomix-products__subheading  { padding-left: 16px; font-size: 17px; }
  .aptomix-products__intro       { padding-left: 16px; font-size: 15px; }
  .aptomix-products__row-content { padding: 32px 24px; }
  .aptomix-products__row-title   { font-size: 22px; }
  .aptomix-products__rows        { gap: 16px; }
  .aptomix-products__row-media   { min-height: 220px; }
}
