/* JCPenney Ex-Change Campaign Styles */

:root {
  --jcp-red: #c41230;
  --jcp-red-dark: #8b0d22;
  --jcp-red-deeper: #5c0000;
  --jcp-cream: #fff8f0;
  --jcp-white: #ffffff;
  --jcp-gold: #d4af37;
}

/* Fonts */
@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&family=Montserrat:wght@300;400;500;600;700&display=swap');

@font-face {
  font-family: 'New Icon Script';
  src: url('../fonts/New Icon Script.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Icon Serif';
  src: url('../fonts/New Icon Serif Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'New Icon Serif';
  src: url('../fonts/New Icon Serif Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'New Icon Serif Condensed';
  src: url('../fonts/New Icon Serif Condensed.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Font utility classes */
.font-script {
  font-family: 'New Icon Script', cursive;
}

.font-serif {
  font-family: 'New Icon Serif', serif;
}

.font-serif-italic {
  font-family: 'New Icon Serif', serif;
  font-style: italic;
}

.font-serif-condensed {
  font-family: 'New Icon Serif Condensed', serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1em;
  font-weight: 400;
  background-color: var(--jcp-red);
  color: var(--jcp-white);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  position: relative;
  z-index: 100;
}

.header-sparkle {
  height: 60px;
  width: auto;
}

.header-logo {
  height: 34px;
  width: auto;
}

/* ========================================
   BUTTONS
   ======================================== */
.btn-exchange {
  background-color: transparent;
  border: 2px solid var(--jcp-white);
  border-radius: 10px;
  color: var(--jcp-white);
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-exchange:hover {
  background-color: var(--jcp-white);
  color: var(--jcp-red);
}

.btn-store {
  background-color: transparent;
  border: 2px solid var(--jcp-white);
  border-radius: 10px;
  color: var(--jcp-white);
  padding: 0.875rem 1.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-store:hover {
  background-color: var(--jcp-white);
  color: var(--jcp-red);
}

.btn-excuse {
  background-color: transparent;
  border: 2px solid var(--jcp-white);
  border-radius: 10px;
  color: var(--jcp-white);
  padding: 1rem 2.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-excuse:hover {
  background-color: var(--jcp-white);
  color: var(--jcp-red);
}

/* ========================================
   LANDING PAGE
   ======================================== */
.landing-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: url('../images/bg-heart.jpg') no-repeat center top;
  background-size: cover;
  background-attachment: fixed;
}

@media (max-width: 768px) {
  .landing-page {
    background-image: url('../images/bg-heart-mobile.jpg');
  }
}

.hero-section {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50vh;
  overflow: hidden;
  z-index: 10;
  margin-top:-40px;
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem;
  padding-top: 0;
  max-width: 600px;
}

.logo-lockup {
  margin-bottom: 1.5rem;
}

.exchange-logo-img {
  max-width: 100%;
  width: 420px;
  height: auto;
}

.tagline-img {
  max-width: 100%;
  width: 320px;
  height: auto;
}

.tagline-lockup {
  margin-bottom: 1rem;
}

.tagline-text {
  font-size: 2.5rem;
  color: var(--jcp-white);
  margin: 0.5rem 0 40px;
  line-height: 1.0;
}

@media (max-width: 768px) {
  .tagline-text {
    font-size: 2rem;
    line-height: 1.2;
  }
}

.how-it-works-title {
  font-size: 2.5rem;
  font-weight: normal;
  color: var(--jcp-white);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.how-it-works-title::before,
.how-it-works-title::after {
  content: '';
  flex: 1;
  max-width: 350px;
  height: 2px;
  background-color: var(--jcp-white);
  transform: translateY(-0.1em);
}

.tagline-sub {
  font-size: 1rem;
  font-weight: 400;
  margin: 0 auto 40px;
  line-height: 1.4;
  white-space: nowrap;
}

/* Hand images */
.hand-left,
.hand-right {
  position: absolute;
  z-index: 5;
  top: 20%;
}

.hand-left {
  left: 0;
  width: 22%;
  max-width: 280px;
}

.hand-right {
  right: 0;
  width: 22%;
  max-width: 280px;
}

.hand-left img,
.hand-right img {
  width: 100%;
  height: auto;
  display: block;
}

/* How It Works Section */
.how-it-works {
  background-color: transparent;
  color: var(--jcp-white);
  padding: 2rem 2rem 3rem;
  position: relative;
  z-index: 10;
  text-align: center;
  margin-top:80px;
}

.how-it-works-img {
  max-width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.steps-container {
  display: flex;
  justify-content: center;
  gap: 3rem;
  max-width: 900px;
  margin: 0 auto;
}

.step {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: calc(0.75rem + 5px);
  max-width: 280px;
}

.step-number {
  font-size: 1.25rem;
  font-weight: 700;
  font-style: oblique;
  color: var(--jcp-white);
}

.step p {
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  color: var(--jcp-white);
  text-align: left;
}

/* ========================================
   ZIP CODE PAGE
   ======================================== */
.zipcode-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  background: url('../images/bg-sparkle.jpg') no-repeat center top;
  background-size: cover;
}

.zipcode-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 6rem 2rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 768px) {
  .zipcode-content {
    margin-top: 80px;
  }
}

.zip-headline {
  margin-bottom: 1.5rem;
}

.zip-title {
  font-size: 3.5rem;
  font-weight: normal;
  color: var(--jcp-white);
  margin: 0;
  line-height: 1.3;
}

@media (max-width: 768px) {
  .zip-title {
    font-size: 2.5rem;
  }
}

.zip-instruction {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.zip-input-wrapper {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zip-input {
  background: transparent;
  border: 2px solid var(--jcp-white);
  border-radius: 10px;
  color: var(--jcp-white);
  padding: 1rem 2rem;
  font-size: 1rem;
  text-align: center;
  width: 280px;
  letter-spacing: 0.3em;
  font-family: Helvetica, Arial, sans-serif;
  font-weight: 500;
}

.zip-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.3em;
}

.zip-input:focus {
  outline: none;
  border-color: var(--jcp-white);
  background: rgba(255, 255, 255, 0.05);
}

.zip-error {
  color: var(--jcp-cream);
  font-size: 1rem;
  margin-top: 0.75rem;
  display: none;
}

.zip-error.show {
  display: block;
}

.zip-submit {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.zip-submit.show {
  opacity: 1;
  visibility: visible;
}


/* Hands image for zip page */
.zip-hands {
  position: relative;
  z-index: 5;
  width: 100%;
  margin-top: auto;
}

.zip-hands img {
  width: 100%;
  height: auto;
  display: block;
}

/* ========================================
   LOCATION PAGE
   ======================================== */
.location-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: url('../images/bg-sparkle.jpg') no-repeat center top;
  background-size: cover;
  position: relative;
  overflow-x: hidden;
}

/* Location Hero: Two Column Layout */
.location-hero {
  display: flex;
  align-items: flex-start;
  background-image: url('../images/location-hand.png');
  background-position: top right;
  background-repeat: no-repeat;
  background-size: contain;
  min-height: 1069px;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .location-hero {
    background-size: 65% auto;
  }
}

.location-col-left {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  margin-left: 80px;
}

.lucky-you-img {
  width: 90%;
  height: auto;
}

.youre-near-content {
  text-align: center;
  margin: 20px auto 0;
  padding: 2rem 0;
}

.youre-near {
  font-size: 2.75rem;
  font-weight: normal;
  color: var(--jcp-white);
  margin: 0 0 1rem 0;
  line-height: 1.3;
}

.location-description {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.location-col-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.necklace-info {
  text-align: center;
  max-width: 340px;
  padding: 1rem;
  margin-right: 60px;
  margin-top:60px;
}

@media (max-width: 1100px) and (min-width: 769px) {
  .necklace-info {
    margin-right: 0;
  }
}

.product-title {
  font-size: 2rem;
  font-weight: normal;
  color: var(--jcp-white);
  margin: 0 0 0.5rem 0;
}

.product-price {
  font-size: 1.3em;
  margin: 0.5rem 0;
}

.price-strike {
  text-decoration: line-through;
}

.price-free {
  font-style: italic;
  text-transform: uppercase;
}

.product-description {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
}

.location-hand-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Section Divider */
.section-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  margin: 1.5rem 2rem;
}

/* Not Trading Section */
.not-trading-section {
  text-align: center;
  padding: 1rem 2rem 4rem;
  margin-top:-300px;
  overflow: hidden;
}

.not-trading-title {
  font-size: 3rem;
  font-weight: normal;
  color: var(--jcp-white);
  margin: 0 0 1rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.not-trading-title::before,
.not-trading-title::after {
  content: '';
  flex: 1;
  max-width: 350px;
  height: 2px;
  background-color: var(--jcp-white);
  transform: translateY(-0.1em);
}

.not-trading-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  width: 75%;
  margin: 1rem auto 2rem;
}

.not-trading-copy {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.disclaimer {
  font-size: 0.9em;
  color: var(--jcp-white);
  margin-top: 80px;
}

@media (max-width: 768px) {
  .disclaimer {
    margin-top: 1.5rem;
  }
}

/* Product Carousel */
.product-carousel {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  max-width: 800px;
  margin: 1.5rem auto 0;
  position: relative;
  padding: 3rem 0 0;
  overflow: visible;
}

.product-carousel::before {
  content: '';
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.35) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.carousel-viewport {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.carousel-slide {
  display: none;
  flex-shrink: 0;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.5);
}

.carousel-slide.visible {
  display: block;
}

.carousel-slide.active {
  transform: scale(1.2);
  filter: brightness(1);
}

.carousel-slide img {
  width: 260px;
  height: auto;
  border-radius: 4px;
  display: block;
}

.carousel-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.carousel-btn img {
  display: block;
  height: 30px;
  width: auto;
}

/* Mobile carousel - single item */
@media (max-width: 768px) {
  .product-carousel {
    padding: 2rem 1rem 1rem;
  }

  .product-carousel::before {
    display: none;
  }

  .carousel-slide.visible:not(.active) {
    display: none;
  }

  .carousel-slide.active {
    transform: scale(1);
  }

  .carousel-viewport {
    gap: 0;
  }

  /* Location page mobile - single column */
  .location-hero {
    flex-direction: column;
    padding: 0 1rem;
    background-image: none;
    min-height: auto;
  }

  .location-col-left {
    align-items: center;
    margin-left: 0;
  }

  .lucky-you-img {
    width: 100%;
    max-width: 320px;
    margin-top: 40px;
  }

  .youre-near-content {
    max-width: 100%;
    padding: 1rem;
    margin: 40px 0 0 0;
  }

  .youre-near {
    font-size: 2.5rem;
  }

  .location-col-right {
    width: 100%;
    align-items: center;
  }

  .necklace-info {
    max-width: 100%;
    margin-right: 0;
    margin-top: 40px;
  }

  .product-title {
    font-size: 2.5rem;
  }

  .location-hand-mobile {
    width: 100%;
    max-width: 400px;
    align-self: flex-end;
    margin-right: -1rem;
  }

  .not-trading-section {
    margin-top: -100px;
    padding: 2rem 1rem;
  }
}

/* ========================================
   SORRY PAGE
   ======================================== */
.sorry-page {
  min-height: 100vh;
  background: url('../images/bg-sparkle.jpg') no-repeat center top;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

.sorry-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 2rem 0;
}

.sorry-headline {
  font-size: 3.5rem;
  font-weight: normal;
  color: var(--jcp-white);
  margin: 0 0 1.5rem 0;
  max-width: 500px;
}

.sorry-hero p {
  font-size: 1rem;
  font-weight: 400;
  max-width: 600px;
  line-height: 1.7;
}

.sorry-page .not-trading-section {
  margin-top: 0;
  overflow: hidden;
  padding-bottom: 4rem;
}

/* Perfect Excuse Section */
.excuse-section {
  display: flex;
  align-items: flex-start;
  padding: 3rem 0 4rem 80px;
  gap: 60px;
  overflow: hidden;
}

.excuse-content {
  flex: 0 0 auto;
  max-width: 325px;
  text-align: center;
}

.excuse-title {
  font-size: 3rem;
  font-weight: normal;
  color: var(--jcp-white);
  margin: 0 0 0.5rem 0;
  line-height: 1.2;
}

.excuse-subtitle {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--jcp-white);
  margin: 0 0 1rem 0;
}

.excuse-copy {
  font-size: 1rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.4em;
  margin-bottom: 1.5rem;
}

/* Featured Carousel */
.featured-carousel {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.featured-carousel-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.featured-carousel-btn img {
  display: block;
  height: 30px;
  width: auto;
}

.featured-carousel-track {
  display: flex;
  align-items: center;
  gap: 20px;
  overflow: visible;
}

.featured-slide {
  flex-shrink: 0;
  display: none;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0.5);
}

.featured-slide.visible {
  display: block;
}

.featured-slide.active {
  filter: brightness(1);
}

.featured-slide img {
  display: block;
  width: 350px;
  height: auto;
}

/* ========================================
   LEGAL PAGE
   ======================================== */
.legal-page {
  min-height: 100vh;
  background: url('../images/bg-sparkle.jpg') no-repeat center top;
  background-size: cover;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  padding: 2rem;
}

.legal-page h1 {
  font-family: Helvetica, Arial, sans-serif;
  font-size: 3em;
  font-weight: 400;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--jcp-white);
}

.legal-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--jcp-white);
}

.legal-content h2 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.legal-content p {
  margin-bottom: 1rem;
}

.legal-content .back-link {
  margin-top: 3rem;
}

.legal-content .back-link a {
  color: var(--jcp-white);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  position: relative;
  z-index: 10;
  margin-top: auto;
  margin-bottom: 20px;
}

.site-footer a {
  color: inherit;
  text-decoration: underline;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 768px) {


  .hero-section {
    /*margin-top:0;*/
    flex-direction: column;
    align-items: stretch;
  }
  .hero-content {
    padding-top: 1rem;
  }

  .exchange-logo-img {
    width: 300px;
  }

  .tagline-img {
    width: 240px;
  }

  .tagline-sub {
    white-space: normal;
    max-width: 400px;
  }

  .how-it-works-title {
    font-size: 2rem;
  }

  .lucky-you-img {
    width: 100%;
    max-width: 320px;
  }

  .youre-near {
    font-size: 2.5rem;
  }

  .product-title {
    font-size: 2.5rem;
  }

  .not-trading-title {
    font-size: 2.5rem;
  }

  .sorry-headline {
    font-size: 2.3rem;
  }

  /* Excuse section mobile */
  .excuse-section {
    flex-direction: column;
    padding: 2rem 1rem;
    gap: 2rem;
    align-items: center;
  }

  .excuse-content {
    max-width: 100%;
  }

  .excuse-title {
    font-size: 2.3rem;
  }

  .featured-carousel {
    width: 100%;
    gap: 0;
    margin-top: 20px;
  }

  .featured-carousel-btn {
    margin-right: 20px;
  }

  .featured-carousel-track {
    flex: 1;
    gap: 10px;
    overflow: hidden;
    margin-right: -1rem;
  }

  .featured-slide img {
    width: 70vw;
  }

  .steps-container {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .step {
    max-width: 280px;
  }

  .lucky-text h1 {
    font-size: 3.5rem;
  }

  .lucky-section {
    padding-top: 4rem;
  }


  .hand-left {
    display: none;
  }

  .hand-right {
    position: relative;
    top: auto;
    right: 0;
    width: 70%;
    max-width: none;
    margin-top: 40px;
    margin-left: auto;
    margin-right: -2rem;
  }

  /* ZIP page mobile */
  .zipcode-content {
    padding-top: 20px;
    flex: 0;
  }

  .zip-hands {
    margin-top: 40px;
    overflow: hidden;
  }

  .zip-hands img {
    width: 140%;
    max-width: none;
    margin-left: -20%;
  }
}

/* ========================================
   ANIMATIONS
   ======================================== */
@keyframes sparkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.sparkle {
  animation: sparkle 2s ease-in-out infinite;
}

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

.float {
  animation: float 3s ease-in-out infinite;
}
