/*
sweater.css
Purpose:
- Styles for the ugly sweater Teams background generator landing page.
Main Sections:
- Hero section, selection cards, tutorial steps, footer.
Dependent Files:
- templates/index.html
*/

/* --- RESET & BASE --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
  animation: shake 0.5s;
}

body {
  font-family: 'Snowflake Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #F4F4ED;
  color: #1C1C1C;
  line-height: 1.5;
  overflow-x: hidden;
}

/* --- TYPOGRAPHY --- */
.font-obviously-wide-semibold {
  font-family: 'Obviously', sans-serif;
  font-weight: 600;
  font-stretch: expanded;
}

.font-obviously-narrow-semibold {
  font-family: 'Obviously', sans-serif;
  font-weight: 600;
  font-stretch: condensed;
}

.font-obviously-extended-bold {
  font-family: 'Obviously', sans-serif;
  font-weight: 700;
  font-stretch: extra-expanded;
}

.font-tuppence-italic {
  font-family: 'Tuppence', cursive;
  font-style: italic;
}

.font-snowflake-bold {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 700;
}

.font-snowflake-medium {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 500;
}

.font-snowflake-book {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 400;
}

/* --- TOP BANNER --- */
.top-banner {
  background: #1C1C1C;
  padding: 16px 8px;
  text-align: center;
}

.top-banner p {
  color: #FFFFFF;
  font-family: 'Obviously', sans-serif;
  font-weight: 700;
  font-stretch: extra-expanded;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- HERO SECTION --- */
.hero-section {
  background: #F4F4ED;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 888px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 150px 20px;
}

.hero-content {
  max-width: 1210px;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-line-1 .hey-text {
  font-family: 'Obviously', sans-serif;
  font-weight: 500;
  font-stretch: expanded;
  font-size: 16px;
  color: #1C1C1C;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.hero-line-1 .psst-text {
  font-family: 'Tuppence', cursive;
  font-style: italic;
  font-size: 173px;
  color: #1C1C1C;
  line-height: 1;
}

.hero-line-2 .mezzo-text,
.hero-line-2 .mix-text {
  font-family: 'Obviously', sans-serif;
  font-weight: 600;
  font-stretch: condensed;
  font-size: 177px;
  color: #C12413;
  line-height: 1;
}

.hero-line-3 .lets-text,
.hero-line-3 .get-text {
  font-family: 'Obviously', sans-serif;
  font-weight: 600;
  font-stretch: condensed;
  font-size: 177px;
  color: #1C1C1C;
  line-height: 1;
}

.hero-line-4 .festive-text {
  font-family: 'Tuppence', cursive;
  font-style: italic;
  font-size: 177px;
  color: #1C1C1C;
  line-height: 1;
}

.scroll-arrow {
  position: absolute;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --- SELECTION SECTION --- */
.selection-section {
  background: #0B6453;
  min-height: 1249px;
  position: relative;
  padding: 150px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.selection-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  pointer-events: none;
}

.selection-content {
  max-width: 1200px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.selection-header {
  text-align: left;
  margin-bottom: 70px;
  max-width: 770px;
  margin-left: auto;
  margin-right: auto;
}

.selection-eyebrow {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 500;
  font-size: 24px;
  color: #D0FFE3;
  letter-spacing: 2.64px;
  text-transform: uppercase;
  margin-bottom: 32px;
}

.selection-title {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 900;
  font-size: 48px;
  color: #FFFFFF;
  line-height: 1.12;
  margin-bottom: 20px;
}

.selection-subtitle {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: #FFFFFF;
  line-height: 1.12;
}

.selection-steps {
 max-width: 900px;
  margin: 0 auto 70px;
}

.selection-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 56px;
}

.step-number {
  font-family: 'Obviously', sans-serif;
  font-weight: 600;
  font-stretch: condensed;
  font-size: 116px;
  color: #FFFFFF;
  line-height: 1.12;
  min-width: 140px;
  text-align: center;
}

.step-content {
  flex: 1;
}

.step-label {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: #D0FFE3;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.step-options {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.option-card {
  background: #147360;
  border: 1px solid #F4F4ED;
  border-radius: 8px;
  padding: 23px 56px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.option-card:hover {
  background: #1A8971;
  transform: translateY(-2px);
}

.option-card.selected {
  background: #1A8971;
  border-color: #D0FFE3;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.option-card-title {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #FFFFFF;
  margin-bottom: 15px;
}

.color-swatches {
  display: flex;
  gap: 6px;
  justify-content: center;
}

.color-swatch {
  width: 54px;
  height: 54px;
  border-radius: 2px;
}

.knit-preview {
  width: 54px;
  height: 54px;
  border-radius: 2px;
  overflow: hidden;
}

.knit-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.element-icon {
  width: 54px;
  height: 54px;
}

.element-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.option-divider {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #FFFFFF;
  align-self: center;
}

.selection-cta {
  text-align: center;
  max-width: 770px;
  margin: 0 auto;
}

.cta-button {
  background: #D0FFE3;
  color: #1C1C1C;
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 700;
  font-size: 20px;
  padding: 24px 32px;
  border: none;
  border-radius: 48px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background: #B8F5D1;
  transform: scale(1.05);
}

.cta-button:active {
  transform: scale(0.98);
}

.powered-by {
  font-family: 'Obviously', sans-serif;
  font-weight: 500;
  font-stretch: expanded;
  font-size: 13px;
  color: #87BBB1;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  text-align: center;
  margin-top: 100px;
}

/* --- TEAMS PREVIEW SECTION --- */
.teams-preview {
  position: absolute;
  top: 38px;
  right: 136px;
  width: 492px;
  height: 375px;
}

.teams-preview-frame {
  position: relative;
  width: 100%;
  height: 100%;
}

.teams-preview-content {
  position: absolute;
  top: 58px;
  left: 24px;
  width: 429px;
  height: 281px;
  transform: rotate(8.741deg);
}

.teams-preview-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 2px solid #F5F5F5;
  background: #F5F5F5;
}

.teams-icon {
  position: absolute;
  top: 47px;
  right: 8px;
  width: 78px;
  height: 74px;
  transform: rotate(8.741deg);
}

.teams-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- TUTORIAL SECTION --- */
.tutorial-section {
  background: #F4F4ED;
  min-height: 1029px;
  padding: 110px 20px;
}

.tutorial-header {
  text-align: center;
  margin-bottom: 117px;
}

.tutorial-title {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 900;
  font-size: 48px;
  color: #1C1C1C;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.tutorial-subtitle {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 400;
  font-size: 22px;
  color: #1C1C1C;
  line-height: 1.12;
}

.tutorial-steps {
  max-width: 1112px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.tutorial-card {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0px 4px 28px rgba(116, 116, 116, 0.11);
}

.tutorial-card-text {
  font-family: 'Snowflake Sans', sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #000000;
  line-height: 1.42;
  margin-bottom: 39px;
  text-align: center;
}

.tutorial-card-content {
  display: flex;
  gap: 15px;
  align-items: center;
}

.tutorial-step-number {
  font-family: 'Obviously', sans-serif;
  font-weight: 600;
  font-stretch: expanded;
  font-size: 116px;
  color: #1C1C1C;
  line-height: 1.12;
  text-align: center;
  min-width: 80px;
}

.tutorial-image {
  flex: 1;
  height: 188px;
  border: 1px solid #1C1C1C;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.tutorial-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- FOOTER SECTION --- */
.footer-section {
  background: #1C1C1C;
  padding: 149px 20px;
  text-align: center;
}

.footer-content {
  max-width: 771px;
  margin: 0 auto;
}

.footer-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.footer-heading-text {
  font-family: 'Obviously', sans-serif;
  font-weight: 500;
  font-stretch: condensed;
  font-size: 87px;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1;
}

.footer-from {
  font-family: 'Didot', serif;
  font-size: 24px;
  color: #FFFFFF;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.footer-agency {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.footer-agency-text {
  font-family: 'Obviously', sans-serif;
  font-weight: 900;
  font-stretch: expanded;
  font-size: 100px;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 0.8;
}

.footer-agency-logo {
  width: 139px;
  height: 81px;
}

.footer-agency-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.footer-tagline {
  font-family: 'Obviously', sans-serif;
  font-weight: 300;
  font-stretch: extra-expanded;
  font-style: italic;
  font-size: 70px;
  color: #FFFFFF;
  text-transform: uppercase;
  line-height: 1;
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
  .hero-line-1 .psst-text,
  .hero-line-2 .mezzo-text,
  .hero-line-2 .mix-text,
  .hero-line-3 .lets-text,
  .hero-line-3 .get-text,
  .hero-line-4 .festive-text {
    font-size: 120px;
  }

  .step-number,
  .tutorial-step-number {
    font-size: 80px;
  }

  .footer-heading-text {
    font-size: 60px;
  }

  .footer-agency-text {
    font-size: 70px;
  }

  .footer-tagline {
    font-size: 50px;
  }
}

@media (max-width: 768px) {
  .hero-line-1 .psst-text,
  .hero-line-2 .mezzo-text,
  .hero-line-2 .mix-text,
  .hero-line-3 .lets-text,
  .hero-line-3 .get-text,
  .hero-line-4 .festive-text {
    font-size: 80px;
  }

  .selection-title,
  .tutorial-title {
    font-size: 36px;
  }

  .step-number,
  .tutorial-step-number {
    font-size: 60px;
    min-width: 80px;
  }

  .tutorial-steps {
    grid-template-columns: 1fr;
  }

  .step-options {
    flex-direction: column;
    align-items: stretch;
  }

  .option-card {
    padding: 20px;
  }

  .footer-heading-text {
    font-size: 40px;
  }

  .footer-agency-text {
    font-size: 50px;
  }

  .footer-tagline {
    font-size: 35px;
  }

  .teams-preview {
    display: none;
  }
}

/* --- UTILITIES --- */
.hidden {
  display: none !important;
}

.visible {
  display: block !important;
}
