/* ═══════════════════════════════════════════════════════════════════
   EGYPT DOUDOU — Responsive Design System
   Breakpoints: sm 640px | md 768px | lg 1024px | xl 1280px | 2xl 1536px
   ═══════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────────
   1. CSS CUSTOM PROPERTIES
   ────────────────────────────────────────────────────────────────── */
:root {
  --primary: #0071bd;
  --secondary: #f59e0b;
  --nav-h: 56px;           /* sticky nav height */
  --radius-card: 16px;
  --shadow-card: 0 4px 24px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-dropdown: 0 20px 60px rgba(0,0,0,.16), 0 4px 12px rgba(0,0,0,.08);
  --transition-base: 0.2s cubic-bezier(0.16,1,0.3,1);
}

/* ──────────────────────────────────────────────────────────────────
   2. STICKY NAV — desktop only (doudou-design.js adds .nav-sticky)
   ────────────────────────────────────────────────────────────────── */

/**
 * When .nav-sticky is added by JS after scrolling past 150px:
 *  - position: fixed  → pops out of the absolute .navbar, anchors to viewport top
 *  - white bg + shadow → clear, readable over any page content
 *  - slide-down animation → feels smooth and intentional
 *
 * Mobile (<1024px): JS never adds the class; .navbar_nav is also
 * hidden via max-lg:hidden, so nothing sticky happens on small screens.
 */
@media (min-width: 1024px) {
  .navbar_nav.nav-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 9000 !important;
    /* Solid opaque blue — same brand color, fully readable */
    background: #0071bd !important;
    background-opacity: 1 !important;
    box-shadow: 0 2px 24px rgba(0, 0, 0, 0.18) !important;
    /* Slide in from above */
    animation: navStickyIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  @keyframes navStickyIn {
    from { transform: translateY(-100%); opacity: 0.6; }
    to   { transform: translateY(0);     opacity: 1; }
  }

  /* Active link in sticky mode keeps blue highlight readable */
  .navbar_nav.nav-sticky .navbar_link[aria-current="page"] {
    background: rgba(255, 255, 255, 0.18) !important;
  }
  .navbar_nav.nav-sticky .navbar_link:hover {
    background: rgba(255, 255, 255, 0.12) !important;
  }
}

/* Legacy headroom element styles (kept for compatibility) */
#headroom {
  background: linear-gradient(135deg, #0071bd 0%, #005a97 100%);
  box-shadow: 0 2px 20px rgba(0,0,0,.25);
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.sticky-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 20px;
  height: var(--nav-h);
}

.sticky-nav__logo img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

/* nav-list inside headroom: tighter padding */
#headroom .navbar_list {
  display: flex;
  align-items: center;
  gap: 0;
}
#headroom .navbar_link {
  padding: 8px 14px;
  font-size: 14px;
}
#headroom .nav-dropdown-menu {
  top: calc(100% + 4px) !important;
}

.sticky-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ──────────────────────────────────────────────────────────────────
   3. NAV DROPDOWNS — dark text, correct position, z-index
   ────────────────────────────────────────────────────────────────── */
.navbar .hs-dropdown-menu,
.navbar .lang-dropdown-menu,
#headroom .hs-dropdown-menu,
#headroom .lang-dropdown-menu {
  color: #1f2937 !important;
  z-index: 9999 !important;
  position: absolute !important;
}

.navbar .hs-dropdown-menu a,
.navbar .hs-dropdown-menu button,
.navbar .lang-dropdown-menu a,
#headroom .hs-dropdown-menu a,
#headroom .lang-dropdown-menu a {
  color: #1f2937 !important;
}

/* Dream itineraries dropdown */
.nav-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-dropdown);
  min-width: 200px;
  z-index: 9999 !important;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: #1f2937 !important;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), padding-left var(--transition-base);
}
.nav-dropdown-menu a + a {
  border-top: 1px solid rgba(0,0,0,.05);
}
.nav-dropdown-menu a:hover {
  background: rgba(0,113,189,.08);
  color: var(--primary) !important;
  padding-left: 22px;
}

/* Language dropdown */
.lang-dropdown-menu {
  position: absolute !important;
  top: calc(100% + 8px) !important;
  right: 0 !important;
  left: auto !important;
  background: #fff;
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow-dropdown);
  min-width: 200px;
  z-index: 9999 !important;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #1f2937 !important;
  text-decoration: none;
  transition: background var(--transition-base), color var(--transition-base), padding-left var(--transition-base);
}
.lang-option + .lang-option {
  border-top: 1px solid rgba(0,0,0,.05);
}
.lang-option:hover {
  background: rgba(0,113,189,.08);
  color: var(--primary) !important;
  padding-left: 20px;
}
.lang-option.is-active-lang {
  background: rgba(0,113,189,.10);
  color: var(--primary) !important;
  font-weight: 600;
}

/* Shared entrance animation */
.hs-dropdown.open .nav-dropdown-menu,
.hs-dropdown.open .lang-dropdown-menu {
  animation: ddFadeIn 0.22s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes ddFadeIn {
  from { opacity: 0; transform: translateY(-10px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)     scale(1); }
}

/* ──────────────────────────────────────────────────────────────────
   4. LANGUAGE SELECTION MODAL (first-visit auto-show)
   ────────────────────────────────────────────────────────────────── */
.language-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(13,34,48,.65);
  backdrop-filter: blur(6px);
}
.language-modal.is-open { display: flex; }
.language-modal__panel {
  position: relative;
  width: min(760px, 100%);
  border-radius: 16px;
  background: #fff;
  padding: 32px 36px 38px;
  color: #0d2230;
  box-shadow: 0 32px 80px rgba(0,0,0,.28);
  animation: modalIn 0.28s cubic-bezier(0.16,1,0.3,1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.language-modal__close {
  position: absolute;
  top: 16px; right: 18px;
  color: #6b7280;
  font-size: 28px;
  line-height: 1;
  transition: color 0.15s;
}
.language-modal__close:hover { color: #0d2230; }
.language-modal__title {
  padding-right: 40px;
  font-size: clamp(1.25rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
}
.language-modal__title span { color: var(--primary); }
.language-modal__subtitle {
  margin-top: 8px;
  color: #6b7280;
  font-size: 15px;
}
.language-modal__actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 28px;
}
.language-modal__actions a {
  display: flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  color: #0d2230;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  transition: border-color .18s, background .18s, color .18s, transform .18s;
}
.language-modal__actions a:hover {
  border-color: var(--primary);
  background: rgba(0,113,189,.07);
  color: var(--primary);
  transform: translateY(-2px);
}
.language-modal__actions a.is-active {
  border-color: var(--primary);
  background: rgba(0,113,189,.10);
  color: var(--primary);
}
.language-modal__flag { font-size: 20px; line-height: 1; }

/* ──────────────────────────────────────────────────────────────────
   5. RESPONSIVE — TABLET  (md: 640px–1023px)
   ────────────────────────────────────────────────────────────────── */
@media (min-width: 640px) and (max-width: 1023px) {
  /* Show top-bar on tablet but compact */
  .navbar_top {
    display: flex !important;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  /* Cards: tablet height */
  #egypt-tour .card      { height: 340px; }
  #egypt-tour-opp .card  { height: 260px; }
  #egypt-tour-dest .card { height: 220px; }
  .tour-card__thumbnail  { height: 280px; }

  /* Hero text on tablet */
  .hero h1 { font-size: 2.2rem; line-height: 1.3; }
  .hero p  { font-size: 1.1rem; }

  /* Mobile language modal actions: 2-col on tablet */
  .language-modal__actions { grid-template-columns: repeat(2, 1fr); }

  /* Floating btns: show on tablet too */
  .btns {
    display: flex !important;
    bottom: 20px;
    right: 16px;
  }
}

/* ──────────────────────────────────────────────────────────────────
   6. RESPONSIVE — MOBILE  (< 640px)
   ────────────────────────────────────────────────────────────────── */
@media (max-width: 639px) {
  /* Tighter container padding */
  .container { padding-left: 16px !important; padding-right: 16px !important; }

  /* Cards: reduced height on mobile */
  #egypt-tour .card      { height: 280px; }
  #egypt-tour-opp .card  { height: 220px; }
  #egypt-tour-dest .card { height: 200px; }
  .tour-card__thumbnail  { height: 240px; }

  /* Hero */
  .hero { padding-bottom: 32px; padding-top: 100px; }
  .hero h1 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 12px; }
  .hero p  { font-size: 1rem; }

  /* Section headings */
  .section_heading { font-size: 1.35rem; }
  .section_header  { margin-bottom: 20px; }

  /* Footer */
  .footer__aside {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }
  .footer__logo { width: 90px; height: 90px; }
  .footer__sitemap { gap: 24px; }
  .footer__copyright { gap: 12px; }

  /* Language modal on mobile */
  .language-modal { padding: 12px; align-items: flex-end; }
  .language-modal__panel {
    padding: 24px 18px 28px;
    border-radius: 20px 20px 12px 12px;
  }
  .language-modal__actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .language-modal__actions a { justify-content: flex-start; }

  /* Tabs: scrollable on mobile */
  .tabs { gap: 16px; justify-content: flex-start; }
  .tab  { font-size: 0.95rem; }

  /* Pagination: smaller on mobile */
  .pagination__arrow,
  .pagination__number { width: 28px; height: 28px; font-size: 12px; }

  /* Tour card footer: stack */
  .tour-card__link { width: 100%; justify-content: center; }

  /* Sticky nav logo */
  .sticky-nav__logo img { height: 28px; }
  .sticky-nav__inner { padding: 6px 14px; }
}

/* ──────────────────────────────────────────────────────────────────
   7. RESPONSIVE — LARGE DESKTOP (> 1280px)
   ────────────────────────────────────────────────────────────────── */
@media (min-width: 1280px) {
  #egypt-tour .card      { height: 460px; }
  #egypt-tour-opp .card  { height: 360px; }
  #egypt-tour-dest .card { height: 300px; }
  .tour-card__thumbnail  { height: 400px; }
}

/* ──────────────────────────────────────────────────────────────────
   8. MOBILE NAV SIDEBAR — responsive improvements
   ────────────────────────────────────────────────────────────────── */
.navbar_mobile {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
/* Mobile sidebar links: touch-friendly */
.navbar_mobile .bg-gradient nav a {
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: padding-left var(--transition-base);
}
.navbar_mobile .bg-gradient nav a:hover {
  padding-left: 8px;
}
.navbar_mobile .bg-gradient nav a:last-child {
  border-bottom: none;
}

/* ──────────────────────────────────────────────────────────────────
   9. GLOBAL INTERACTIVE IMPROVEMENTS
   ────────────────────────────────────────────────────────────────── */

/* Smooth focus outlines for accessibility */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Touch targets: min 44px */
@media (max-width: 1023px) {
  .navbar_mobile {
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 10px;
    padding: 8px 12px 10px;
    background: rgba(0, 113, 189, .92);
    box-shadow: 0 8px 22px rgba(0, 40, 70, .16);
  }

  .navbar_mobile .mobile-header-main,
  .navbar_mobile .mobile-header-actions {
    width: auto;
    min-width: 0;
  }

  .navbar_mobile .mobile-header-main img {
    max-width: 74px;
    height: 30px;
    object-fit: contain;
  }

  .navbar_mobile .mobile-header-actions {
    margin-inline-start: auto;
    gap: 12px;
  }

  .navbar_mobile .mobile-filter-dropdown {
    display: none;
  }

  .mobile-search-bar {
    order: 3;
    flex: 0 0 100%;
    min-height: 42px;
    margin-top: 0 !important;
    border-color: rgba(255, 255, 255, .28) !important;
    border-radius: 8px !important;
    background: rgba(255, 255, 255, .14) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12);
  }

  .mobile-search-bar__text {
    color: rgba(255, 255, 255, .82) !important;
    font-size: 13px !important;
  }

  .mobile-search-bar__kbd {
    display: none;
  }

  .search-modal {
    padding-top: 96px !important;
  }

  .navbar_link,
  .navbar_mobile .bg-gradient nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

/* Desktop nav must not become a scroll container, otherwise dropdowns are clipped. */
.navbar_list { flex-wrap: nowrap; overflow: visible; }
@media (max-width: 1023px) {
  .navbar_list { display: none; }
}

/* Tour card: prevent layout break on very small phones */
@media (max-width: 380px) {
  .tour-card__header { flex-direction: column; }
  .tour-card h3 { font-size: 1.2rem; }
  .tour-card__features li { font-size: 12px; }
}

/* ──────────────────────────────────────────────────────────────────
   10. BACK-TO-TOP BUTTON — enhanced animations
   ────────────────────────────────────────────────────────────────── */

@keyframes btt-arrow-bounce {
  0%, 100% { transform: translateY(0); }
  45%       { transform: translateY(-5px); }
  65%       { transform: translateY(-2px); }
}

@keyframes btt-pulse-ring {
  0%   { transform: scale(1);   opacity: .6; }
  100% { transform: scale(1.9); opacity: 0;  }
}

/* Override base transition to also animate transform */
.back-to-top {
  transition-property: transform, opacity, box-shadow !important;
  transition-duration: 0.3s !important;
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
}

/* Pulse ring on idle */
.back-to-top::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  border: 2px solid rgb(247 147 30 / 0.6);
  animation: btt-pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
  pointer-events: none;
}

/* Arrow bounce on idle */
.back-to-top svg {
  animation: btt-arrow-bounce 2.4s ease-in-out infinite;
}

/* Lift + scale on hover */
.back-to-top:hover {
  transform: scale(1.15) translateY(-4px) !important;
  box-shadow: 0 16px 40px rgba(247, 147, 30, 0.45) !important;
  opacity: 1 !important;
}

.back-to-top:hover svg {
  animation: none;
}

/* Active press */
.back-to-top:active {
  transform: scale(0.95) translateY(0) !important;
  transition-duration: 0.1s !important;
}

/* ──────────────────────────────────────────────────────────────────
   11. PRINT
   ────────────────────────────────────────────────────────────────── */
@media print {
  .navbar, .navbar_mobile, #headroom,
  .btns, .language-modal, .back-to-top { display: none !important; }
  body { font-size: 12pt; color: #000; }
}

/* ══════════════════════════════════════════════════════════════════
   12. HEADER ENHANCEMENTS — animations, social icons, micro-polish
   ══════════════════════════════════════════════════════════════════ */

/* ── Navbar entrance ─────────────────────────────────────────────── */
@keyframes navbarFadeDown {
  from { opacity: 0; transform: translateY(-18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.navbar { animation: navbarFadeDown 0.5s 0.1s cubic-bezier(.16,1,.3,1) both; }

/* ── Sticky header re-entry ──────────────────────────────────────── */
@keyframes headroomSlideDown {
  from { transform: translateY(-100%); box-shadow: none; }
  to   { transform: translateY(0);     box-shadow: 0 4px 24px rgba(0,0,0,.18); }
}
.headroom--pinned { animation: headroomSlideDown 0.32s cubic-bezier(.16,1,.3,1) both; }

/* ── Nav link animated underline ────────────────────────────────── */
.navbar_nav a,
.navbar_nav button {
  position: relative;
}
.navbar_nav > div > a::after,
.navbar_nav a.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  right: 50%;
  height: 2px;
  background: var(--color-secondary, #f7931e);
  border-radius: 2px;
  transition: left 0.28s ease, right 0.28s ease;
}
.navbar_nav > div > a:hover::after,
.navbar_nav a.nav-link:hover::after {
  left: 0;
  right: 0;
}

/* ── Logo hover ──────────────────────────────────────────────────── */
.navbar_desktop img {
  transition: transform 0.3s ease, filter 0.3s ease;
  transform-origin: left center;
}
.navbar_desktop img:hover {
  transform: scale(1.04);
  filter: drop-shadow(0 2px 8px rgba(0,113,189,.35));
}

/* ── CTA "Book Now" button shimmer ──────────────────────────────── */
.btn-cta,
a[href*="book"],
a[href*="Book"] {
  position: relative;
  overflow: hidden;
}
.btn-cta::before,
a[href*="book"]::before {
  content: '';
  position: absolute;
  top: 0; left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-20deg);
  animation: btnShimmer 3s 2s infinite;
}
@keyframes btnShimmer {
  0%   { left: -120%; }
  60%  { left: 130%; }
  100% { left: 130%; }
}

/* ── Topbar social icons ─────────────────────────────────────────── */
.topbar-socials {
  position: relative;
}
.topbar-socials::after {
  content: '';
  position: absolute;
  right: -12px;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255,255,255,.25);
}

.topbar-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: rgba(255,255,255,.75);
  font-size: 14px;
  transition: color 0.2s, background 0.2s, transform 0.2s;
  text-decoration: none;
}
.topbar-social-link:hover {
  color: #fff;
  background: rgba(255,255,255,.15);
  transform: translateY(-3px);
}
.topbar-social-icon-svg {
  width: 15px;
  height: 15px;
}
/* Inline SVG icons in topbar */
.topbar-social-link svg {
  width: 15px;
  height: 15px;
  flex: none;
  display: block;
}

/* ── Mobile nav icon pulse on open ──────────────────────────────── */
.navbar_mobile .hs-dropdown.open > button svg {
  animation: menuBounce 0.35s cubic-bezier(.16,1,.3,1);
}
@keyframes menuBounce {
  0%  { transform: scale(1); }
  50% { transform: scale(1.25) rotate(8deg); }
  100%{ transform: scale(1); }
}

/* ── Dropdown menus polished entrance ───────────────────────────── */
.hs-dropdown-menu:not(.hidden) {
  animation: dropIn 0.22s cubic-bezier(.16,1,.3,1) both;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

/* ── Mobile search bar pulse on focus-within ────────────────────── */
.mobile-search-bar:focus,
.mobile-search-bar:active {
  background: rgba(255,255,255,.22);
  border-color: rgba(255,255,255,.5);
  transform: scale(1.01);
  transition: all 0.18s ease;
}

/* ── Back-to-top button glow on hover (enhance existing) ─────────── */
.back-to-top:hover {
  box-shadow: 0 0 0 6px rgba(0,113,189,.18), 0 8px 24px rgba(0,113,189,.4) !important;
}

/* Shared header/footer social links */
.social-list {
  --social-icon-size: 38px;
  --social-icon-inner: 22px;
  gap: 10px;
}

.topbar-socials.social-list {
  --social-icon-size: 30px;
  --social-icon-inner: 18px;
  gap: 8px;
}

.social-list li {
  animation: socialIconIn .58s cubic-bezier(.16, 1, .3, 1) both;
}

.social-list li:nth-child(2) { animation-delay: .04s; }
.social-list li:nth-child(3) { animation-delay: .08s; }
.social-list li:nth-child(4) { animation-delay: .12s; }
.social-list li:nth-child(5) { animation-delay: .16s; }

.social-list__link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--social-icon-size);
  height: var(--social-icon-size);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  color: #fff;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .13);
  transform: translateZ(0);
  transition: transform .26s cubic-bezier(.16, 1, .3, 1),
              border-color .26s ease,
              background .26s ease,
              box-shadow .26s ease;
}

.social-list__link::before {
  content: "";
  position: absolute;
  inset: -45%;
  z-index: -1;
  background: conic-gradient(from 120deg, rgba(37,244,238,.95), rgba(247,147,30,.85), rgba(255,36,66,.9), rgba(0,113,189,.85), rgba(37,244,238,.95));
  opacity: 0;
  transform: rotate(0deg) scale(.78);
  transition: opacity .25s ease, transform .34s cubic-bezier(.16, 1, .3, 1);
}

.social-list__link::after {
  content: "";
  position: absolute;
  inset: 2px;
  z-index: -1;
  border-radius: inherit;
  background: rgba(12, 61, 94, .94);
}

.social-list.primary .social-list__link::after {
  background: #0071bd;
}

.social-list.white .social-list__link::after {
  background: rgba(255, 255, 255, .94);
}

.social-list.white .social-list__link {
  color: #0c3d5e;
}

.social-list__link:hover,
.social-list__link:focus-visible {
  transform: translateY(-4px) scale(1.06);
  border-color: rgba(255, 255, 255, .58);
  background: rgba(255, 255, 255, .18);
  box-shadow: 0 16px 30px rgba(0, 0, 0, .2);
  outline: none;
}

.social-list__link:hover::before,
.social-list__link:focus-visible::before {
  opacity: 1;
  transform: rotate(130deg) scale(1);
}

.social-list__link:hover .social-list__icon,
.social-list__link:focus-visible .social-list__icon {
  animation: socialIconPop .48s cubic-bezier(.16, 1, .3, 1);
}

.social-list__link.is-empty {
  cursor: default;
}

.social-list__icon {
  width: var(--social-icon-inner);
  height: var(--social-icon-inner);
  object-fit: contain;
  flex: none;
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.12));
}

.social-list__icon--tiktok-douyin,
.social-list__icon--redbook {
  width: calc(var(--social-icon-inner) + 3px);
  height: calc(var(--social-icon-inner) + 3px);
}

@keyframes socialIconIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.86);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes socialIconPop {
  0% { transform: scale(1) rotate(0deg); }
  45% { transform: scale(1.18) rotate(-6deg); }
  100% { transform: scale(1) rotate(0deg); }
}

@media (prefers-reduced-motion: reduce) {
  .social-list li,
  .social-list__link:hover .social-list__icon,
  .social-list__link:focus-visible .social-list__icon {
    animation: none;
  }

  .social-list__link,
  .social-list__link::before {
    transition: none;
  }
}
