/* ── UBreakWeFix Motion & UI Design System ── */
:root {
  --brand-teal: #00A2AD;
  --brand-teal-dark: #00818A;
  --brand-pink: #D94A9A;
  --brand-pink-dark: #BE3281;
  --brand-ink: #0F172A;
  --brand-slate: #334155;
  --brand-muted: #64748B;
  --brand-light: #F8FAFC;
  --brand-border: #E2E8F0;
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Simple, Classy & High-Converting Hero Section ── */
.ybf-hero {
  padding: 68px 0 64px;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid var(--brand-border);
  position: relative;
}
.ybf-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.ybf-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 162, 173, 0.08);
  color: var(--brand-teal);
  font-size: 13.5px;
  font-weight: 700;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 162, 173, 0.22);
  margin-bottom: 20px;
  letter-spacing: 0.02em;
}
.ybf-kicker-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #059669;
  display: inline-block;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: livePulse 2s infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(5, 150, 105, 0); }
  100% { box-shadow: 0 0 0 0 rgba(5, 150, 105, 0); }
}
.ybf-hero h1 {
  font-size: clamp(34px, 4.2vw, 48px);
  line-height: 1.14;
  color: var(--brand-ink);
  margin-bottom: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
}
.ybf-hero-lead {
  font-size: 17px;
  color: var(--brand-slate);
  line-height: 1.65;
  margin-bottom: 30px;
  max-width: 550px;
}
.ybf-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.ybf-hero-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--brand-border);
  font-size: 13.5px;
  color: var(--brand-muted);
}
.ybf-hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
}
.ybf-hero-trust i {
  color: var(--brand-teal);
  font-size: 15px;
}
.ybf-hero-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--brand-border);
  box-shadow: 0 20px 48px -18px rgba(15, 23, 42, 0.14);
  background: #FFFFFF;
  display: flex;
  flex-direction: column;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.ybf-hero-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #FFFFFF;
  overflow: hidden;
  transition: aspect-ratio 0.5s cubic-bezier(0.16, 1, 0.3, 1), min-height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
/* When NHS Poster slide is active: expand container height so image is larger with clean white bg */
.ybf-hero-slider.is-poster-active {
  aspect-ratio: 4 / 3.4;
  min-height: 440px;
}
.ybf-hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  transform: scale(0.98);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
}
.ybf-hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 2;
}
.ybf-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #FFFFFF;
  display: block;
}
.ybf-hero-slide--poster {
  background: #FFFFFF;
  padding: 14px 20px;
}
.ybf-hero-slide--poster img {
  object-fit: contain;
  background: #FFFFFF;
  filter: drop-shadow(0 12px 28px rgba(15, 23, 42, 0.12));
  border-radius: 14px;
  max-height: 94%;
  width: auto;
}
.ybf-hero-slider-dots {
  position: absolute;
  bottom: 12px;
  right: 14px;
  display: flex;
  gap: 6px;
  z-index: 5;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(6px);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ybf-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.ybf-slider-dot.is-active {
  background: #00A2AD;
  width: 22px;
  border-radius: 999px;
}
.ybf-hero-card-badge {
  background: #F8FAFC;
  border-top: 1px solid rgba(226, 232, 240, 0.85);
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 3;
}
.ybf-hero-badge-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(0, 162, 173, 0.12);
  color: var(--brand-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

/* Infinite Running Marquee Ticker */
.ybf-ticker-wrap {
  overflow: hidden;
  background: #0F172A;
  color: #FFFFFF;
  padding: 14px 0;
  white-space: nowrap;
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.ybf-ticker {
  display: inline-flex;
  gap: 36px;
  animation: tickerScroll 32s linear infinite;
}
.ybf-ticker:hover {
  animation-play-state: paused;
}
.ybf-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.92);
}
.ybf-ticker-dot {
  color: var(--brand-teal);
  font-size: 16px;
}
@keyframes tickerScroll {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* Status Bar with Counter Animation */
.ybf-status-bar {
  background: #FFFFFF;
  border-bottom: 1px solid var(--brand-border);
  padding: 24px 0;
}
.ybf-status-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.ybf-status-item strong {
  display: block;
  font-size: 28px;
  color: var(--brand-ink);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 2px;
}
.ybf-status-item span {
  font-size: 13.5px;
  color: var(--brand-muted);
}

/* 3 Walk-In Pillars with Lift Animation */
.ybf-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.ybf-pillar-card {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  padding: 32px;
  transition: all 0.35s var(--ease-spring);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  position: relative;
  overflow: hidden;
}
.ybf-pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: transparent;
  transition: background 0.3s ease;
}
.ybf-pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 42px -12px rgba(0, 162, 173, 0.18);
  border-color: rgba(0, 162, 173, 0.4);
}
.ybf-pillar-card:hover::before {
  background: linear-gradient(90deg, var(--brand-teal), var(--brand-pink));
}
.ybf-pillar-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  transition: transform 0.35s var(--ease-spring);
}
.ybf-pillar-card:hover .ybf-pillar-icon {
  transform: scale(1.1) rotate(-4deg);
}

/* Bento Grid with Image Zoom & Arrow Glide */
.ybf-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-top: 36px;
}
.ybf-bento-card {
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 22px;
  overflow: hidden;
  transition: all 0.35s var(--ease-spring);
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}
.ybf-bento-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand-teal);
  box-shadow: 0 22px 48px -14px rgba(0, 162, 173, 0.22);
}
.ybf-bento-thumb {
  height: 220px;
  overflow: hidden;
  position: relative;
  background: var(--brand-light);
}
.ybf-bento-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-spring);
}
.ybf-bento-card:hover .ybf-bento-thumb img {
  transform: scale(1.08);
}
.ybf-bento-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.ybf-bento-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ybf-bento-body h3 {
  font-size: 21px;
  color: var(--brand-ink);
  margin-bottom: 8px;
  font-family: var(--font-display);
  transition: color 0.2s ease;
}
.ybf-bento-card:hover .ybf-bento-body h3 {
  color: var(--brand-teal);
}
.ybf-bento-body p {
  font-size: 14px;
  color: var(--brand-muted);
  line-height: 1.55;
  margin-bottom: 18px;
}
.ybf-arrow-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.25s ease;
}
.ybf-bento-card:hover .ybf-arrow-btn {
  gap: 10px;
  border-color: var(--brand-teal);
  color: var(--brand-teal);
}

/* Button Shimmer Sweep Effect */
.btn-primary, .btn-gold {
  position: relative;
  overflow: hidden;
}
.btn-primary::after, .btn-gold::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-25deg);
  transition: none;
}
.btn-primary:hover::after, .btn-gold:hover::after {
  animation: btnShine 0.85s ease-in-out;
}
@keyframes btnShine {
  0% { left: -100%; }
  100% { left: 200%; }
}
.btn:active {
  transform: scale(0.97) !important;
}

/* Storefront & Customer Counter */
.ybf-store-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 14px 36px -12px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}
.ybf-store-grid:hover {
  border-color: rgba(0, 162, 173, 0.3);
  box-shadow: 0 20px 48px -12px rgba(0, 162, 173, 0.15);
}
.ybf-store-photos {
  display: block;
  width: 100%;
}
.ybf-store-photo {
  border-radius: 18px;
  overflow: hidden;
  height: 100%;
  min-height: 380px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}
.ybf-store-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-spring);
}
.ybf-store-photo:hover img {
  transform: scale(1.05);
}

/* ── Mobile Phone Responsiveness ── */
@media (max-width: 980px) {
  .ybf-hero {
    padding: 38px 0 48px;
  }
  .ybf-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ybf-hero h1 {
    font-size: clamp(32px, 6.5vw, 42px);
  }
  .ybf-status-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .ybf-pillars {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .ybf-bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .ybf-store-grid {
    grid-template-columns: 1fr;
    padding: 28px;
    gap: 24px;
  }
  .ybf-floating-badge-top {
    display: none;
  }
  .ybf-floating-badge {
    position: static;
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    animation: none;
  }
}

@media (max-width: 768px) {
  .ybf-hero {
    padding: 28px 0 40px;
  }
  .ybf-ticker-wrap {
    padding: 10px 0;
  }
  .ybf-ticker-item {
    font-size: 12.5px;
    gap: 8px;
  }
  .ybf-status-bar {
    padding: 18px 0;
  }
  .ybf-status-item strong {
    font-size: 24px;
  }
  .ybf-status-item span {
    font-size: 12px;
  }
  #marketplace .grid-2 {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  #marketplace .card {
    flex-direction: column;
    align-items: flex-start;
    padding: 22px;
    gap: 16px;
  }
  #marketplace .card img {
    width: 80px;
    height: 80px;
  }
  #marketplace .card .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  #reviews .grid-3 {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .cta--photo {
    margin: 28px 12px !important;
    border-radius: 18px !important;
  }
  .cta--photo img {
    height: 420px !important;
  }
  .cta-inner {
    flex-direction: column !important;
    align-items: flex-start !important;
    width: 92% !important;
    gap: 18px !important;
  }
  .cta-inner h2 {
    font-size: 26px !important;
  }
  .cta-inner > div:last-child {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .cta-inner .btn {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

@media (max-width: 640px) {
  .ybf-hero h1 {
    font-size: 29px;
    line-height: 1.16;
  }
  .ybf-hero-lead {
    font-size: 14.5px;
    line-height: 1.55;
    margin-bottom: 20px;
  }
  .ybf-quick-card {
    padding: 16px;
    border-radius: 16px;
  }
  .ybf-selector-pills {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 8px;
    margin-bottom: 12px;
    gap: 6px;
  }
  .ybf-tab-pill {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 12px;
    padding: 6px 12px;
  }
  .ybf-tab-preview {
    padding: 14px;
  }
  .ybf-tab-preview > div:last-child {
    flex-direction: column;
    gap: 8px;
  }
  .ybf-tab-preview .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .ybf-bento {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .ybf-bento-thumb {
    height: 190px;
  }
  .ybf-bento-body {
    padding: 18px;
  }
  .ybf-bento-body .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .ybf-store-photos {
    display: block;
    width: 100%;
  }
  .ybf-store-photo {
    height: 240px;
    min-height: unset;
  }
  .ybf-store-grid {
    padding: 20px 16px;
  }
  .ybf-store-grid > div:last-child > div:last-child {
    flex-direction: column;
    gap: 8px;
  }
  .ybf-store-grid .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .ybf-badge {
    font-size: 11.5px;
    padding: 5px 12px;
  }
  .ybf-hero h1 {
    font-size: 26px;
  }
  .ybf-status-grid {
    gap: 12px;
  }
  .ybf-status-item strong {
    font-size: 20px;
  }
  .ybf-status-item span {
    font-size: 11px;
  }
  .intro {
    margin-bottom: 24px;
  }
  .intro h2 {
    font-size: 25px;
  }
  .ybf-pillar-card {
    padding: 20px;
  }
}
