/* =========================================================================
   Ratin Classic — content area.
   Loads after the frozen (scoped) stylesheets of the page.
   ========================================================================= */

/* The old page body: white, as under hello-elementor. */
body.rc-page{background:#fff}
.rc-scope{display:block}
.rc-body{display:flow-root;min-height:40vh}
.rc-popups[hidden]{display:none!important}

/* The content area is light only; the header's mode switch has nothing to switch. */
.rc-page .theme-toggle{display:none!important}

/* No charge rates in the menus: the services mega menu drops its rates
   panel and its links take the full width. Other panels stay. */
.rc-page .mega__side:has(.mega__rates),
.rc-page .mega__side:has(.mega__side-note):not(:has(.mega__side-title)){display:none!important}
.rc-page .mega__inner:has(.mega__rates){grid-template-columns:minmax(0,1fr)}
.rc-page .mega__inner:has(.mega__rates) .mega__grid{grid-template-columns:repeat(4,minmax(0,1fr))}

/* The phone app bar keeps home, magazine and call: no quick-access
   "services" button and no "instant charge" button. */
.rc-page [data-quick-open],
.rc-page .app-bar__item--main{display:none!important}
@media (max-width:1024px){.rc-page .app-bar{grid-template-columns:repeat(3,minmax(0,1fr))}}

/* Yekan Bakh everywhere in the content (Persian digits through the FaNum
   face). Icon fonts are left alone: they sit on <i>, or on elements whose
   class names say "icon", "fa-", "eicon" or "ekit". */
#content .rc-body,
#content .rc-body :where(:not(i):not(svg):not(svg *):not([class*="icon"]):not([class*="fa-"]):not([class^="fa"]):not([class*=" fa"]):not([class*="eicon"]):not([class*="ekit"]):not([class*="jki"]):not(.dashicons)){
  font-family:'YekanBakhFaNum','YekanBakh',Tahoma,sans-serif!important;
}
.rc-body code,.rc-body pre,.rc-body kbd{font-family:ui-monospace,Consolas,monospace!important}

/* Forms go to the Ratin form handler (signed time stamp, honeypot, rate
   limit); Google's reCAPTCHA box is not used. */
.rc-body .elementor-field-type-recaptcha,.rc-body .elementor-field-type-recaptcha_v3{display:none!important}

/* The Ratin footer has its own back-to-top button (with a progress ring). */
.rc-body .elementor-widget-elementskit-back-to-top{display:none!important}

/* Lightbox for images and videos (classic.js). */
.rc-lightbox{position:fixed;inset:0;z-index:100000;display:flex;align-items:center;justify-content:center;background:rgba(10,14,26,.92);padding:56px 16px}
.rc-lightbox[hidden]{display:none}
.rc-lightbox__stage{max-width:min(1200px,100%);max-height:100%;display:flex}
.rc-lightbox__stage img{max-width:100%;max-height:calc(100vh - 112px);object-fit:contain;border-radius:6px}
.rc-lightbox--video .rc-lightbox__stage{width:min(1100px,100%);aspect-ratio:16/9}
.rc-lightbox__stage iframe,.rc-lightbox__stage video{width:100%;height:100%;border:0;border-radius:6px;background:#000}
.rc-lightbox button{position:absolute;border:0;background:rgba(255,255,255,.12);color:#fff;width:44px;height:44px;border-radius:50%;font-size:28px;line-height:1;cursor:pointer}
.rc-lightbox button:hover{background:rgba(255,255,255,.24)}
.rc-lightbox__close{top:12px;left:12px}
.rc-lightbox__prev{right:12px;top:50%}
.rc-lightbox__next{left:12px;top:50%}
.rc-lightbox:not(.rc-lightbox--gallery) .rc-lightbox__prev,.rc-lightbox:not(.rc-lightbox--gallery) .rc-lightbox__next{display:none}
html.rc-lightbox-open{overflow:hidden}

/* Entrance animations wait for classic.js; without it, show everything. */
html:not(.rc-js) .rc-body .elementor-invisible{visibility:visible!important}
