/* =========================================================
   SEBAYTE RATES & SCHEDULE SECTION
   Organized pricing-section styles, animations, and breakpoints.
========================================================= */


/* =========================================================
   1. DESIGN VARIABLES
========================================================= */

:root {
  --red: #ed1c24;
  --purple: #40346f;
  --bright-purple: #5c1df2;
  --yellow: #ffe27a;
  --orange: #ffae3d;
  --blue: #33b8ff;
  --cream: #f7f7f0;
  --dark: #2e160e;
  --white: #ffffff;

  --shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 24px 50px rgba(64, 52, 111, 0.2);

  --radius: 28px;
}


/* =========================================================
   2. RATES SECTION LAYOUT
========================================================= */

.rates-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  overflow: hidden;
  padding: 88px 6%;
  background: var(--cream);
  animation: section-fade-in 0.8s ease-out both;
}


/* =========================================================
   3. DECORATIVE BACKGROUND CIRCLES
========================================================= */

.rates-section::before,
.rates-section::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.35;
}

.rates-section::before {
  width: 190px;
  height: 190px;

  top: -70px;
  left: -60px;

  background: var(--yellow);
  animation: background-float 6s ease-in-out infinite;
}

.rates-section::after {
  width: 240px;
  height: 240px;

  right: -100px;
  bottom: -110px;

  background: var(--blue);
  animation: background-float 7s ease-in-out infinite reverse;
}

/* Keeps the section content above the decorative circles. */

.rates-section > * {
  position: relative;
  z-index: 1;
}


/* =========================================================
   4. SECTION HEADINGS
========================================================= */

.current-rates {
  margin-bottom: 10px;

  color: var(--bright-purple);
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 2px;

  animation: eyebrow-bounce 0.8s 0.15s ease-out both;
}

.rates-section h2 {
  color: var(--red);
  animation: heading-slide-in 0.7s 0.1s ease-out both;
  font-size: clamp(.9rem,2vw,3rem);
}


/* =========================================================
   5. SHARED CARD STYLES
========================================================= */

.price-card,
.schedule-box {
  margin: 3%;
  padding: 3rem;

  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);

  transform-origin: center;

  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}


/* =========================================================
   6. PRICE GRID
========================================================= */

.price-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
  max-width: 40rem;
  margin: 30px auto;
}


/* =========================================================
   7. PRICE CARDS
========================================================= */

.price-card {
  border: 3px solid transparent;
  animation: card-pop-in 0.7s ease-out both;
}

/* Staggered card entrance. */

.price-grid .price-card:nth-child(1) {
  animation-delay: 0.25s;
}

.price-grid .price-card:nth-child(2) {
  animation-delay: 0.4s;
}

.price-card:hover {
  transform: translateY(-10px) rotate(-1deg);
  box-shadow: var(--shadow-hover);
  border-color: var(--yellow);
}

.price-grid .price-card:nth-child(2):hover {
  transform: translateY(-10px) rotate(1deg);
}


/* =========================================================
   8. PRICE CARD HEADINGS
========================================================= */

.price-card h3 {
  color: var(--red);

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.price-card:hover h3 {
  color: var(--bright-purple);
  transform: scale(1.05);
}


/* =========================================================
   9. PRICE TEXT
========================================================= */

.price {
  display: inline-block;

  color: #111111;
  font-size: 4rem;
  font-weight: 900;
  line-height: 1;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.price-card:hover .price {
  color: var(--bright-purple);
  transform: scale(1.08);
}


/* =========================================================
   10. PRICE NOTES
========================================================= */

.note {
  margin-top: 18px;

  font-size: 1.15rem;
  font-weight: 800;
}

.small-note {
  margin-top: 18px;
  margin-bottom: 10%;

  font-size: 0.95rem;
}


/* =========================================================
   11. SCHEDULE BOX
========================================================= */

.schedule-box {
  display: grid;
  align-content: center;

  width: 100%;
  max-width: 50rem;
  min-height: 100%;

  text-align: center;
  border: 3px solid transparent;

  animation: schedule-slide-in 0.8s 0.35s ease-out both;
}

.schedule-box:hover {
  transform: translateY(-8px) rotate(0.5deg);
  box-shadow: var(--shadow-hover);
  border-color: var(--blue);
}

.schedule-box h3 {
  color: var(--red);
  font-size: 2rem;

  transition:
    color 0.3s ease,
    transform 0.3s ease;
}

.schedule-box:hover h3 {
  color: var(--bright-purple);
  transform: scale(1.05);
}

.schedule-box p {
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.45;

  transition: transform 0.3s ease;
}

.schedule-box:hover p {
  transform: scale(1.02);
}


/* =========================================================
   12. ANIMATION KEYFRAMES
========================================================= */

@keyframes section-fade-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes heading-slide-in {
  from {
    opacity: 0;
    transform: translateX(-45px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes eyebrow-bounce {
  0% {
    opacity: 0;
    transform: translateY(-30px) scale(0.8);
  }

  60% {
    opacity: 1;
    transform: translateY(6px) scale(1.05);
  }

  80% {
    transform: translateY(-3px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes card-pop-in {
  0% {
    opacity: 0;
    transform: translateY(50px) scale(0.85);
  }

  65% {
    opacity: 1;
    transform: translateY(-7px) scale(1.03);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes schedule-slide-in {
  from {
    opacity: 0;
    transform: translateX(70px) rotate(2deg);
  }

  to {
    opacity: 1;
    transform: translateX(0) rotate(0);
  }
}

@keyframes background-float {
  0%,
  100% {
    transform: translateY(0) rotate(0);
  }

  50% {
    transform: translateY(18px) rotate(8deg);
  }
}


/* =========================================================
   13. TABLET LAYOUT — 980px AND SMALLER
========================================================= */

@media (max-width: 980px) {
  .rates-section {
    grid-template-columns: 1fr;
    justify-items: center;

    padding: 60px 5%;
    text-align: center;
  }

  .price-card,
  .schedule-box {
    display: grid;
    align-items: center;
    justify-content: center;

    width: 100%;
    padding: 1.5rem;
  }

  .cards,
  .price-grid {
    grid-template-columns: 1fr 1fr;
  }

  .schedule-box {
    max-width: 40rem;
    min-height: auto;
  }
}


/*
/* =========================================================
   14. MOBILE LAYOUT — 640px AND SMALLER
========================================================= */

@media (max-width: 940px) {
  .rates-section {
    padding: 45px 1rem;
  }

  .current-rates {
    font-size: 1.4rem;
  }

  .price-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .price-card,
  .schedule-box {
    margin: 0;
    padding: 1.5rem;
  }

  .price {
    font-size: 2rem;
  }

  .schedule-box h3 {
    font-size: 1.7rem;
  }

  .schedule-box p {
    font-size: 1.2rem;
  }

  /* Removes rotation on smaller touch screens. */

  .price-card:hover,
  .price-grid .price-card:nth-child(2):hover,
  .schedule-box:hover {
    transform: translateY(-6px);
  }
}


/* =========================================================
   15. REDUCED-MOTION ACCESSIBILITY
========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}