/*
 * Astra Child — main theme stylesheet
 * ------------------------------------------------------------------
 * Loaded after Astra's own CSS (handle: astra-theme-css), so rules here
 * override Astra's at equal specificity. No !important needed.
 *
 * Order of preference:
 *   1. Astra Customizer (Appearance > Customize) — colors, fonts, layout
 *   2. This file — anything the Customizer can't do
 *
 * Astra breakpoints: tablet <= 921px, mobile <= 544px
 *
 * Contents
 *   01. Design tokens
 *   02. Base
 *   03. Typography
 *   04. Links & buttons
 *   05. Header
 *   06. Navigation
 *   07. Content & blog
 *   08. Sidebar & widgets
 *   09. Forms
 *   10. Footer
 *   11. Utilities
 *   12. Responsive — tablet
 *   13. Responsive — mobile
 * ------------------------------------------------------------------
 */
#ast-scroll-top {
    background-color: #0e9144 !important;
    font-size: 15px;
}
.disp-border-gradient .elementor-divider{
  padding-block:0 !important;
  line-height:0;
}
.disp-border-gradient .elementor-divider-separator{
  border:0 !important;
  width:100% !important;
  height:2px;
  display:block;
  background:linear-gradient(90deg,#00B04E 0 22%,#E3E7E1 22% 100%);
}

/* ==================================================================
   05. Header — Elementor sticky header (container class: main-header-sec)

   Elementor setup (header container > Advanced > Motion Effects):
     Sticky: Top (keeps it fixed). The scrolled look is driven by
     assets/js/theme-script.js, which adds .is-scrolled after 50px.

   Classes Elementor Pro adds:
     .elementor-sticky--active   stuck — already true at the top of the page
     .is-scrolled                added by theme-script.js  ← "scrolled" state
     .elementor-sticky__spacer   invisible placeholder clone — excluded

   "body .elementor" prefix beats Elementor's per-element CSS
   (.elementor-490 .elementor-element.elementor-element-3a08e30).
   ================================================================== */

 

/* Scrolled: compact, frosted glass, border + shadow. */
body .elementor .elementor-element.main-header-sec.is-scrolled:not(.elementor-sticky__spacer) {
	    z-index: 50;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgb(214, 214, 214);
}

/* Logo shrinks slightly when scrolled. */
body .elementor .main-header-sec .elementor-widget-image img,
body .elementor .main-header-sec .elementor-widget-theme-site-logo img {
	transition: max-height 0.3s ease;
}

body .elementor .main-header-sec.is-scrolled .elementor-widget-image img,
body .elementor .main-header-sec.is-scrolled .elementor-widget-theme-site-logo img {
	max-height: 36px;
	width: auto;
}
/* ==================================================================
   Gradient border on hover — boxes with CSS class "home-three-box-sec"
   (green → gold, fades in). Works on any background, keeps the radius.
   ================================================================== */

.home-three-box-sec {
	position: relative; /* anchor for the ring */
}

/* The ring always exists (hidden), so the fade can animate. */
.home-three-box-sec::after {
	content: "";
	position: absolute;
	inset: -1px;                /* sits on top of the box's own 1px border */
	z-index: 2;
	padding: 1px;               /* = border width */
	border-radius: inherit;
	background: linear-gradient(90deg, #008d40 0%, #008d40 50%, #ffd08d 100%);

	/* Cut out the middle so only a 1px ring is left. */
	-webkit-mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	-webkit-mask-composite: xor;
	mask:
		linear-gradient(#000 0 0) content-box,
		linear-gradient(#000 0 0);
	mask-composite: exclude;

	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;       /* clicks go through to the box */
}

.home-three-box-sec:hover::after,
.home-three-box-sec:focus-within::after {
	opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
	.home-three-box-sec::after {
		transition: none;
	}
}
@media (prefers-reduced-motion: reduce) {
	body .elementor .main-header-sec,
	body .elementor .main-header-sec img {
		transition: none;
	}
}

/* ==================================================================
   Watch-demo popup
   Opened by any ".watch-demo-btn"; plays the ".banner-video-sec" video.
   Script: assets/js/theme-script.js.

   Sizing: the video is as large as possible while fitting the screen
   (width AND height), keeping its real aspect ratio — so it works in
   portrait, landscape, tablets and notched phones.
   ================================================================== */

html.dl-video-modal-open {
	overflow: hidden; /* stop the page scrolling behind the popup */
}

.dl-video-modal {
	--dl-video-max: 1100px;               /* largest width on big screens */
	--dl-video-chrome: 48px;              /* vertical breathing space around the video */

	position: fixed;
	inset: 0;
	z-index: 1000000;                     /* above sticky header & admin bar */
	display: flex;
	align-items: center;
	justify-content: center;
	padding:
		max(16px, env(safe-area-inset-top))
		max(16px, env(safe-area-inset-right))
		max(16px, env(safe-area-inset-bottom))
		max(16px, env(safe-area-inset-left));
	opacity: 0;
	transition: opacity 0.25s ease;
}

.dl-video-modal[hidden] {
	display: none;
}

.dl-video-modal.is-open {
	opacity: 1;
}

.dl-video-modal .dl-video-modal__backdrop {
	position: absolute;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.88);
	-webkit-backdrop-filter: blur(4px);
	backdrop-filter: blur(4px);
}

.dl-video-modal .dl-video-modal__dialog {
	position: relative;
	/* min of: max width, available width, width that fits the height */
	width: min(var(--dl-video-max), 100%, calc((100vh - var(--dl-video-chrome)) * var(--dl-video-ratio, 1.7778)));
	width: min(var(--dl-video-max), 100%, calc((100dvh - var(--dl-video-chrome)) * var(--dl-video-ratio, 1.7778)));
	transform: scale(0.96);
	transition: transform 0.25s ease;
}

.dl-video-modal.is-open .dl-video-modal__dialog {
	transform: scale(1);
}

.dl-video-modal .dl-video-modal__frame {
	position: relative;
	aspect-ratio: var(--dl-video-ratio, 16 / 9);
	overflow: hidden;
	border-radius: 12px;
	background-color: #000000;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.dl-video-modal .dl-video-modal__frame video,
.dl-video-modal .dl-video-modal__frame iframe {
	display: block;
	width: 100%;
	height: 100%;
	border: 0;
	object-fit: contain;
	background-color: #000000;
}

/* Close button sits inside the popup, top-right corner of the video. */
.dl-video-modal .dl-video-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;                          /* comfortable touch target */
	height: 44px;
	margin: 0;
	padding: 0;
	border: 0;
	border: 1px solid rgba(255, 255, 255, 0.25);
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.55);      /* readable over light and dark video frames */
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
	color: #ffffff;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.dl-video-modal .dl-video-modal__close:hover,
.dl-video-modal .dl-video-modal__close:focus-visible {
	background: rgba(0, 0, 0, 0.8);
	color: #ffffff;
}

.dl-video-modal .dl-video-modal__close:focus-visible {
	outline: 2px solid #ffffff;
	outline-offset: 2px;
}

.dl-video-modal .dl-video-modal__close svg {
	width: 20px;
	height: 20px;
}

/* Phones in portrait: a little less rounding, smaller close button. */
@media (max-width: 544px) {
	.dl-video-modal .dl-video-modal__frame {
		border-radius: 8px;
	}

	.dl-video-modal .dl-video-modal__close {
		top: 8px;
		right: 8px;
		width: 38px;
		height: 38px;
	}
}

/* Short screens (phones in landscape): use almost the full height. */
@media (max-height: 500px) {
	.dl-video-modal {
		--dl-video-chrome: 24px;
		padding:
			max(12px, env(safe-area-inset-top))
			max(16px, env(safe-area-inset-right))
			max(12px, env(safe-area-inset-bottom))
			max(16px, env(safe-area-inset-left));
	}
}

@media (prefers-reduced-motion: reduce) {
	.dl-video-modal,
	.dl-video-modal .dl-video-modal__dialog {
		transition: none;
	}
}


/* ==================================================================
   12. Responsive — tablet (Astra: <= 921px)
   ================================================================== */
@media (max-width: 921px) {
}


/* ==================================================================
   13. Responsive — mobile (Astra: <= 544px)
   ================================================================== */
@media (max-width: 544px) {
}