/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.sct-hero {
    position: relative;
    width: 100%;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background: 
        linear-gradient(135deg, #08102A 0%, #0e7490 100%),
        url('/shared/assets/gui/images/sct-bg.png') center/cover no-repeat;
    color: white;
    padding: 6rem 0;
}

.sct-hero-inner {
    text-align: left;
    max-width: 720px;
}

.sct-hero-title {
    font-size: clamp(2.4rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.sct-hero-sub {
    font-size: 1.15rem;
    opacity: 0.85;
    margin-bottom: 2rem;
}

.sct-hero-btn {
    padding: 0.85rem 2rem;
    font-size: 1.1rem;
}

/* ==========================================================================
   2. FLOATING PRODUCT BAR
   ========================================================================== */
.sct-product-bar {
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.sct-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1.25rem;
    background: var(--plx-brand-light);
    padding: 1.75rem;
    border-radius: var(--plx-radius-lg);
    border: 1px solid var(--plx-border-subtle);
    backdrop-filter: blur(12px);
}

.sct-product-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    padding: 1rem 0.5rem;
    color: var(--plx-text-dark);
    text-align: center;
    font-size: 0.95rem;
    transition: transform 0.25s ease, color 0.25s ease;
}

.sct-product-item i {
    font-size: 1.6rem;
    color: var(--plx-brand-soft);
}

.sct-product-item:hover {
    transform: translateY(-4px);
    color: var(--plx-brand-primary);
}

/* ==========================================================================
   3. EDITORIAL & ASYMMETRIC VISUAL LAYOUTS (Base & Mobile Shared)
   ========================================================================== */
.sct-editorial-block {
  padding: calc(var(--plx-space-7) * 1.5) 0;
  position: relative;
  overflow: hidden;
}

.sct-bg-light {
  background-color: #f8fafc;
}

.sct-editorial-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
}

.sct-editorial-image {
  position: relative;
  width: 100%;
  height: 360px;
  border-radius: var(--plx-radius-sm, 4px);
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.12);
}

.sct-editorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.sct-editorial-wrapper:hover .sct-editorial-image img {
  transform: scale(1.04);
}

.sct-editorial-card {
  background: #ffffff;
  padding: var(--plx-space-4);
  border-radius: var(--plx-radius-sm, 4px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.08);
  position: relative;
  z-index: 2;
  margin-top: -60px; /* Overlap image cleanly on mobile views */
}

.sct-editorial-lead {
  font-size: 1.25rem;
  line-height: 1.6;
  color: #1e293b;
  font-weight: 300;
  margin-bottom: var(--plx-space-4);
}

.sct-minimal-list {
  list-style: none;
  padding: 0;
  margin: 0 var(--plx-space-4) calc(var(--plx-space-4) * 1.5) 0;
}

.sct-minimal-list li {
  font-size: 0.95rem;
  color: #64748b;
  padding: var(--plx-space-2) 0;
  border-bottom: 1px solid #f1f5f9;
}

.sct-premium-link {
  display: inline-flex;
  align-items: center;
  gap: var(--plx-space-3);
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.sct-premium-link svg {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.sct-premium-link:hover svg {
  transform: translateX(8px);
}

/* ==========================================================================
   4. HORIZONTAL CAROUSEL (DRAG & SWIPE CAPABLE)
   ========================================================================== */
.sct-carousel-section {
  padding: calc(var(--plx-space-7) * 1.5) 0;
  background-color: #ffffff;
  overflow: hidden;
}

.sct-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--plx-space-5);
}

.sct-carousel-instructions {
  display: flex;
  align-items: center;
  gap: var(--plx-space-3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #94a3b8;
}

.sct-swipe-line {
  width: 60px;
  height: 1px;
  background-color: #cbd5e1;
  position: relative;
}

.sct-carousel-container {
  overflow-x: auto;
  padding: var(--plx-space-2, 0.5rem) 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.sct-carousel-container::-webkit-scrollbar {
  display: none;
}

.sct-carousel-container.is-dragging {
  scroll-snap-type: none;
  scroll-behavior: auto;
  cursor: grabbing;
}

.sct-carousel-container.is-dragging .sct-carousel-card {
  scroll-snap-align: none;
}

.sct-carousel-track {
  display: flex;
  gap: var(--plx-space-5, 1.5rem);
  padding-bottom: var(--plx-space-4);
  width: max-content;
}

.sct-carousel-card {
  scroll-snap-align: start;
  width: 300px;
  background: #f8fafc;
  border-radius: var(--plx-radius-sm, 4px);
  overflow: hidden;
  transition: transform 0.4s ease;
}

.sct-card-img-wrapper {
  height: 240px;
  overflow: hidden;
  position: relative;
}

.sct-card-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.sct-carousel-card:hover .sct-card-img-wrapper img {
  transform: scale(1.05);
}

.sct-card-meta {
  padding: var(--plx-space-4);
}

.sct-card-meta h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: var(--plx-space-1);
}

.sct-card-meta p {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: var(--plx-space-3);
}

.sct-card-meta a {
  font-size: 0.8rem;
  text-decoration: none;
  font-weight: 600;
  color: #0e7490;
}

/* ==========================================================================
   5. IMMERSIVE FULL-WIDTH IMAGE BANNER (CTA)
   ========================================================================== */
.sct-immersive-cta {
  position: relative;
  width: 100%;
  display: flex;
  /* 1. Mobile First: Stack vertically. Image top, text bottom */
  flex-direction: column; 
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  color: #ffffff;
  background-color: #020617; /* Seamless fallback background */
}

.sct-cta-bg {
  /* 2. Mobile First: Let it behave like a normal inline block relative to text */
  position: relative; 
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #020617;
}

/* The high-end edge blur effects */
.sct-cta-bg::after {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  z-index: 2;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  -webkit-mask-image: linear-gradient(to right, black 0%, transparent 10%, transparent 90%, black 100%);
  mask-image: linear-gradient(to right, black 0%, transparent 10%, transparent 90%, black 100%);
}

.sct-cta-bg img {
  width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 10%, black 90%, transparent 100%);
}

.sct-cta-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to bottom, rgba(2,6,23,0.2), rgba(2,6,23,0.6));
  z-index: 1.5; 
}

/* Content Box Mobile Defaults */
.sct-cta-content-wrap {
  position: relative;
  z-index: 3;
  width: calc(100% - 2rem); /* Keeps tiny margin away from screen glass edge */
  max-width: 700px;
  margin: 1.5rem auto; /* Creates a clean layout gap directly under the image */
  background-color: black; 
  color: var(--plx-text-soft); 
  border-radius: 30px;
}

.sct-cta-content-wrap h2 {
  font-size: clamp(1.6rem, 4vw, 2.75rem);
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: var(--plx-space-3);
}

.sct-cta-content-wrap p {
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: var(--plx-space-5);
}

/* ==========================================================================
   DESKTOP OVERRIDES (Screens wider than 768px tablets)
   ========================================================================== */
@media (min-width: 768px) {
  .sct-immersive-cta {
    height: 800px;
    flex-direction: row; /* Cancels column stacking */
    justify-content: center;
    align-items: center;
  }

  /* Snap the background panel back to full dimensions behind the text */
  .sct-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
  }

  .sct-cta-bg img {
    width: auto;
    height: 100%;
  }

  /* Position the text layout box back into an floating centered overlay grid */
  .sct-cta-content-wrap {
    margin: 0 auto;
    width: 100%;
  }
}

/* Luxury Button System */
.sct-btn-luxury {
  display: inline-block;
  background: #ffffff;
  color: #020617;
  padding: 1.1rem 2.2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-radius: var(--plx-radius-sm, 4px);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

.sct-btn-luxury:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  background: #0e7490;
  color: #fff;
}

/* ==========================================================================
   6. DESKTOP CORNER OVERLAP RETUNING (Media Query Optimization)
   ========================================================================== */
@media (min-width: 993px) {
  .sct-editorial-wrapper {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: 1fr;
    align-items: stretch; 
  }

  .sct-editorial-image {
    height: 560px;
    grid-row: 1;
    align-self: start;
    margin-bottom: 60px; /* Creates vertical space underneath for the offset */
  }

  .sct-editorial-card {
    grid-row: 1;
    align-self: end;
    padding: calc(var(--plx-space-6) * 1.5);
    margin-top: 0; /* Reset mobile override layout */
  }

  /* Marstair (Standard) Corner Tuning */
  .sct-editorial-wrapper:not(.sct-editorial-reverse) .sct-editorial-image {
    grid-column: 1 / 8;
  }
  .sct-editorial-wrapper:not(.sct-editorial-reverse) .sct-editorial-card {
    grid-column: 7 / 13;
    margin-left: -20px; /* Small corner overlay shift */
  }

  /* Quartz (Reverse) Corner Tuning */
  .sct-editorial-wrapper.sct-editorial-reverse .sct-editorial-image {
    grid-column: 6 / 13;
  }
  .sct-editorial-wrapper.sct-editorial-reverse .sct-editorial-card {
    grid-column: 1 / 7;
    margin-right: -20px; /* Small corner overlay shift */
  }
}