/* ═══════════════════════════════════════════════
   Happy Day — Home / Landing Page
   Font: Montserrat
   ═══════════════════════════════════════════════ */

/* Reset for the home page root so WP themes don't leak in */
.hd-home {
  font-family: 'Montserrat', sans-serif;
  color: #263661;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.hd-home *,
.hd-home *::before,
.hd-home *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.hd-home a {
  text-decoration: none;
  color: inherit;
}
.hd-home img {
  max-width: 100%;
}

/* ─── Badge (reusable) ─── */

.hd-home-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Montserrat', sans-serif;
}
.hd-home-badge-icon {
  font-size: 14px;
}

/* ─── Section heading (reusable) ─── */

.hd-home-section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.hd-home-section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 700;
  line-height: 1.15;
  color: #263661;
  white-space: pre-line;
}
.hd-home-section-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: #6B7280;
}

/* ═══════════════════════════════════
   Hero
   ═══════════════════════════════════ */

.hd-home-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 40px 120px 60px;
  background: linear-gradient(135deg, #ffa600 0%, #e87500 50%, #e64367 100%);
  position: relative;
  overflow: hidden;
}
/* Confetti tile overlay */
.hd-home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/confetti.webp') repeat;
  background-size: 490px 260px;
  opacity: 0.55;
  pointer-events: none;
}
/* White gradient fade over confetti */
.hd-home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFFC0 40%, #FFFFFF00 100%);
  pointer-events: none;
}
/* Ensure hero content sits above overlays */
.hd-home-hero > * {
  position: relative;
  z-index: 1;
}

.hd-home-hero-headline {
  font-family: 'Montserrat', sans-serif;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  max-width: 800px;
  color: #263661;
}

.hd-home-hero-subline {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
  color: #263661;
  max-width: 640px;
}

/* Hero CTAs */
.hd-home-hero-ctas {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.hd-home-no-skills {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #263661;
}
.hd-home-btn-primary,
.hd-home-btn-primary:visited,
.hd-home-btn-primary:hover,
.hd-home-btn-primary:active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border-radius: 26px;
  background: linear-gradient(180deg, #FF7B64 0%, #E64367 100%);
  color: #fff !important;
  font-size: 17px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 4px 16px #00000020;
  transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.hd-home-btn-primary:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px #00000030;
}
.hd-home-btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px #00000020;
}
.hd-home-btn-primary--amber,
.hd-home-btn-primary--amber:visited,
.hd-home-btn-primary--amber:hover,
.hd-home-btn-primary--amber:active {
  background: linear-gradient(180deg, #FFA600 0%, #E64367 100%);
}
/* Card showcase */
.hd-home-card-showcase {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 600px;
  height: 360px;
  position: relative;
}
.hd-home-card-preview {
  border-radius: 16px;
  overflow: hidden;
  flex-shrink: 0;
  object-fit: cover;
  position: relative;
  cursor: default;
  transition: transform 0.15s ease;
}
.hd-home-card-preview.hd-bounce {
  animation: hd-card-bounce 0.5s ease;
}
@keyframes hd-card-bounce {
  0%   { margin-top: 0; }
  20%  { margin-top: -18px; }
  45%  { margin-top: 0; }
  65%  { margin-top: -8px; }
  85%  { margin-top: 0; }
  100% { margin-top: 0; }
}
.hd-home-card-preview--1 {
  width: 220px;
  height: 311px;
  transform: rotate(-6deg);
  box-shadow: 0 10px 30px #00000020;
  z-index: 3;
  margin-right: -60px;
}
.hd-home-card-preview--2 {
  width: 220px;
  height: 311px;
  box-shadow: 0 15px 40px #00000018;
  z-index: 2;
  margin-right: -60px;
}
.hd-home-card-preview--3 {
  width: 220px;
  height: 311px;
  transform: rotate(6deg);
  box-shadow: 0 10px 30px #00000015;
  z-index: 1;
}

/* ═══════════════════════════════════
   How It Works
   ═══════════════════════════════════ */

.hd-home-how {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 80px 120px;
  background: #fff;
}
.hd-home-steps-row {
  display: flex;
  gap: 32px;
  justify-content: center;
  width: 100%;
}
.hd-home-step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 32px;
  flex: 1;
  min-width: 0;
  border-radius: 20px;
  background: #FFF8F0;
  text-align: center;
}
.hd-home-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.hd-home-step-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #263661;
}
.hd-home-step-card p {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.6;
  color: #6B7280;
  max-width: 280px;
}

/* ═══════════════════════════════════
   How It Works — Cycling Demo Carousel
   ═══════════════════════════════════ */

.hd-home-demo-carousel {
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.hd-home-demo-header {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hd-home-demo-title {
  display: none;
  align-items: center;
  gap: 12px;
}
.hd-home-demo-title.active {
  display: flex;
  animation: hd-home-demo-fade 0.4s ease;
}
.hd-home-demo-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 16px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}
.hd-home-demo-title-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #263661;
}
.hd-home-demo-stage {
  width: 100%;
  position: relative;
  height: 300px;
  background: #F6F7F8;
  border: 1px solid #E5E7EB;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hd-home-demo-slide {
  display: none;
  width: 100%;
}
.hd-home-demo-slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: hd-home-demo-fade 0.4s ease;
}
.hd-home-demo-dots {
  display: flex;
  gap: 8px;
}
.hd-home-demo-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  background: #D1D5DB;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s, transform 0.3s;
}
.hd-home-demo-dot.active {
  background: var(--dot-color, #E64367);
  transform: scale(1.3);
}

@keyframes hd-home-demo-fade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════════════════════════════
   Gallery
   ═══════════════════════════════════ */

.hd-home-gallery {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 56px;
  padding: 80px 120px;
  background: #FFF8F0;
  overflow: hidden;
}

/* Transform carousel */
.hd-home-transform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  max-width: 1000px;
}
.hd-home-transform-slides {
  position: relative;
  width: 100%;
  padding: 20px 0;
}
.hd-home-transform-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(60px);
  transition: transform 0.45s ease, opacity 0.45s ease;
}
.hd-home-transform-slide--active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}
.hd-home-transform-slide--exit-left {
  position: absolute;
  transform: translateX(-60px);
  opacity: 0;
}
.hd-home-transform-slide--exit-right {
  position: absolute;
  transform: translateX(60px);
  opacity: 0;
}
.hd-home-transform-slide--enter-left {
  transform: translateX(-60px);
}
.hd-home-transform-slide--enter-right {
  transform: translateX(60px);
}

/* Photo (left) */
.hd-home-transform-photo {
  position: relative;
  flex-shrink: 0;
  width: 210px;
  transform: rotate(4deg);
}
.hd-home-transform-photo img {
  width: 100%;
  height: 297px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 8px 24px #00000018;
  display: block;
}
.hd-home-transform-tag {
  position: absolute;
  top: -12px;
  left: -8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 12px;
  background: #FFFFFFEE;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #6B7280;
  box-shadow: 0 2px 8px #00000008;
  z-index: 2;
}

/* Middle (wand + chips) */
.hd-home-transform-middle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0 -40px;
  flex-shrink: 0;
  z-index: 3;
}
.hd-home-transform-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  background: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  box-shadow: 0 4px 12px #00000010;
  white-space: nowrap;
}
.hd-home-transform-chip strong {
  font-weight: 700;
}
.hd-home-transform-chip--style svg { stroke: #6366F1; }
.hd-home-transform-chip--style strong { color: #6B7280; }
.hd-home-transform-chip--style { color: #6366F1; }
.hd-home-transform-chip--vision svg { stroke: #E64367; }
.hd-home-transform-chip--vision strong { color: #6B7280; }
.hd-home-transform-chip--vision { color: #E64367; }
.hd-home-transform-chip--message svg { stroke: #22C55E; }
.hd-home-transform-chip--message strong { color: #6B7280; }
.hd-home-transform-chip--message { color: #22C55E; }

/* Card (right) */
.hd-home-transform-card {
  position: relative;
  flex-shrink: 0;
  width: 270px;
  transform: rotate(-4deg);
}
.hd-home-transform-card img {
  width: 100%;
  height: 382px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 12px 32px #00000025;
  display: block;
}
.hd-home-transform-badge {
  position: absolute;
  top: -12px;
  right: -8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, #FF7B64 0%, #E64367 100%);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 4px 12px #00000018;
  z-index: 2;
}

/* Navigation */
.hd-home-transform-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.hd-home-transform-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #E5E7EB;
  background: #fff;
  color: #6B7280;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}
.hd-home-transform-arrow:hover {
  background: #F3F4F6;
  border-color: #D1D5DB;
}
.hd-home-transform-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hd-home-transform-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #E5E7EB;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}
.hd-home-transform-dot--active {
  width: 10px;
  height: 10px;
  background: #E64367;
}

/* Legacy gallery card styles (kept for backwards compat) */
.hd-home-gallery-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 270px;
  height: 360px;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 6px 20px #0000000D;
  flex-shrink: 0;
}
.hd-home-gallery-emoji {
  font-size: 52px;
  line-height: 1;
}
.hd-home-gallery-card h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 22px;
  font-weight: 700;
}
.hd-home-gallery-card p {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  white-space: pre-line;
}
/* ═══════════════════════════════════
   Reminder
   ═══════════════════════════════════ */

.hd-home-reminder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 80px 120px;
  background: #fff;
}
.hd-home-reminder-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.hd-home-reminder-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 32px;
  background: #FFFBEB;
}
.hd-home-reminder-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 36px;
  border: none;
  border-radius: 26px;
  background: linear-gradient(180deg, #FFA600 0%, #E64367 100%);
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none !important;
  transition: transform 0.2s, box-shadow 0.2s;
}
.hd-home-reminder-link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(230, 67, 103, 0.4);
  color: #fff !important;
}
.hd-home-reminder-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 40px;
  max-width: 900px;
  width: 100%;
  border-radius: 20px;
  background: #FFF8F0;
  text-align: center;
}
.hd-home-reminder-success p {
  font-size: 18px;
  font-weight: 500;
  color: #263661;
  margin: 0;
}
.hd-home-reminder-error {
  font-size: 14px;
  font-weight: 500;
  color: #E64367;
  text-align: center;
  margin: 0;
}

/* ═══════════════════════════════════
   Final CTA
   ═══════════════════════════════════ */

.hd-home-final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  padding: 100px 120px;
  background: linear-gradient(135deg, #e64367 0%, #e87500 50%, #ffa600 100%);
  text-align: center;
}
.hd-home-final-cta-emoji {
  font-size: 56px;
  line-height: 1;
}
.hd-home-final-cta h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  color: #fff;
  max-width: 700px;
}
.hd-home-final-cta p {
  font-size: 18px;
  font-weight: 500;
  line-height: 1.6;
  color: #FFFFFFCC;
  max-width: 600px;
}
.hd-home-final-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 18px 44px;
  border-radius: 26px;
  background: #fff;
  color: #E64367;
  font-size: 18px;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  box-shadow: 0 8px 30px #00000020;
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.hd-home-final-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px #00000030;
  filter: brightness(1.05);
}
.hd-home-final-cta-btn:active {
  transform: translateY(0);
}
.hd-home-final-cta-trust {
  font-size: 14px;
  font-weight: 500;
  color: #FFFFFF99;
}


/* ═══════════════════════════════════
   Responsive
   ═══════════════════════════════════ */

@media (max-width: 1100px) {
  .hd-home-hero,
  .hd-home-how,
  .hd-home-gallery,
  .hd-home-reminder,
  .hd-home-final-cta {
    padding-left: 32px;
    padding-right: 32px;
  }
}

@media (max-width: 900px) {
  .hd-home-hero-headline {
    font-size: 44px;
  }
  .hd-home-hero-subline {
    font-size: 17px;
  }
  .hd-home-section-title {
    font-size: 32px;
  }
  .hd-home-steps-row {
    flex-wrap: wrap;
  }
  .hd-home-step-card {
    flex: 1 1 calc(50% - 16px);
    min-width: 250px;
  }
  .hd-home-gallery-grid {
    flex-wrap: wrap;
  }
  .hd-home-gallery-card {
    width: calc(50% - 10px);
    height: auto;
    min-height: 300px;
  }
  .hd-home-final-cta h2 {
    font-size: 36px;
  }
}

@media (max-width: 600px) {
  .hd-home-hero,
  .hd-home-how,
  .hd-home-gallery,
  .hd-home-reminder,
  .hd-home-final-cta {
    padding-left: 16px;
    padding-right: 16px;
  }
  .hd-home-demo-slide .hd-hiw-demo {
    width: 100%;
    padding: 20px;
  }
  .hd-home-demo-slide .hd-hiw-cursor {
    display: none;
  }
  .hd-home-hero-headline {
    font-size: 32px;
  }
  .hd-home-hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .hd-home-btn-primary {
    width: 100%;
    justify-content: center;
  }
  .hd-home-card-showcase {
    height: 260px;
    max-width: 360px;
  }
  .hd-home-card-preview--1 {
    width: 150px;
    height: 212px;
    margin-right: -40px;
  }
  .hd-home-card-preview--2 {
    width: 150px;
    height: 212px;
    margin-right: -40px;
  }
  .hd-home-card-preview--3 {
    width: 150px;
    height: 212px;
  }
  .hd-home-gallery-card {
    width: 100%;
  }
  .hd-home-transform-slide {
    flex-direction: column;
    gap: 24px;
  }
  .hd-home-transform-photo {
    width: 160px;
    transform: rotate(2deg);
  }
  .hd-home-transform-photo img {
    height: 226px;
  }
  .hd-home-transform-card {
    width: 200px;
    transform: rotate(-2deg);
  }
  .hd-home-transform-card img {
    height: 283px;
  }
  .hd-home-transform-middle {
    padding: 0;
    margin: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
  .hd-home-transform-chip {
    font-size: 11px;
    padding: 6px 12px;
    white-space: normal;
  }
}
