/* ============================================
   Remote Hive Footer Styles v3.0
   White background · Semantic · Performance-optimized
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Syne:wght@400;500;600;700;800&display=swap');

/* ── Reset ── */
.rh-footer *,
.rh-footer *::before,
.rh-footer *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.rh-footer a { text-decoration: none; }

/* ── Footer Root ── */
.rh-footer {
  font-family: 'DM Sans', 'Helvetica Neue', sans-serif;
  color: #111;
  background: #fff;
  position: relative;
  overflow: hidden;
  contain: layout style;
}

/* ===== MAIN GRID ===== */
.rh-footer-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
}

/* ===== LEFT SIDE ===== */
.rh-footer-left {
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.rh-footer-left > * {
  position: relative;
  z-index: 1;
}

/* ── Logo ── */
.rh-logo-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 32px;
}

.rh-logo-img-box {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.rh-logo-img-box img {
  width: 120%;
  height: 120%;
  object-fit: contain;
  transform: scale(1.2);
}

.rh-logo-text-group {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 78px;
}

.rh-logo-hover-text {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 36px;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #111;
}

.rh-logo-hover-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  background: linear-gradient(90deg, #00b8a5 0%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 0.08em;
  word-spacing: 0.25em;
  line-height: 1.3;
  white-space: nowrap;
}

/* ── Tagline ── */
.rh-tagline {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.8);
  max-width: 480px;
  margin-bottom: 32px;
}

/* ── CTA Button ── */
.rh-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: linear-gradient(135deg, #00d2be 0%, #00b8a5 45%, #2563eb 100%);
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 210, 190, 0.2), 0 2px 12px rgba(37, 99, 235, 0.1);
}

.rh-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 210, 190, 0.3), 0 4px 20px rgba(37, 99, 235, 0.15);
  color: #fff;
}

.rh-cta-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.rh-cta-btn:hover::after { left: 100%; }
.rh-cta-btn svg { width: 16px; height: 16px; }

/* ── Email ── */
.rh-email-wrap {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rh-email-icon {
  color: #00b8a5;
  display: flex;
  align-items: center;
}

.rh-email-icon svg { width: 22px; height: 22px; }

.rh-email-link {
  color: rgba(0, 0, 0, 0.75);
  font-size: 1.35rem;
  transition: color 0.2s;
}

.rh-email-link:hover { color: #00b8a5; }

/* ── Socials ── */
.rh-socials-section {
  position: relative;
  padding-top: 32px;
}

.rh-socials-label {
  font-size: 0.85rem;
  color: rgba(0, 0, 0, 0.3);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 14px;
  font-weight: 600;
}

.rh-socials-glow {
  position: absolute;
  bottom: -100px;
  left: -120px;
  width: 110%;
  height: 500px;
  background: radial-gradient(
    ellipse at 30% 90%,
    rgba(0, 210, 190, 0.2) 0%,
    rgba(59, 130, 246, 0.12) 25%,
    rgba(0, 180, 220, 0.08) 45%,
    transparent 70%
  );
  pointer-events: none;
  filter: blur(30px);
  z-index: 0;
}

.rh-socials-row {
  display: flex;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.rh-social-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.03);
  border: 1px solid rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              background 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              color 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.rh-social-icon:hover { transform: translateY(-3px) scale(1.1); }
.rh-social-icon svg { width: 24px; height: 24px; fill: currentColor; }

.rh-social-icon[data-brand="facebook"]:hover {
  background: rgba(24, 119, 242, 0.08);
  border-color: rgba(24, 119, 242, 0.2);
  color: #1877F2;
  box-shadow: 0 4px 20px rgba(24, 119, 242, 0.15);
}

.rh-social-icon[data-brand="instagram"]:hover {
  background: rgba(228, 64, 95, 0.08);
  border-color: rgba(228, 64, 95, 0.2);
  color: #E4405F;
  box-shadow: 0 4px 20px rgba(228, 64, 95, 0.15);
}

.rh-social-icon[data-brand="linkedin"]:hover {
  background: rgba(10, 102, 194, 0.08);
  border-color: rgba(10, 102, 194, 0.2);
  color: #0A66C2;
  box-shadow: 0 4px 20px rgba(10, 102, 194, 0.15);
}

.rh-social-icon[data-brand="tiktok"]:hover {
  background: rgba(0, 0, 0, 0.06);
  border-color: rgba(0, 0, 0, 0.15);
  color: #000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* ===== RIGHT SIDE ===== */
.rh-footer-right {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Grid Motion BG ── */
.rh-grid-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.rh-grid-inner {
  position: absolute;
  width: 180%;
  height: 180%;
  top: -40%;
  left: -40%;
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: 8px;
  transform: rotate(-15deg);
  transform-origin: center center;
  will-change: transform;
}

.rh-grid-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.rh-grid-row:nth-child(odd) { animation: rh-gridSlideLeft 20s linear infinite; }
.rh-grid-row:nth-child(2)   { animation: rh-gridSlideRight 24s linear infinite; }
.rh-grid-row:nth-child(4)   { animation: rh-gridSlideRight 28s linear infinite; }

@keyframes rh-gridSlideLeft {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-15%); }
}

@keyframes rh-gridSlideRight {
  0%   { transform: translateX(-15%); }
  100% { transform: translateX(0); }
}

.rh-grid-cell {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(0, 210, 190, 0.05);
}

.rh-grid-cell-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
}

/* Grid BG images — mapped by JS via class rh-grid-img-{0..11} */
.rh-grid-img-0  { background-image: url('https://images.unsplash.com/photo-1552664730-d307ca884978?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-1  { background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-2  { background-image: url('https://images.unsplash.com/photo-1553484771-047a44eee27b?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-3  { background-image: url('https://images.unsplash.com/photo-1600880292203-757bb62b4baf?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-4  { background-image: url('https://images.unsplash.com/photo-1533750349088-cd871a92f312?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-5  { background-image: url('https://images.unsplash.com/photo-1551288049-bebda4e38f71?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-6  { background-image: url('https://images.unsplash.com/photo-1522071820081-009f0129c71c?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-7  { background-image: url('https://images.unsplash.com/photo-1557804506-669a67965ba0?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-8  { background-image: url('https://images.unsplash.com/photo-1542744173-8e7e53415bb0?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-9  { background-image: url('https://images.unsplash.com/photo-1559136555-9303baea8ebd?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-10 { background-image: url('https://images.unsplash.com/photo-1531973576160-7125cd663d86?q=80&w=800&auto=format&fit=crop'); }
.rh-grid-img-11 { background-image: url('https://images.unsplash.com/photo-1504384308090-c894fdcc538d?q=80&w=800&auto=format&fit=crop'); }

.rh-grid-cell-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0, 210, 190, 0.08) 0%, rgba(59, 130, 246, 0.06) 100%);
  padding: 20%;
}

.rh-grid-cell-icon svg {
  width: 100%;
  height: 100%;
  color: rgba(0, 210, 190, 0.35);
}

.rh-grid-overlay-light {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.7) 100%);
  z-index: 2;
}

.rh-grid-overlay-teal {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 90%, rgba(0, 210, 190, 0.25) 0%, transparent 50%),
    radial-gradient(ellipse at 30% 60%, rgba(59, 130, 246, 0.12) 0%, transparent 45%),
    radial-gradient(ellipse at 70% 40%, rgba(0, 210, 190, 0.1) 0%, transparent 40%);
  z-index: 3;
}

/* ── Right Content ── */
.rh-footer-right-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px 48px;
}

.rh-join-heading {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 3.2rem;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
  color: #111;
}

.rh-join-heading span {
  background: linear-gradient(135deg, #00d2be 0%, #00897b 50%, #2563eb 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rh-join-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(0, 0, 0, 0.8);
  max-width: 420px;
}

/* ── Links Grid ── */
.rh-links-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 36px 0;
}

.rh-links-label {
  font-size: 1.9rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #111 0%, #00b8a5 60%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rh-link-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(0, 0, 0, 0.75);
  font-size: 1.15rem;
  margin-bottom: 16px;
  transition: color 0.25s;
  position: relative;
}

.rh-link-item:hover { color: #00b8a5; }

.rh-link-item .rh-link-text { position: relative; }

.rh-link-item .rh-link-text::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: #00b8a5;
  transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.rh-link-item:hover .rh-link-text::after { width: 100%; }

.rh-link-arrow {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.rh-link-item:hover .rh-link-arrow { transform: translateX(3px); }

.rh-link-arrow svg {
  width: 16px;
  height: 16px;
  transform: rotate(-30deg);
}

/* ===== TOP RATINGS ===== */
.rh-ratings-section { margin-top: 0; }

.rh-ratings-label {
  font-size: 1.9rem;
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #111 0%, #00b8a5 60%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.rh-ratings-scroll {
  overflow: hidden;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.rh-ratings-track {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: rh-ratingsScroll 10s linear infinite;
  width: max-content;
  will-change: transform;
}

@keyframes rh-ratingsScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50% - 20px)); }
}

.rh-rating-item {
  flex-shrink: 0;
  height: 40px;
  opacity: 0.5;
  transition: opacity 0.3s, filter 0.3s;
  filter: grayscale(100%);
}

.rh-rating-item:hover {
  opacity: 0.7;
  filter: grayscale(50%);
}

.rh-rating-item img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* ===== BOTTOM BAR ===== */
.rh-footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 20px 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: rgba(0, 0, 0, 0.3);
}

.rh-footer-bottom a {
  color: rgba(0, 0, 0, 0.3);
  font-size: 0.9rem;
  transition: color 0.2s;
  margin-left: 24px;
  text-decoration: none;
}

.rh-footer-bottom a:hover { color: #00b8a5; }

/* ===== RESPONSIVE — 992px (Tablet) ===== */
@media (max-width: 992px) {
  .rh-footer-main { grid-template-columns: 1fr; }

  .rh-footer-left {
    padding: 44px 32px;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .rh-footer-right { min-height: 520px; }
  .rh-footer-right-content { padding: 44px 32px; }
  .rh-join-heading { font-size: 2.8rem; }
  .rh-join-text { font-size: 1.05rem; }
  .rh-tagline { font-size: 1.05rem; }
  .rh-link-item { font-size: 1.05rem; }
  .rh-links-label { font-size: 1.6rem; }
  .rh-ratings-label { font-size: 1.6rem; }
  .rh-footer-bottom { padding: 18px 32px; }
}

/* ===== RESPONSIVE — 768px (Mobile Large) ===== */
@media (max-width: 768px) {
  .rh-footer-left { padding: 36px 24px; }
  .rh-footer-right-content { padding: 36px 24px; }
  .rh-join-heading { font-size: 2.4rem; }
  .rh-logo-hover-text { font-size: 30px; }
  .rh-logo-hover-sub { font-size: 14px; }
}

/* ===== RESPONSIVE — 600px (Mobile) ===== */
@media (max-width: 600px) {
  .rh-footer-left { padding: 32px 20px; }
  .rh-footer-right-content { padding: 32px 20px; }
  .rh-links-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .rh-join-heading { font-size: 2.8rem; }
  .rh-join-text { font-size: 1rem; }
  .rh-tagline { font-size: 1rem; max-width: 100%; }
  .rh-link-item { font-size: 1rem; }
  .rh-links-label { font-size: 1.6rem; }
  .rh-ratings-label { font-size: 1.6rem; }

  .rh-footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 18px 20px;
  }

  .rh-footer-bottom a { margin-left: 12px; }

  .rh-logo-img-box { width: 64px; height: 64px; }
  .rh-logo-text-group { height: 64px; }
  .rh-logo-hover-text { font-size: 26px; }
  .rh-logo-hover-sub { font-size: 13px; }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  .rh-grid-row,
  .rh-ratings-track {
    animation: none !important;
  }

  .rh-cta-btn,
  .rh-social-icon,
  .rh-link-arrow {
    transition: none !important;
  }
}