/* TG Hero Pro v1.1.0 – Elementor-native editor mode + local widget styles */
.tg-hero-pro{
  position:relative;
  min-height:620px;
  background:#111;
  color:#fff;
  isolation:isolate;
  overflow:hidden;
  font-family:Poppins,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}
/* Responsive title presets. Elementor Custom controls override these when selected. */
.tg-hero-title-size-small .tg-hero-title,.tg-hero-pro.tg-hero-title-size-small .tg-hero-title{--tg-hero-title-size:clamp(2rem,2.4vw,3rem);--tg-hero-title-size-tablet:clamp(1.875rem,4vw,2.5rem);--tg-hero-title-size-mobile:2rem;}
.tg-hero-title-size-medium .tg-hero-title,.tg-hero-pro.tg-hero-title-size-medium .tg-hero-title{--tg-hero-title-size:clamp(2.25rem,2.8vw,3.5rem);--tg-hero-title-size-tablet:clamp(2rem,4.6vw,2.875rem);--tg-hero-title-size-mobile:2.25rem;}
.tg-hero-title-size-large .tg-hero-title,.tg-hero-pro.tg-hero-title-size-large .tg-hero-title{--tg-hero-title-size:clamp(2.5rem,3.2vw,4rem);--tg-hero-title-size-tablet:clamp(2.125rem,5.2vw,3.25rem);--tg-hero-title-size-mobile:2.5rem;}
.tg-hero-title-size-custom .tg-hero-title,.tg-hero-pro.tg-hero-title-size-custom .tg-hero-title{--tg-hero-title-size:clamp(2.5rem,3.2vw,4rem);}
.tg-hero-slide{
  background-size:cover;
  background-position:center;
}
.tg-hero-mode-fade .tg-hero-slide{
  position:absolute;
  inset:0;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .45s ease,visibility .45s ease;
}
.tg-hero-mode-fade .tg-hero-slide.is-active{
  opacity:1;
  visibility:visible;
  pointer-events:auto;
  z-index:2;
}
.tg-hero-mode-scroll{
  display:flex;
  overflow-x:auto;
  overflow-y:hidden;
  scroll-snap-type:x proximity;
  -webkit-overflow-scrolling:touch;
  gap:0;
  scrollbar-width:none;
  -ms-overflow-style:none;
  cursor:grab;
}
.tg-hero-mode-scroll::-webkit-scrollbar{display:none;}
.tg-hero-mode-scroll.is-dragging{cursor:grabbing;scroll-snap-type:none;}
.tg-hero-mode-scroll .tg-hero-slide{
  position:relative;
  flex:0 0 100%;
  scroll-snap-align:start;
}
.tg-hero-overlay{
  position:absolute;
  inset:0;
  z-index:0;
  background:rgba(0,0,0,.48);
}
.tg-hero-inner{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(320px,.9fr);
  gap:48px;
  align-items:center;
  min-height:620px;
  margin:0 auto;
}
.tg-hero-pad-none .tg-hero-inner{padding:0;}
.tg-hero-pad-compact .tg-hero-inner{padding:clamp(24px,3vw,48px);}
.tg-hero-pad-comfortable .tg-hero-inner{padding:clamp(34px,5vw,76px);}
.tg-hero-pad-spacious .tg-hero-inner{padding:clamp(48px,7vw,112px);}
.tg-hero-width-boxed .tg-hero-inner{max-width:1200px;}
.tg-hero-width-wide .tg-hero-inner{max-width:1500px;}
.tg-hero-width-full .tg-hero-inner{max-width:none;}
.tg-hero-mockup-left .tg-hero-copy{order:2;}
.tg-hero-mockup-left :where(.tg-hero-mockup){order:1;}
.tg-hero-mockup-none .tg-hero-inner{grid-template-columns:1fr;}

/* Content */
:where(.tg-hero-badge){
  display:inline-flex;
  align-items:center;
  width:auto;
  max-width:max-content;
  margin:0 0 18px;
  padding:8px 18px;
  border-radius:999px;
  background:#f3f4f6;
  color:#e75925;
  font-weight:700;
  line-height:1;
}
.tg-hero-title{
  font-family:var(--tg-hero-title-family, Poppins,system-ui,sans-serif);
  font-size:var(--tg-hero-title-size, clamp(2.25rem,3vw,4rem));
  line-height:var(--tg-hero-title-line-height, .95);
  letter-spacing:var(--tg-hero-title-letter-spacing, -.035em);
  font-weight:var(--tg-hero-title-weight, 800);
  max-width:780px;
  margin:0 0 18px;
  color:#fff;
  text-shadow:0 3px 18px rgba(0,0,0,.45);
}
.tg-hero-title span{color:#e75925;}
:where(.tg-hero-sub){
  font-family:var(--tg-hero-sub-family, Poppins,system-ui,sans-serif);
  font-size:var(--tg-hero-sub-size, 18px);
  font-weight:var(--tg-hero-sub-weight, 400);
  line-height:var(--tg-hero-sub-line-height, 1.6);
  max-width:720px;
  margin:0 0 28px;
  color:rgba(255,255,255,.9);
  text-shadow:0 2px 12px rgba(0,0,0,.42);
}
.tg-hero-buttons{
  display:flex;
  gap:18px;
  flex-wrap:wrap;
  margin-bottom:22px;
}
:where(.tg-hero-buttons .tg-btn){
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  border:1px solid transparent;
  border-radius:999px;
  padding:14px 28px;
  font-family:Poppins,system-ui,sans-serif;
  font-weight:700;
  text-decoration:none;
  line-height:1.1;
  transition:transform .18s ease,box-shadow .18s ease,background .18s ease,color .18s ease,border-color .18s ease;
}
:where(.tg-hero-buttons .tg-btn:hover){transform:translateY(-1px);}
:where(.tg-hero-primary){background:#e75925;color:#fff;border-color:#e75925;box-shadow:0 12px 30px rgba(231,89,37,.18);}
:where(.tg-hero-secondary){background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.8);box-shadow:none;}
.tg-hero-pills{display:flex;gap:12px;flex-wrap:wrap;}
:where(.tg-hero-pill){
  position:relative;
  display:inline-flex;
  align-items:center;
  gap:9px;
  border:1px solid rgba(255,255,255,.85);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-family:Poppins,system-ui,sans-serif;
  font-weight:700;
  font-size:14px;
  line-height:1;
  padding:10px 18px;
  white-space:nowrap;
}
:where(.tg-hero-pill .tg-pill-icon){display:inline-flex;align-items:center;justify-content:center;font-size:16px;line-height:1;color:currentColor;}
:where(.tg-hero-pill svg){width:1em;height:1em;}
:where(.tg-hero-pill .tg-pill-icon svg,.tg-hero-pill .tg-pill-icon svg *){color:currentColor;fill:currentColor;stroke:currentColor;}
.tg-hero-pill[data-tooltip]:hover:after{
  content:attr(data-tooltip);
  position:absolute;
  left:50%;
  bottom:calc(100% + 10px);
  transform:translateX(-50%);
  background:#111827;
  color:#fff;
  padding:8px 10px;
  border-radius:10px;
  font-size:12px;
  line-height:1.3;
  min-width:180px;
  white-space:normal;
  z-index:80;
}

/* Mockup Card */
:where(.tg-hero-mockup){
  position:relative;
  z-index:2;
  min-height:420px;
  overflow:hidden;
  background:#fff;
  color:#111827;
  border-radius:28px;
  padding:28px;
  box-shadow:0 25px 70px rgba(15,23,42,.18);
}
:where(.tg-browser-dots){display:flex;gap:10px;margin-bottom:24px;}
:where(.tg-browser-dots i){display:block;width:14px;height:14px;border-radius:50%;background:#d1d5db;}
:where(.tg-hero-mockup-title){font-family:Poppins,system-ui,sans-serif;font-size:clamp(1.35rem,1.6vw,2rem);font-weight:800;line-height:1.15;margin:0 0 14px;color:#111;}
:where(.tg-hero-mockup-text){font-family:Poppins,system-ui,sans-serif;font-size:clamp(1rem,1vw,1.125rem);font-weight:400;line-height:1.55;color:#111;margin:0 0 24px;}
:where(.tg-hero-mockup-img){display:block;width:100%;height:auto;border-radius:20px;}
:where(.tg-skeleton){height:130px;border-radius:24px;background:linear-gradient(110deg,#fee2d8,#f4f4f4);}
:where(.tg-skeleton.lg){height:190px;margin-bottom:24px;}
:where(.tg-skeleton-row){display:grid;grid-template-columns:1fr 1fr;gap:24px;}

/* Slider Navigation */
.tg-hero-arrow{
  position:absolute;
  top:50%;
  z-index:60;
  transform:translateY(-50%);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  border:1px solid rgba(255,255,255,.55);
  border-radius:999px;
  background:#fff;
  color:#111;
  font-size:36px;
  line-height:1;
  cursor:pointer;
  box-shadow:0 12px 30px rgba(15,23,42,.20);
  transition:transform .18s ease,opacity .18s ease,background .18s ease,color .18s ease,border-color .18s ease;
}
.tg-hero-arrow:hover{transform:translateY(-50%) scale(1.04);}
.tg-hero-prev{left:clamp(16px,2vw,34px);}
.tg-hero-next{right:clamp(16px,2vw,34px);}
.tg-hero-dots{
  position:absolute;
  left:50%;
  bottom:clamp(16px,2vw,32px);
  z-index:65;
  display:flex;
  gap:10px;
  transform:translateX(-50%);
}
.tg-hero-dot{display:block;width:10px;height:10px;border:0;border-radius:999px;background:rgba(255,255,255,.45);padding:0;cursor:pointer;}
.tg-hero-dot.is-active{background:#fff;}
.tg-hero-mode-scroll .tg-hero-arrow,.tg-hero-mode-scroll .tg-hero-dots{display:none;}

@media(max-width:900px){
  .tg-hero-pro.tg-hero-mode-fade{overflow:hidden;min-height:auto;background:#111;}
  .tg-hero-inner{grid-template-columns:1fr!important;min-height:initial;}
  .tg-hero-mode-fade .tg-hero-slide{position:absolute;inset:0;display:block;opacity:0;visibility:hidden;pointer-events:none;}
  .tg-hero-mode-fade .tg-hero-slide.is-active{position:relative;opacity:1;visibility:visible;pointer-events:auto;z-index:2;}
  .tg-hero-mode-fade .tg-hero-slide:not(.is-active){height:0;min-height:0;overflow:hidden;}
  .tg-hero-mode-fade .tg-hero-slide.is-active .tg-hero-inner{min-height:initial;}
  .tg-hero-title{font-size:var(--tg-hero-title-size-tablet, clamp(2.125rem,6vw,3.25rem));}
  :where(.tg-hero-mockup){min-height:260px;}
  .tg-hero-mockup-left .tg-hero-copy,.tg-hero-mockup-left :where(.tg-hero-mockup){order:initial;}
}
@media(max-width:720px){
  .tg-hero-arrow{display:inline-flex;width:38px;height:38px;font-size:26px;top:auto;bottom:18px;transform:none;z-index:70;}
  .tg-hero-arrow:hover{transform:none;}
  .tg-hero-prev{left:22px;}
  .tg-hero-next{right:22px;}
  .tg-hero-dots{display:flex;bottom:28px;z-index:75;}
  .tg-hero-dot{width:8px;height:8px;}
  .tg-hero-mode-scroll .tg-hero-arrow,.tg-hero-mode-scroll .tg-hero-dots{display:none;}
}
@media(max-width:560px){
  .tg-hero-pad-compact .tg-hero-inner,.tg-hero-pad-comfortable .tg-hero-inner,.tg-hero-pad-spacious .tg-hero-inner{padding:24px;}
  :where(.tg-hero-buttons .tg-btn){width:100%;}
  :where(.tg-hero-pill){font-size:13px;}
  .tg-hero-title{font-size:var(--tg-hero-title-size-mobile, 2.5rem);}
}

/* v1.0.15: Core-independent editor/preview hardening */
.tg-hero-pro .tg-hero-mockup.tg-card{
  background:#fff;
  color:#111827;
  border-radius:28px;
  padding:28px;
  box-shadow:0 25px 70px rgba(15,23,42,.18);
}
.tg-hero-pro .tg-hero-arrow,
.elementor-editor-active .tg-hero-pro .tg-hero-arrow{
  z-index:999;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.tg-hero-pro .tg-hero-dots,
.elementor-editor-active .tg-hero-pro .tg-hero-dots{
  z-index:1000;
  opacity:1;
  visibility:visible;
  pointer-events:auto;
}
.elementor-editor-active .tg-hero-pro .tg-hero-slide.is-active{z-index:5;}


/* v1.0.17: Title size presets added. Inline Elementor CSS can override custom mode. */
.elementor-editor-active .tg-hero-pro .tg-hero-arrow,
.elementor-editor-active .tg-hero-pro .tg-hero-dot{ pointer-events:auto; }


/* v1.1.0: Elementor editor navigation/preview hardening */
.elementor-editor-active .tg-hero-pro{ overflow: visible; }
.elementor-editor-active .tg-hero-pro .tg-hero-arrow,
.elementor-editor-active .tg-hero-pro .tg-hero-dots{ display:flex !important; opacity:1 !important; visibility:visible !important; pointer-events:auto !important; }
.elementor-editor-active .tg-hero-pro .tg-hero-arrow{ z-index:9999 !important; }
.elementor-editor-active .tg-hero-pro .tg-hero-dots{ z-index:10000 !important; }
.elementor-editor-active .tg-hero-pro .tg-hero-mode-scroll .tg-hero-arrow,
.elementor-editor-active .tg-hero-pro.tg-hero-mode-scroll .tg-hero-arrow,
.elementor-editor-active .tg-hero-pro.tg-hero-mode-scroll .tg-hero-dots{ display:none !important; }


/* v1.1.3: fully widget-scoped local defaults. Hero styles only affect TG Hero Pro. */
.tg-widget-hero.tg-hero-pro{
  --tg-hero-primary: #e75925;
  --tg-hero-primary-hover: #cf481c;
  font-family: Poppins, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.tg-widget-hero .tg-hero-badge{
  display:inline-flex;
  align-items:center;
  width:auto;
  max-width:max-content;
  background:#f3f4f6;
  color:var(--tg-hero-primary);
  border-radius:999px;
  padding:8px 18px;
  font-family:Poppins,system-ui,sans-serif;
  font-weight:600;
}
.tg-widget-hero .tg-hero-title{
  font-family:Poppins,system-ui,sans-serif;
  font-weight:800;
  font-size:var(--tg-hero-title-size, clamp(2.25rem,3vw,4rem));
  line-height:var(--tg-hero-title-line-height,.95);
  letter-spacing:var(--tg-hero-title-letter-spacing,-.035em);
}
.tg-widget-hero.tg-hero-title-size-small .tg-hero-title{font-size:clamp(2rem,2.4vw,3rem);}
.tg-widget-hero.tg-hero-title-size-medium .tg-hero-title{font-size:clamp(2.25rem,2.8vw,3.5rem);}
.tg-widget-hero.tg-hero-title-size-large .tg-hero-title{font-size:clamp(2.5rem,3.2vw,4rem);}
.tg-widget-hero .tg-hero-sub{
  font-family:Poppins,system-ui,sans-serif;
  font-weight:400;
}
.tg-widget-hero .tg-hero-buttons .tg-btn{
  font-family:Poppins,system-ui,sans-serif;
  font-weight:600;
  border-radius:999px;
  box-shadow:none;
}
.tg-widget-hero .tg-hero-primary{
  background:var(--tg-hero-primary);
  border-color:var(--tg-hero-primary);
  color:#fff;
  box-shadow:none;
}
.tg-widget-hero .tg-hero-primary:hover{
  background:var(--tg-hero-primary-hover);
  border-color:var(--tg-hero-primary-hover);
  color:#fff;
  box-shadow:none;
}
.tg-widget-hero .tg-hero-secondary:hover{
  box-shadow:none;
}
.tg-widget-hero .tg-hero-mockup,
.tg-widget-hero .tg-hero-card{
  background:#fff;
  color:#111827;
  border-radius:28px;
  padding:28px;
  box-shadow:0 25px 70px rgba(15,23,42,.18);
}
.tg-widget-hero .tg-hero-mockup-title{
  font-family:Poppins,system-ui,sans-serif;
  font-weight:800;
}
.tg-widget-hero .tg-hero-mockup-text{
  font-family:Poppins,system-ui,sans-serif;
  font-weight:400;
}
.tg-widget-hero .tg-hero-arrow,
.tg-widget-hero .tg-hero-dots{
  z-index:1000;
}
@media(max-width:1024px){
  .tg-widget-hero.tg-hero-title-size-small .tg-hero-title{font-size:clamp(1.875rem,4vw,2.5rem);}
  .tg-widget-hero.tg-hero-title-size-medium .tg-hero-title{font-size:clamp(2rem,4.6vw,2.875rem);}
  .tg-widget-hero.tg-hero-title-size-large .tg-hero-title{font-size:clamp(2.125rem,5.2vw,3.25rem);}
}
@media(max-width:767px){
  .tg-widget-hero.tg-hero-title-size-small .tg-hero-title{font-size:2rem;}
  .tg-widget-hero.tg-hero-title-size-medium .tg-hero-title{font-size:2.25rem;}
  .tg-widget-hero.tg-hero-title-size-large .tg-hero-title{font-size:2.5rem;}
}


/* v1.2.0 Hero Media Engine */
.tg-widget-hero .tg-hero-media{
  position:relative;
  width:100%;
  overflow:hidden;
  border-radius:20px;
  background:#f3f4f6;
  aspect-ratio:16/9;
}
.tg-widget-hero .tg-hero-media-image{aspect-ratio:auto;background:transparent;}
.tg-widget-hero .tg-hero-video,
.tg-widget-hero .tg-hero-iframe,
.tg-widget-hero .tg-hero-embed iframe{
  display:block;
  width:100%;
  height:100%;
  min-height:260px;
  border:0;
  border-radius:inherit;
  background:#000;
}
.tg-widget-hero .tg-hero-video{object-fit:cover;}
.tg-widget-hero .tg-hero-embed,
.tg-widget-hero .tg-hero-embed > div{
  position:relative;
  width:100%;
  height:100%;
  min-height:260px;
}
.tg-widget-hero .tg-hero-embed iframe{
  position:absolute;
  inset:0;
}
.tg-widget-hero .tg-hero-media-placeholder{
  display:flex;
  align-items:center;
  justify-content:center;
  width:100%;
  min-height:260px;
  padding:24px;
  color:#6b7280;
  font-family:Poppins,system-ui,sans-serif;
  font-weight:600;
  text-align:center;
}
.tg-widget-hero .tg-hero-media:fullscreen,
.tg-widget-hero .tg-hero-media:fullscreen video,
.tg-widget-hero .tg-hero-media:fullscreen iframe,
.tg-widget-hero .tg-hero-media:-webkit-full-screen,
.tg-widget-hero .tg-hero-media:-webkit-full-screen video,
.tg-widget-hero .tg-hero-media:-webkit-full-screen iframe{
  width:100vw!important;
  height:100vh!important;
  max-width:none!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  background:#000!important;
  border-radius:0!important;
}
