
/* ============================================
   Samsung-Inspired Homepage Sections
   ============================================ */

/* --- Hero Carousel --- */
.s-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
}

.s-hero__slides {
  position: relative;
  width: 100%;
  height: 100%;
}

.s-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s cubic-bezier(.4,0,.2,1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-hero__slide.active {
  opacity: 1;
  z-index: 2;
}

.s-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.s-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.05);
  transition: transform 8s cubic-bezier(.25,.1,.25,1);
}

.s-hero__slide.active .s-hero__bg-img {
  transform: scale(1);
}

.s-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.85) 0%,
    rgba(0,0,0,.6) 40%,
    rgba(0,0,0,.2) 70%,
    rgba(0,0,0,.1) 100%
  );
}

.s-hero__content {
  position: relative;
  z-index: 3;
  text-align: left;
  max-width: 700px;
  padding-top: 80px;
}

.s-hero__eyebrow {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--accent, #00D4AA);
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s cubic-bezier(.16,1,.3,1) .3s;
}

.s-hero__slide.active .s-hero__eyebrow {
  opacity: 1;
  transform: none;
}

.s-hero__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s cubic-bezier(.16,1,.3,1) .5s;
}

.s-hero__slide.active .s-hero__title {
  opacity: 1;
  transform: none;
}

.s-hero__desc {
  font-size: clamp(16px, 2vw, 20px);
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 500px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s cubic-bezier(.16,1,.3,1) .7s;
}

.s-hero__slide.active .s-hero__desc {
  opacity: 1;
  transform: none;
}

.s-hero__actions {
  display: flex;
  align-items: center;
  gap: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all .8s cubic-bezier(.16,1,.3,1) .9s;
}

.s-hero__slide.active .s-hero__actions {
  opacity: 1;
  transform: none;
}

.s-hero__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

/* Hero navigation dots */
.s-hero__nav {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 12px;
}

.s-hero__dot {
  width: 40px;
  height: 4px;
  border: none;
  border-radius: 2px;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: all .4s ease;
  padding: 0;
}

.s-hero__dot.active {
  background: var(--accent, #00D4AA);
  width: 60px;
}

/* Hero arrows */
.s-hero__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(0,0,0,.3);
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  transition: all .3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.s-hero__arrow:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.4);
}

.s-hero__arrow--prev { left: 24px; }
.s-hero__arrow--next { right: 24px; }

/* --- Trust Bar --- */
.trust-bar {
  background: var(--surface, #0a0a0a);
  border-top: 1px solid var(--border, #1a1a1a);
  border-bottom: 1px solid var(--border, #1a1a1a);
  padding: 40px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.trust-item__icon {
  color: var(--accent, #00D4AA);
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,212,170,.08);
  border-radius: 12px;
}

.trust-item__icon svg { width: 22px; height: 22px; }

.trust-item h4 {
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--text, #fff);
  margin-bottom: 4px;
}

.trust-item p {
  font-size: 13px;
  color: var(--text-tertiary, #666);
  line-height: 1.5;
}

/* --- Product Showcase (Samsung-style grid) --- */
.s-showcase {
  padding: 100px 0;
  background: var(--bg, #000);
}

.s-showcase__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text, #fff);
  margin-bottom: 60px;
}

.s-showcase__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.s-product {
  display: block;
  text-decoration: none;
  background: var(--surface, #0a0a0a);
  border: 1px solid var(--border, #1a1a1a);
  border-radius: 16px;
  overflow: hidden;
  transition: all .4s cubic-bezier(.16,1,.3,1);
}

.s-product:hover {
  transform: translateY(-4px);
  border-color: rgba(0,212,170,.3);
  box-shadow: 0 20px 60px rgba(0,0,0,.4);
}

.s-product--large {
  grid-column: span 2;
}

.s-product__img-wrap {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0d0d0d;
}

.s-product--large .s-product__img-wrap {
  aspect-ratio: 16/9;
}

.s-product__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
  transition: transform .6s cubic-bezier(.16,1,.3,1);
}

.s-product:hover .s-product__img {
  transform: scale(1.05);
}

.s-product__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--accent, #00D4AA);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
}

.s-product__info {
  padding: 24px 28px 28px;
}

.s-product__name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--text, #fff);
  margin-bottom: 8px;
}

.s-product--large .s-product__name {
  font-size: 24px;
}

.s-product__desc {
  font-size: 14px;
  color: var(--text-secondary, #999);
  line-height: 1.6;
  margin-bottom: 12px;
}

.s-product__price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent, #00D4AA);
}

.s-showcase__cta {
  text-align: center;
  margin-top: 60px;
}

/* --- Feature Highlight (Samsung alternating sections) --- */
.s-feature {
  padding: 120px 0;
  overflow: hidden;
}

.s-feature--dark {
  background: #050505;
}

.s-feature--light {
  background: #f5f5f5;
}

.s-feature__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.s-feature__grid--reverse {
  direction: rtl;
}

.s-feature__grid--reverse > * {
  direction: ltr;
}

.s-feature__text {
  max-width: 520px;
}

.s-feature--light .s-feature__text .eyebrow {
  color: #00D4AA;
}

.s-feature--light .s-feature__title {
  color: #111;
}

.s-feature--light .s-feature__desc {
  color: #555;
}

.s-feature--light .s-feature__spec-val {
  color: #111;
}

.s-feature--light .s-feature__spec-label {
  color: #777;
}

.s-feature__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.15;
}

.s-feature__desc {
  font-size: 17px;
  color: rgba(255,255,255,.65);
  line-height: 1.8;
  margin-bottom: 32px;
}

.s-feature__specs {
  display: flex;
  gap: 40px;
  margin-bottom: 36px;
}

.s-feature__spec {
  display: flex;
  flex-direction: column;
}

.s-feature__spec-val {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
}

.s-feature__spec-label {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-top: 4px;
}

.s-feature__visual {
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,.03);
}

.s-feature__visual img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Why CaptainDMA --- */
.s-why {
  padding: 100px 0;
  background: var(--bg, #000);
}

.s-why__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text, #fff);
  margin-bottom: 60px;
}

.s-why__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.s-why__card {
  background: var(--surface, #0a0a0a);
  border: 1px solid var(--border, #1a1a1a);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all .3s ease;
}

.s-why__card:hover {
  border-color: rgba(0,212,170,.25);
  transform: translateY(-2px);
}

.s-why__icon {
  color: var(--accent, #00D4AA);
  margin-bottom: 20px;
}

.s-why__icon svg { width: 28px; height: 28px; }

.s-why__card h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--text, #fff);
  margin-bottom: 12px;
}

.s-why__card p {
  font-size: 14px;
  color: var(--text-secondary, #999);
  line-height: 1.7;
}

/* --- Testimonials --- */
.s-testimonials {
  padding: 100px 0;
  background: var(--surface, #0a0a0a);
  border-top: 1px solid var(--border, #1a1a1a);
}

.s-testimonials__heading {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text, #fff);
  margin-bottom: 60px;
}

.s-testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.s-testimonial {
  background: var(--bg, #000);
  border: 1px solid var(--border, #1a1a1a);
  border-radius: 16px;
  padding: 36px;
}

.s-testimonial__stars {
  color: #EABE12;
  font-size: 16px;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.s-testimonial p {
  color: var(--text-secondary, #999);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.s-testimonial span {
  font-size: 13px;
  color: var(--text-tertiary, #666);
  font-weight: 500;
}

/* --- Dealer CTA --- */
.s-dealer {
  padding: 100px 0;
  text-align: center;
  background: var(--bg, #000);
  border-top: 1px solid var(--border, #1a1a1a);
}

.s-dealer__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  color: var(--text, #fff);
  margin-bottom: 16px;
}

.s-dealer__desc {
  color: var(--text-secondary, #999);
  max-width: 600px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-size: 16px;
}

/* --- CTA Band --- */
.s-cta {
  padding: 100px 0;
  text-align: center;
  background: linear-gradient(135deg, #001a14 0%, #000 50%, #0a0020 100%);
  border-top: 1px solid var(--border, #1a1a1a);
}

.s-cta__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

.s-cta__desc {
  color: rgba(255,255,255,.6);
  font-size: 18px;
  margin-bottom: 32px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .s-showcase__grid { grid-template-columns: repeat(2, 1fr); }
  .s-product--large { grid-column: span 2; }
  .s-feature__grid { grid-template-columns: 1fr; gap: 40px; }
  .s-feature__grid--reverse { direction: ltr; }
  .s-why__grid { grid-template-columns: repeat(2, 1fr); }
  .s-testimonials__grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .s-hero { min-height: 500px; }
  .s-hero__content { padding: 0 20px; padding-top: 60px; }
  .s-hero__arrow { display: none; }
  .s-showcase__grid { grid-template-columns: 1fr; }
  .s-product--large { grid-column: span 1; }
  .s-feature { padding: 80px 0; }
  .s-feature__specs { gap: 24px; }
  .s-why__grid { grid-template-columns: 1fr; }
  .s-showcase, .s-why, .s-testimonials, .s-dealer, .s-cta { padding: 72px 0; }
}
