/* =====================================================================
   TEDY v56 — "these are real buttons" layer (last CSS layer).
   Two jobs, both only on the poster dashboard unless stated otherwise:
     1. The «መግቢያ» and «ምርቶቻችን» pills printed in the artwork get a real
        button affordance: gold bevel, breathing bloom, a light streak that
        sweeps across, a touch-pulse dot and a visible pressed (sink-in)
        state. The artwork text itself is never covered — every effect is a
        translucent ring/highlight drawn on top of the existing pill.
     2. A beautiful floating call button that dials +251 92 471 1168.
   Selectors are duplicated for body[data-tedy-bright] because that variant
   out-specifies the plain one in earlier layers, and the v55 hero layer.
   ===================================================================== */

:root {
  --tedyy-v56-gold: 255, 205, 92;
  --tedyy-v56-gold-hi: 255, 236, 180;
  --tedyy-v56-shadow: 0 0 0, 0 0 0;
}

/* ------------------------------------------------------------------ 1
   Base button surface for both poster pills.
--------------------------------------------------------------------- */
#page-home.home-page .home-poster-menu,
#page-home.home-page .home-poster-cta,
body[data-tedy-bright] #page-home.home-page .home-poster-menu,
body[data-tedy-bright] #page-home.home-page .home-poster-cta {
  border-radius: 999px !important;
  overflow: hidden !important;
  isolation: isolate !important;
  background:
    linear-gradient(180deg,
      rgba(255, 240, 200, .17) 0%,
      rgba(255, 214, 120, .06) 42%,
      rgba(120, 82, 18, .10) 68%,
      rgba(14, 10, 3, .20) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 214, .32),
    inset 0 -3px 7px rgba(0, 0, 0, .46),
    0 3px 10px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 205, 92, .34) !important;
  transition:
    transform .14s cubic-bezier(.22, .61, .36, 1),
    box-shadow .22s ease,
    filter .22s ease !important;
  animation: tedyy-v56-breathe 3.8s ease-in-out infinite !important;
  will-change: transform, box-shadow;
}

/* The menu pill is small: a slightly tighter breathing cycle. */
#page-home.home-page .home-poster-menu,
body[data-tedy-bright] #page-home.home-page .home-poster-menu {
  animation-duration: 3.2s !important;
}

/* ------------------------------------------------------------------ 2
   Gold light streak that sweeps across the pill (reads as glass + gold).
--------------------------------------------------------------------- */
#page-home.home-page .home-poster-menu::after,
#page-home.home-page .home-poster-cta::after,
body[data-tedy-bright] #page-home.home-page .home-poster-menu::after,
body[data-tedy-bright] #page-home.home-page .home-poster-cta::after {
  content: "" !important;
  position: absolute !important;
  inset: -30% -60% !important;
  pointer-events: none !important;
  z-index: 2 !important;
  background: linear-gradient(104deg,
    rgba(255, 255, 255, 0) 34%,
    rgba(255, 240, 198, .30) 46%,
    rgba(255, 255, 255, .34) 50%,
    rgba(255, 240, 198, .30) 54%,
    rgba(255, 255, 255, 0) 66%) !important;
  transform: translateX(-135%);
  animation: tedyy-v56-sweep 4.6s ease-in-out infinite !important;
  mix-blend-mode: screen !important;
  opacity: .85 !important;
}
#page-home.home-page .home-poster-cta::after,
body[data-tedy-bright] #page-home.home-page .home-poster-cta::after {
  animation-delay: .9s !important;
}

/* ------------------------------------------------------------------ 3
   Touch-pulse dot: a small ring that expands from the pill centre, the
   universal "tap me" cue. It sits behind the artwork's own text.
--------------------------------------------------------------------- */
#page-home.home-page .home-poster-menu::before,
#page-home.home-page .home-poster-cta::before,
body[data-tedy-bright] #page-home.home-page .home-poster-menu::before,
body[data-tedy-bright] #page-home.home-page .home-poster-cta::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 34% !important;
  height: 170% !important;
  transform: translate(-50%, -50%) scale(.35);
  border-radius: 999px !important;
  border: 1px solid rgba(255, 214, 120, .55) !important;
  background: radial-gradient(circle,
    rgba(255, 214, 120, .22) 0%,
    rgba(255, 214, 120, 0) 70%) !important;
  pointer-events: none !important;
  z-index: 1 !important;
  opacity: 0 !important;
  animation: tedyy-v56-tap 3.8s ease-out infinite !important;
}
#page-home.home-page .home-poster-cta::before,
body[data-tedy-bright] #page-home.home-page .home-poster-cta::before {
  animation-delay: 1.4s !important;
}

/* ------------------------------------------------------------------ 4
   Hover / press / release.
   `.tedyy-v56-pressed` is applied by the v56 script so touch devices get
   the same sink-in feedback CSS :active gives a mouse.
--------------------------------------------------------------------- */
#page-home.home-page .home-poster-menu:hover,
#page-home.home-page .home-poster-cta:hover,
body[data-tedy-bright] #page-home.home-page .home-poster-menu:hover,
body[data-tedy-bright] #page-home.home-page .home-poster-cta:hover {
  filter: brightness(1.07) saturate(1.05) !important;
  /* The v55 layer paints a flat translucent background on :hover, which
     out-specifies the base rule above; repeat the raised gradient here so
     the pill never flattens while the pointer is on it. */
  background: linear-gradient(180deg,
    rgba(255, 244, 210, .20) 0%,
    rgba(255, 214, 120, .08) 42%,
    rgba(120, 82, 18, .10) 68%,
    rgba(14, 10, 3, .20) 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 246, 214, .40),
    inset 0 -3px 7px rgba(0, 0, 0, .44),
    0 4px 14px rgba(0, 0, 0, .55),
    0 0 18px 2px rgba(255, 196, 64, .34) !important;
  transform: translateY(-1px) !important;
}

#page-home.home-page .home-poster-menu:active,
#page-home.home-page .home-poster-cta:active,
#page-home.home-page .home-poster-menu.tedyy-v56-pressed,
#page-home.home-page .home-poster-cta.tedyy-v56-pressed,
body[data-tedy-bright] #page-home.home-page .home-poster-menu:active,
body[data-tedy-bright] #page-home.home-page .home-poster-cta:active,
body[data-tedy-bright] #page-home.home-page .home-poster-menu.tedyy-v56-pressed,
body[data-tedy-bright] #page-home.home-page .home-poster-cta.tedyy-v56-pressed {
  transform: translateY(3px) scale(.966) !important;
  animation-play-state: paused !important;
  box-shadow:
    inset 0 3px 9px rgba(0, 0, 0, .66),
    inset 0 -1px 2px rgba(0, 0, 0, .40),
    0 1px 3px rgba(0, 0, 0, .52),
    0 0 0 1px rgba(255, 214, 120, .62) !important;
}
#page-home.home-page .home-poster-menu:active::after,
#page-home.home-page .home-poster-cta:active::after,
#page-home.home-page .home-poster-menu.tedyy-v56-pressed::after,
#page-home.home-page .home-poster-cta.tedyy-v56-pressed::after {
  animation-play-state: paused !important;
  opacity: .5 !important;
}

/* Keyboard users must still see a clear focus ring. */
#page-home.home-page .home-poster-menu:focus-visible,
#page-home.home-page .home-poster-cta:focus-visible {
  outline: 2px solid #ffd23f !important;
  outline-offset: 3px !important;
  animation-play-state: paused !important;
}

/* ------------------------------------------------------------------ 5
   The floating call button on the poster dashboard. It lives inside the
   poster stage, in the blended band under the artwork, so the 9:16 poster
   itself is never covered or cropped.
--------------------------------------------------------------------- */
#page-home.home-page .tedyy-call-fab,
body[data-tedy-bright] #page-home.home-page .tedyy-call-fab {
  position: absolute !important;
  right: 12px !important;
  bottom: 12px !important;
  z-index: 6 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  height: 54px !important;
  padding: 0 20px 0 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  font: inherit !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  letter-spacing: .3px !important;
  text-decoration: none !important;
  color: #2b1c04 !important;
  background: linear-gradient(180deg,
    #ffe9a8 0%, #f6c745 34%, #d99f1e 68%, #b47c12 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .62),
    inset 0 -3px 8px rgba(96, 56, 0, .42),
    0 6px 18px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(255, 210, 92, .55) !important;
  -webkit-tap-highlight-color: transparent !important;
  touch-action: manipulation !important;
  animation: tedyy-v56-fab 2.6s ease-in-out infinite !important;
  transition: transform .13s cubic-bezier(.22, .61, .36, 1), filter .2s ease !important;
}
#page-home.home-page .tedyy-call-fab:hover,
body[data-tedy-bright] #page-home.home-page .tedyy-call-fab:hover {
  filter: brightness(1.06) saturate(1.06) !important;
}
#page-home.home-page .tedyy-call-fab:active,
#page-home.home-page .tedyy-call-fab.tedyy-v56-pressed {
  transform: translateY(3px) scale(.97) !important;
  animation-play-state: paused !important;
  box-shadow:
    inset 0 3px 8px rgba(88, 52, 0, .55),
    inset 0 -1px 2px rgba(60, 34, 0, .40),
    0 2px 5px rgba(0, 0, 0, .50),
    0 0 0 1px rgba(255, 224, 140, .70) !important;
}
#page-home.home-page .tedyy-call-fab:focus-visible {
  outline: 2px solid #ffe9a8 !important;
  outline-offset: 3px !important;
}

/* The ring that makes it look like a live call control. */
#page-home.home-page .tedyy-call-fab::before,
body[data-tedy-bright] #page-home.home-page .tedyy-call-fab::before {
  content: "" !important;
  position: absolute !important;
  inset: -4px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 214, 120, .55) !important;
  pointer-events: none !important;
  animation: tedyy-v56-ring 2.6s ease-out infinite !important;
}

/* Handset glyph, slightly embossed. */
#page-home.home-page .tedyy-call-fab .tedyy-call-ico,
body[data-tedy-bright] #page-home.home-page .tedyy-call-fab .tedyy-call-ico {
  display: inline-block !important;
  font-size: 20px !important;
  line-height: 1 !important;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .45) !important;
  animation: tedyy-v56-ringing 2.6s ease-in-out infinite !important;
  transform-origin: 50% 50% !important;
}

/* Only visible while the poster dashboard is on screen. */
body:not(.tedy-home-poster) #page-home.home-page .tedyy-call-fab {
  display: none !important;
}

/* ------------------------------------------------------------------ 6
   Drawer: the call entry, styled like the other drawer rows and clearly a
   button (gold edge) rather than plain text.
--------------------------------------------------------------------- */
#drawer .drawer-call,
#drawer .drawer-call:hover,
#drawer .drawer-call:focus {
  text-decoration: none !important;
  color: #2b1c04 !important;
  background: linear-gradient(180deg,
    #ffe9a8 0%, #f4c442 40%, #d99f1e 100%) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -2px 6px rgba(96, 56, 0, .35),
    0 3px 12px rgba(0, 0, 0, .45) !important;
  font-weight: 800 !important;
}
#drawer .drawer-footer a,
#drawer .drawer-footer a:hover {
  color: #e7c66d !important;
  text-decoration: none !important;
}

/* ------------------------------------------------------------------ 7
   Keyframes.
--------------------------------------------------------------------- */
@keyframes tedyy-v56-breathe {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 246, 214, .32),
      inset 0 -3px 7px rgba(0, 0, 0, .46),
      0 3px 10px rgba(0, 0, 0, .55),
      0 0 0 1px rgba(255, 205, 92, .34);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 246, 214, .44),
      inset 0 -3px 7px rgba(0, 0, 0, .40),
      0 4px 16px rgba(0, 0, 0, .55),
      0 0 20px 2px rgba(255, 196, 64, .42);
  }
}

@keyframes tedyy-v56-sweep {
  0%   { transform: translateX(-135%); }
  55%  { transform: translateX(135%); }
  100% { transform: translateX(135%); }
}

@keyframes tedyy-v56-tap {
  0%   { opacity: 0;   transform: translate(-50%, -50%) scale(.30); }
  12%  { opacity: .95; }
  45%  { opacity: .28; transform: translate(-50%, -50%) scale(1.05); }
  70%  { opacity: 0;   transform: translate(-50%, -50%) scale(1.18); }
  100% { opacity: 0;   transform: translate(-50%, -50%) scale(1.18); }
}

@keyframes tedyy-v56-fab {
  0%, 100% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .62),
      inset 0 -3px 8px rgba(96, 56, 0, .42),
      0 6px 18px rgba(0, 0, 0, .55),
      0 0 0 1px rgba(255, 210, 92, .55);
  }
  50% {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .70),
      inset 0 -3px 8px rgba(96, 56, 0, .38),
      0 8px 24px rgba(0, 0, 0, .55),
      0 0 22px 3px rgba(255, 196, 64, .48);
  }
}

@keyframes tedyy-v56-ring {
  0%   { opacity: 0;   transform: scale(.92); }
  15%  { opacity: .8; }
  60%  { opacity: 0;   transform: scale(1.14); }
  100% { opacity: 0;   transform: scale(1.14); }
}

@keyframes tedyy-v56-ringing {
  0%, 62%, 100% { transform: rotate(0deg) scale(1); }
  66% { transform: rotate(-14deg) scale(1.06); }
  70% { transform: rotate(12deg) scale(1.06); }
  74% { transform: rotate(-9deg) scale(1.04); }
  78% { transform: rotate(6deg) scale(1.02); }
  82% { transform: rotate(0deg) scale(1); }
}

/* ------------------------------------------------------------------ 8
   Short/landscape windows: keep the call button reachable but smaller.
--------------------------------------------------------------------- */
@media (max-height: 560px) {
  #page-home.home-page .tedyy-call-fab,
  body[data-tedy-bright] #page-home.home-page .tedyy-call-fab {
    height: 46px !important;
    font-size: 14px !important;
    padding: 0 16px 0 13px !important;
  }
}

/* ------------------------------------------------------------------ 9
   Reduced motion: everything keeps the raised gold look, nothing moves.
--------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #page-home.home-page .home-poster-menu,
  #page-home.home-page .home-poster-cta,
  #page-home.home-page .home-poster-menu::after,
  #page-home.home-page .home-poster-cta::after,
  #page-home.home-page .home-poster-menu::before,
  #page-home.home-page .home-poster-cta::before,
  #page-home.home-page .tedyy-call-fab,
  #page-home.home-page .tedyy-call-fab::before,
  #page-home.home-page .tedyy-call-fab .tedyy-call-ico {
    animation: none !important;
    transition: none !important;
  }
  #page-home.home-page .home-poster-menu::after,
  #page-home.home-page .home-poster-cta::after {
    opacity: 0 !important;
  }
  #page-home.home-page .home-poster-menu::before,
  #page-home.home-page .home-poster-cta::before {
    opacity: .5 !important;
    transform: translate(-50%, -50%) scale(.7) !important;
  }
}
