/*
 * frame.css — frame chrome, menus and footer.
 *
 * Consolidated out of the WordPress Customizer's Additional CSS on the live
 * site, where it existed only in the database: the theme shipped the markup
 * (template-parts/menu/*, template-parts/footer/*) but none of these styles,
 * so a fresh install rendered the frame templates unstyled. slide-menu.php
 * carries no inline CSS at all, which is why its off-canvas panel had no
 * styling anywhere outside that one database.
 *
 * Managed by the Customizer File Manager like any other CSS file, so it can be
 * enabled, ordered, route-scoped or deferred per site.
 *
 * This file is the SHARED BASELINE, not the single source of truth. The menu
 * templates keep their own inline <style> blocks on purpose:
 *
 *   - slide-menu.php and paper-menu.php have no inline CSS, so they are styled
 *     entirely from here.
 *   - frame-menu.php, frame-menu-complete.php and footer/frame-menu.php each
 *     carry per-template overrides. Four selectors genuinely DISAGREE between
 *     them -- .frame-top-bar, .ag-offcanvas__rail, .ag-offcanvas__ticker and
 *     .ag-offcanvas__tickerInner -- so one global rule cannot serve all three.
 *     Only one menu template renders per request, and inline wins over this
 *     file, which is exactly the intended precedence.
 *
 * So do NOT "consolidate" those blocks into this file: it would flatten four
 * deliberate differences. Verified by diffing the templates against each other,
 * not assumed.
 *
 * .top-menu-trigger and .ag-menu-link carry no rules by design -- they are
 * JavaScript hooks (off-canvas toggle and slider navigation), not styled
 * elements.
 */

/* ============================================================
   FRAME LAYOUT & NAVIGATION
   ============================================================ */


.frame-top-bar,
.frame-bottom-bar{
  position:fixed;
}
.home div .et_pb_section{
  padding:0px !important;position:fixed;
}
.et-db #et-boc .et-l .flair {
  position: fixed;
  opacity: 0;
  width: 50px;
}

/* Top Bar */
 .frame-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 80px;
  padding: 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  background: #1111118f;
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ccc;
  z-index: 999;
}
.top-info span { margin: 0 15px; }
.diamond { color: #D6F32D; margin-right: 5px; }

/* Bottom Bar */
.frame-bottom-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  height: 100px;
  display: grid;
  grid-template-columns: 80px 1fr 80px; /* Matches the top/side widths */
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 100;
}
.frame-bottom-bar > div { background: #1111118f; }

body .frame-bottom-bar { max-height: 80px; }

/* Sidebars */
body .frame-left-sidebar,
body .frame-right-sidebar {
  height: calc(100% - 160px);
}

.frame-left-sidebar {
  background: #1111118f;
  position: fixed;
  top: 80px;
  left: 0;
  width: 80px;
  height: calc(100vh - 180px);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
}

.frame-right-sidebar {
  background: #1111118f;
  position: fixed;
  top: 80px;
  right: 0;
  width: 80px;
  height: calc(100vh - 180px);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99;
  color: #fff;
}

/* Sidebar Utilities */
.vertical-socials {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: flex;
  gap: 30px;
}
.vertical-socials a {
  color: #888;
  text-decoration: none;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: color 0.3s;
}
.vertical-socials a:hover { color: #D6F32D; }

/* Bottom Bar Utilities */
.bot-cell {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bot-info {
  justify-content: space-between;
  padding: 0 40px;
  font-size: 10px;
  color: #888;
  text-transform: uppercase;
}
.info-block { display: flex; flex-direction: column; gap: 4px; }
.info-block .val { color: #eee; }

.bot-corner {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  color: #666;
}

/* Yellow Button Styling */
.frame-bottom-bar .bot-btn {
  background-color: #D6F32D;
  color: #000;
  cursor: pointer;
  transition: background 0.3s;
}
.frame-bottom-bar .bot-btn-1,
.frame-bottom-bar .bot-btn-2 {
  background-color: #D6F32D; 
  color: #000;
  cursor: pointer;
  transition: background 0.3s;
  filter: grayscale(1);
}
.frame-bottom-bar .bot-btn-1:hover,
.frame-bottom-bar .bot-btn-2:hover { background-color: #fff; }



/* ============================================================
   OFFCANVAS MENU
   ============================================================ */

.ag-offcanvas {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: grid;
  grid-template-columns: minmax(320px, 820px) 64px 1fr;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
}
.ag-offcanvas.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Right Side Backdrop */
.ag-offcanvas__backdrop {
  grid-column: 3 / 4;
  background:
    radial-gradient(1200px 600px at 40% 30%, rgba(255,255,255,.10), transparent 60%),
    radial-gradient(900px 500px at 60% 70%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(90deg, rgba(0,0,0,.75), rgba(0,0,0,.55));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* Left Panel */
.ag-offcanvas__panel {
  grid-column: 1 / 2;
  position: relative;
  background:
    radial-gradient(900px 700px at 30% 30%, rgba(255,255,255,.10), transparent 55%),
    linear-gradient(180deg, rgba(0,0,0,.82), rgba(0,0,0,.92));
  color: rgba(255,255,255,.92);
  padding: 36px 34px 28px;
  transform: translateX(-18px);
  transition: transform .35s ease;
}
.ag-offcanvas.is-open .ag-offcanvas__panel { transform: translateX(0); }

/* Newsletter */
.ag-offcanvas__newsletter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  max-width: 280px;
}
.ag-offcanvas__newsletter span {
  font-size: 13px;
  opacity: .9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ag-offcanvas__newsletterBtn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: #c9f400;
  color: #141414;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* Nav */
.ag-offcanvas__nav {
  margin-top: 38px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ag-offcanvas__link {
  text-decoration: none;
  color: rgba(255,255,255,.92);
  font-family: ui-serif, Georgia, "Times New Roman", Times, serif;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.ag-offcanvas__link.is-active { color: #c9f400; }
.ag-star {
  display: inline-block;
  margin-right: 10px;
  font-size: 16px;
  vertical-align: middle;
}

/* Language */
.ag-offcanvas__lang {
  position: absolute;
  left: 34px;
  bottom: 28px;
}
.ag-offcanvas__langLabel {
  font-size: 11px;
  letter-spacing: .12em;
  opacity: .65;
  margin-bottom: 10px;
}
.ag-offcanvas__langBtns {
  display: flex;
  gap: 10px;
}
.ag-pill {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.8);
  font-size: 12px;
  cursor: pointer;
}
.ag-pill.is-on {
  background: #c9f400;
  border-color: #c9f400;
  color: #141414;
  font-weight: 700;
}

/* Rail Ticker */
.ag-offcanvas__rail {
  grid-column: 2 / 3;
  position: relative;
  background: #c9f400;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ag-offcanvas__ticker {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ag-offcanvas__tickerInner {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-size: 12px;
  letter-spacing: .14em;
  color: #151515;
  font-weight: 700;
  opacity: .9;
  transform: translateY(0);
  animation: agTicker 9s linear infinite;
  white-space: nowrap;
}
@keyframes agTicker {
  0% { transform: translateY(25%); }
  100% { transform: translateY(-25%); }
}

/* Close Button */
.ag-offcanvas__close {
  position: fixed;
  left: calc(min(420px, 34vw) + 64px + 50%);
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 8px 16px;
  border-radius: 999px;
  border: 0;
  background: #c9f400;
  color: #141414;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

/* Responsive Offcanvas */
@media (max-width: 900px) {
  .ag-offcanvas {
    grid-template-columns: 1fr 56px;
  }
  .ag-offcanvas__backdrop { display: none; }
  .ag-offcanvas__close {
    left: calc(100% - 18px);
    top: 18px;
    transform: translateX(-100%);
  }
}

/* ============================================================
   FRAME PAGINATION / PROGRESS  (was in the HOME & DIVI OVERRIDES
   section of the Customizer CSS, but it is frame chrome:
   footer/frame-menu.php renders .pagination-wrapper and
   .v-progress-bar.)
   ============================================================ */
.pagination-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  font-family: monospace;}
.curr-slide,
.total-slides {
  min-width: 2ch;
  text-align: center;
  font-size: 14px;
  line-height: 1;}
.v-progress-track {
  position: relative;
  width: 2px;
  height: 120px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  overflow: visible;}
.v-progress-fill {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 10%;
  background: #D6F32D;
  border-radius: 999px;
  transition: height 0.35s ease;}
.v-progress-thumb {
  position: absolute;
  left: 50%;
  bottom: 10%;
  width: 10px;
  height: 10px;
  background: #D6F32D;
  border-radius: 50%;
  transform: translate(-50%, 50%);
  box-shadow: 0 0 0 3px rgba(214, 243, 45, 0.18);
  transition: bottom 0.35s ease;}


/* ============================================================
   FRAME UI HOOKS  (consumed by assets/js/custom/frame-ui.js)
   ============================================================ */

/*
 * Nav offset. frame-ui.js measures .navbar once and publishes its height as
 * --ag-nav-height, then marks the single target group with .ag-nav-offset. The
 * padding lives here rather than in inline styles, so a resize updates one
 * custom property instead of rewriting styles on every matched element.
 */
:root { --ag-nav-height: 0px; }

.ag-nav-offset {
  padding-top: var(--ag-nav-height, 0px);
  box-sizing: border-box;
}

/*
 * Click feedback on an off-canvas menu link. The class was applied by the old
 * inline script but never styled anywhere, so the "pulse" did nothing.
 */
.ag-menu-link.ag-link-activated {
  animation: ag-link-pulse 600ms ease-out;
}

@keyframes ag-link-pulse {
  0%   { transform: translateX(0);    opacity: 1; }
  30%  { transform: translateX(6px);  opacity: 0.65; }
  100% { transform: translateX(0);    opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .ag-menu-link.ag-link-activated { animation: none; }
}
