/* =========================================
   CTA BANNER
   ========================================= */

.cta {
  background: #dddddd;
  padding-block: var(--space-3xl);
}

/* Widen the container for this section only */
.cta .container {
  max-width: 1400px;
}

/* Card wrapper */
.cta__card {
  background: var(--color-primary);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  padding: var(--space-2xl) var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  align-items: center;
  box-shadow: 0 0 70px rgba(56, 55, 20, 0.5);
}

/* Dot-grid inside card */
.cta__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(201, 157, 102, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow top-right */
.cta__card::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 120%;
  background: radial-gradient(ellipse at center, rgba(201, 157, 102, 0.09) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* ---- Content (left) ---- */
.cta__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-md);
}

.cta__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.6875rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.cta__label::before,
.cta__label::after {
  content: '';
  display: block;
  width: 22px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.5;
}

.cta__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.625rem, 5vw, 2.5rem);
  font-weight: var(--fw-bold);
  color: var(--color-white);
  line-height: 1.15;
}

.cta__description {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.75;
  max-width: 420px;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
  margin-top: var(--space-sm);
}

.cta__actions .btn--primary {
  background: var(--color-accent);
  color: var(--color-white);
  border: 0.3px solid var(--color-accent);
  border-radius: 5px;
  font-size: 0.9375rem;
  padding: 0.75rem 1.875rem;
}

.cta__actions .btn--primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  box-shadow: var(--shadow-accent);
}

.cta__actions .btn--outline {
  background: transparent;
  color: var(--color-white);
  border: 0.3px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  font-size: 0.9375rem;
  padding: 0.75rem 1.875rem;
}

.cta__actions .btn--outline:hover {
  border-color: var(--color-white);
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.08);
}

/* ---- Visual (right) ---- */
.cta__visual {
  position: relative;
  z-index: 1;
  width: min(260px, 80vw);
  height: min(260px, 80vw);
  flex-shrink: 0;
}

.cta__img-frame {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  border: 0.3px solid rgba(201, 157, 102, 0.3);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.cta__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: ctaSpinCW 18s linear infinite;
  transform-origin: center center;
}

/* Decorative ring — spins opposite direction */
.cta__img-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 0.3px dashed rgba(201, 157, 102, 0.25);
  animation: ctaSpinCCW 20s linear infinite;
  pointer-events: none;
}

/* Clockwise — image */
@keyframes ctaSpinCW {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Counter-clockwise — ring */
@keyframes ctaSpinCCW {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* Floating badge */
.cta__badge {
  position: absolute;
  bottom: 8%;
  left: -8%;
  background: var(--color-white);
  border-radius: var(--radius-full);
  padding: 7px 14px 7px 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  box-shadow: var(--shadow-md);
  font-size: 0.75rem;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  white-space: nowrap;
  animation: floatY 4s ease-in-out infinite;
}

.cta__badge-icon {
  width: 28px;
  height: 28px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* 375px */
@media (min-width: 375px) {
  .cta__visual {
    width: min(290px, 80vw);
    height: min(290px, 80vw);
  }
}

/* 768px – iPad Mini */
@media (min-width: 768px) {
  .cta {
    padding-block: var(--space-4xl);
  }

  .cta__card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3xl);
    gap: var(--space-3xl);
    border-radius: 24px;
  }

  .cta__content {
    align-items: flex-start;
    text-align: left;
    flex: 1;
  }

  .cta__label {
    font-size: 0.75rem;
  }

  .cta__heading {
    font-size: clamp(1.875rem, 3.5vw, 2.75rem);
  }

  .cta__description {
    font-size: 1rem;
  }

  .cta__actions {
    justify-content: flex-start;
  }

  .cta__visual {
    width: 280px;
    height: 280px;
    flex-shrink: 0;
  }

  .cta__badge {
    left: -10%;
  }
}

/* 853px – ZenBook Fold */
@media (min-width: 853px) {
  .cta__heading {
    font-size: clamp(2rem, 3.5vw, 3rem);
  }

  .cta__description {
    font-size: 1.0625rem;
    max-width: 460px;
  }

  .cta__visual {
    width: 320px;
    height: 320px;
  }

  .cta__actions .btn--primary,
  .cta__actions .btn--outline {
    font-size: 1rem;
    padding: 0.875rem 2rem;
  }
}

/* 900px – Surface Pro */
@media (min-width: 900px) {
  .cta__card {
    padding: var(--space-3xl) var(--space-4xl);
  }

  .cta__heading {
    font-size: clamp(2.25rem, 3.5vw, 3.25rem);
  }

  .cta__description {
    font-size: 1.125rem;
    max-width: 480px;
  }

  .cta__visual {
    width: 360px;
    height: 360px;
  }

  .cta__actions .btn--primary,
  .cta__actions .btn--outline {
    font-size: 1.0625rem;
    padding: 0.9375rem 2.25rem;
  }
}

/* 1024px – iPad Pro */
@media (min-width: 1024px) {
  .cta__card {
    padding: 4rem 5rem;
    border-radius: 28px;
  }

  .cta__heading {
    font-size: clamp(2.5rem, 3.5vw, 3.5rem);
  }

  .cta__description {
    font-size: 1.1875rem;
    max-width: 520px;
  }

  .cta__visual {
    width: 400px;
    height: 400px;
  }

  .cta__actions .btn--primary,
  .cta__actions .btn--outline {
    font-size: 1.125rem;
    padding: 1rem 2.5rem;
  }
}

/* 1280px – Desktop */
@media (min-width: 1280px) {
  .cta__card {
    padding: 4.5rem 6rem;
  }

  .cta__heading {
    font-size: clamp(2.75rem, 3vw, 3.75rem);
  }

  .cta__visual {
    width: 440px;
    height: 440px;
  }
}

/* 1440px – Wide */
@media (min-width: 1440px) {
  .cta__card {
    padding: 5rem 7rem;
  }

  .cta__visual {
    width: 480px;
    height: 480px;
  }
}

/* Nest Hub – short viewport */
@media (min-width: 1024px) and (max-height: 650px) {
  .cta {
    padding-block: var(--space-2xl);
  }

  .cta__card {
    padding: var(--space-2xl) var(--space-3xl);
  }

  .cta__visual {
    width: 280px;
    height: 280px;
  }
}

/* Phone landscape */
@media (orientation: landscape) and (max-height: 500px) {
  .cta {
    padding-block: var(--space-xl);
  }

  .cta__card {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) var(--space-2xl);
    gap: var(--space-xl);
  }

  .cta__content {
    align-items: flex-start;
    text-align: left;
    flex: 1;
  }

  .cta__heading {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
  }

  .cta__description {
    font-size: 0.875rem;
  }

  .cta__actions {
    justify-content: flex-start;
  }

  .cta__visual {
    width: min(160px, 28vw);
    height: min(160px, 28vw);
    flex-shrink: 0;
  }
}
