/******************************************/
/** General                              **/
/******************************************/

:root {
   --primary: #EE4037;
   --secondary: rgba(173, 149, 232, 1);
   --borderPrimary: rgba(98, 50, 137, 1);
   --bgCard: rgba(23, 0, 67, 1);
   --black: #000000;
   --gray: #555555;
   --light: #f2f2f2;
   --white: #ffffff;
   --scroll-button: #EE4037;
}

*, *::before, *::after {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html, body {
   min-height: 100vh;
   min-height: 100dvh;
   color: var(--gray);
   font-family: "Roboto", sans-serif;
   background-color: #17004387;
   background:linear-gradient(#17004387, #17004387), url('/img/temp/background.png');
   background-position: center center;
   /* background-blend-mode: multiply; */
   background-size: 100% auto;
}

/******************************************/
/** Helpers                              **/
/******************************************/

/* Colors */

.text-primary {color: var(--primary) !important;}
.text-secondary {color: var(--secondary) !important;}

.hover\:text-primary:hover {color: var(--primary) !important;}

.bg-primary {background-color: var(--primary) !important;}

.hover\:bg-primary:hover {background-color: var(--primary) !important;}

/* Fonts */

.fs-7 {font-size: .95rem !important;}
.fs-8 {font-size: .8rem !important; letter-spacing: 0.2px;}
.fs-9 {font-size: .7rem !important;}

.lh-1 {line-height: 1 !important;}


/* Sizes */
.button {padding: 15px 25px;}

.w-fit {width: fit-content;}
.w-screen {width: 100vw; width: 100dvw;}
.h-screen {height: 100vh; height: 100dvh;}

/* weights */
.fw-extrabold {font-weight: 900 !important;}

.border-primary, .border-top {
    border-color: var(--borderPrimary) !important;
}


/* Animations */
.transition-03 {
   transition: all linear .3s;
   -o-transition: all linear .3s;
   -moz-transition: all linear .3s;
   -webkit-transition: all linear .3s;
}

/* scroll button */

#scroll-button {
   opacity: 0;
   transform: translateY(50px);
   right: 30px;
   bottom: 20px;
   z-index: 1101;
   transition: all 0.5s ease-out;
   border: 3px solid var(--white);
}

#scroll-button.show {
   opacity: 1;
   transform: translateY(0);
}


/******************************************/
/** Buttons                              **/
/******************************************/

.btn-light{
   --bs-btn-font-weight: 900;
   --bs-btn-color: var(--primary);
   --bs-btn-bg: var(--white);
   --bs-btn-border-color: none;
   --bs-btn-hover-color: var(--primary);
   --bs-btn-hover-bg: var(--light);
   --bs-btn-hover-border-color: none;
   --bs-btn-focus-shadow-rgb: var(--primary);
   --bs-btn-active-color: var(--primary);
   --bs-btn-active-bg: var(--light);
   --bs-btn-active-border-color: none;
}

.btn-primary {
   --bs-btn-font-weight: 700;
   --bs-btn-color: var(--white);
   --bs-btn-bg: var(--primary);
   --bs-btn-border-color: none;
   --bs-btn-hover-color: var(--white);
   --bs-btn-hover-bg: #d73734;
   --bs-btn-hover-border-color: #d73734;
   --bs-btn-focus-shadow-rgb: var(--primary);
   --bs-btn-active-color: var(--white);
   --bs-btn-active-bg: #d73734;
   --bs-btn-active-border-color: #d73734;
}

.bg-gradient-primary {
   position: relative;
   background: linear-gradient(90deg, #EE4037 1.88%, #87003B 51.56%, #170043 97.42%) !important;
   overflow: hidden;
   z-index: 1;
}

.bg-gradient-primary::before {
   content: "";
   position: absolute;
   top: 0;
   left: 0;
   right: 0;
   bottom: 0;
   background: linear-gradient(90deg, #170043 1.88%, #87003B 51.56%, #EE4037 97.42%);
   opacity: 0;
   transition: opacity 0.6s ease;
   z-index: -1;
}

.bg-gradient-primary:hover::before {
   opacity: 1;
}
.bg-gradient-primary:hover {
   box-shadow: none !important;
}

/* Garantir que o texto fique visível */
.bg-gradient-primary * {
   position: relative;
   z-index: 2;
}

.btn-outline-primary {
   --bs-btn-font-weight: 700;
   --bs-btn-color: var(--white);
   --bs-btn-hover-border-color: transparent;
   --bs-btn-active-border-color: transparent;
   position: relative;
   display: inline-block;
   overflow: hidden;
   background: transparent !important;
   border: 2px solid transparent;
   color: var(--white);
}

.btn-outline-primary::before {
   content: "";
   position: absolute;
   inset: 0;
   padding: 2px; /* border width */
   border-radius: inherit;
   background: linear-gradient(90deg,  rgba(238,64,55,1) 0%, rgba(135,0,59,1) 50%, rgba(43,170,226,1) 100%);
   /* background: linear-gradient(90deg, #EE4037, #87003B, #170043); */
   -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
   mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
   -webkit-mask-composite: xor; mask-composite: exclude;
   pointer-events: none;
}

/* gradient fill (below the masked border) */
.btn-outline-primary::after {
   content: "";
   position: absolute;
   inset: 0;
   border-radius: inherit;
   background: linear-gradient(90deg, #170043 1.88%, #87003B 51.56%, #EE4037 97.42%);
   opacity: 0;
   transition: opacity 320ms cubic-bezier(.2,.8,.2,1);
   z-index: 1;
   pointer-events: none;
}

/* ensure content sits above pseudo-elements */
.btn-outline-primary > *,
.btn-outline-primary span,
.btn-outline-primary svg { position: relative; z-index: 3; }

/* hover: show fill, hide border mask */
a.btn-outline-primary:hover::after { opacity: 1; }
a.btn-outline-primary:hover::before { opacity: 0; }

/* active/focus states also show filled background */
.btn-outline-primary:focus::after,
.btn-outline-primary:active::after { opacity: 1; }


.btn-outline-lightHover:hover{
background: linear-gradient(90deg, #170043 1.88%, #87003B 51.56%, #EE4037 97.42%);
color: #ffffff !important;
border-color: #EE4037 !important;
}




/* SERVIÇOS
---------------*/
#serviceTabs.nav-tabs .nav-item.show .nav-link, 
#serviceTabs.nav-tabs .nav-item .nav-link:hover,
#serviceTabs.nav-tabs .nav-link.active {
   border-color:transparent !important;
   background-color: transparent !important;
}
#serviceTabs.nav-tabs .nav-link.active::after {
   position: absolute;
   bottom:0;
   left: 0;
   content: '';
   z-index: 1;
   width: 100%;
   height: 6px;
   border-radius: 3px;
   background: linear-gradient(288.73deg, rgba(43, 170, 226, 0.8) -10.58%, rgba(135, 0, 59, 0.4) 43.57%, rgba(238, 64, 55, 0.7) 97.73%);
}


/* Contactos
---------------*/
.formContactos .form-control {
   display: block;
   width: 100%;
   padding: .75rem 1.4rem !important;
   font-size: 1rem;
   font-weight: 400;
   line-height: 1.5;
   color: #ffffff !important;
   background: transparent !important;
   border-radius: 1.6rem !important;
   transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
::placeholder { /* Standard syntax */
   color: #ffffff !important;
   opacity: 1; /* Ensures consistent color across browsers */
}
/* end ---*/



/* end ---*/


/******************************************/
/** Forms                                **/
/******************************************/

/* .form-select,
.form-control,
.input-group {
border-radius: 8px;
border: 1px solid #D9D9D9;
}

.input-group:active,
.input-group:focus,
.input-group:focus-within,
.form-select:active,
.form-select:focus,
.form-control:active,
.form-control:focus {
box-shadow: none;
border-color: var(--primary);
background-color: transparent;
}

.input-group.disabled,
.form-control:disabled,
.form-select:disabled {
border-color: #D9D9D9 !important;
background-color: #D9D9D9 !important;
}

.form-check-input {
min-width: 1em !important;
min-height: 1em !important;
}

.form-check-input:checked {
border-color: var(--primary) !important;
background-color: var(--primary) !important;
}

.form-check-input:focus {
box-shadow: none;
border-color: #D9D9D9 !important;
}

::placeholder {
opacity: 1;
color: var(--gray) !important;
}
::-ms-input-placeholder {color: var(--gray) !important;} */

/******************************************/
/** Empresa Card Animation              **/
/******************************************/

.empresaCard {
   transition: transform 0.3s ease;
}

.empresaCard:hover {
   transform: translateY(-5px);
}

.empresaCardBg {
   opacity: 0 !important;
   transition: opacity 0.4s ease;
}

.empresaCard:hover .empresaCardBg {
   opacity: 0.75 !important;
}

.empresaCardContent {
   opacity: 0;
   transform: translateY(20px);
   transition: opacity 0.4s ease, transform 0.4s ease;
   transition-delay: 0.1s;
}

.empresaCard:hover .empresaCardContent {
   opacity: 1 !important;
   transform: translateY(0);
}

.empresaCard:hover .empresaCardTitleBottom {
   opacity: 0 !important;
   transition: opacity 0.3s ease, transform 0.3s ease;
   transform: translateY(10px);
}

/* Accordion tweaks for .faqAccordion */
.faqAccordion .accordion-button::after {
   display: none; /* hide default bootstrap chevron (we use custom svgs) */
}

.faqAccordion .accordion-button {
   display: flex !important;
   justify-content: space-between !important;
   align-items: center !important;
}

/* SVG open/close toggling */
/* Heading icon (animates + -> -) */
.faqAccordion .heading-icon {
   display: inline-block;
   width: 18px;
   height: 18px;
   position: relative;
   right: 0 !important;
   /* margin-left: 0.5rem; */
   border: 3px solid #ffffff !important;
   padding: 10px !important;
   border-radius: 15px;
}

.faqAccordion .heading-icon::before,
.faqAccordion .heading-icon::after {
   content: '';
   position: absolute;
   left: 50%;
   top: 50%;
   width: 13px;
   height: 2px;
   background: #ffffff;
   transform-origin: center;
   transition: transform 0.25s ease, opacity 0.25s ease;
   transform: translate(-50%, -50%);
}

/* horizontal bar (always visible) */
.faqAccordion .heading-icon::before {
   transform: translate(-50%, -50%) rotate(0deg);
}

/* vertical bar (turns invisible when open) */
.faqAccordion .heading-icon::after {
   transform: translate(-50%, -50%) rotate(90deg);
}

/* When expanded, hide the vertical bar (so + becomes -) */
.faqAccordion .accordion-button:not(.collapsed) .heading-icon::after {
   opacity: 0;
   transform: translate(-50%, -50%) rotate(90deg) scaleY(0.2);
}

/* ensure small icon container doesn't collapse */
.faqAccordion .accordion-button > .heading-icon {
   flex-shrink: 0;
}

/* Slight inner padding tweak so content doesn't touch rounded edges */
.faqAccordion .accordion-button:not(.collapsed) > span {
   z-index: 2;
   margin-right: -3px;
}

/* Ensure collapsed content only hides the body, not the entire item */
.faqAccordion .accordion-item {
   display: block; /* keep header visible */
}

/* Apply gradient background to the whole accordion-item when open */
.faqAccordion .accordion-item.open {
   background: linear-gradient(288.73deg, rgba(43, 170, 226, 0.4) -10.58%, rgba(135, 0, 59, 0.4) 43.57%, rgba(238, 64, 55, 0.7) 97.73%);
   color: #ffffff !important;
   border: none !important; 
   border-radius: 20px;
   padding: 0.25rem; /* small padding so rounded background shows around header */
   margin: 1rem 0 !important;
}

.faqAccordion .accordion-item.open .accordion-button {
   background: transparent !important; /* let the item background show */
   margin: 0; /* ensure button aligns with item edges */
}

.faqAccordion .accordion-item.open .accordion-body {
   color: #ffffff;
}

/* Navbar link hover underline animation (3px white bar) */
.navbar-nav .nav-link {
   position: relative;
   overflow: visible;
}

.navbar-nav .nav-link::after {
   content: "";
   position: absolute;
   left: 0;
   right: 0;
   bottom: 0px; /* keep a small gap from text; adjust if needed */
   height: 3px;
   background: #ffffff;
   transform: scaleX(0);
   transform-origin: left center;
   transition: transform 220ms cubic-bezier(.4,0,.2,1), opacity 180ms ease;
   opacity: 0.95;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link:focus::after,
.navbar-nav .nav-link.active::after {
   transform: scaleX(1);
   opacity: 1;
}

/* Ensure offcanvas/stacked layout keeps same spacing — align bottom position on small screens */
@media (max-width: 576px) {
   .navbar-nav .nav-link::after {
      bottom: 12px;
   }
}






/* Decorative 'pills' used in hero (performant, mobile friendly, reduced-motion friendly) */
.decor-pill {
   position: absolute;
   border-radius: 999px;
   pointer-events: none;
   will-change: transform, opacity;
   transition: transform 600ms cubic-bezier(.2,.8,.2,1), opacity 450ms ease;
   transform: translateZ(0); /* promote to its own layer */
   -webkit-transform: translateZ(0); /* promote to its own layer */
}

/* Size variants */
.decor-pill--xs { width: 18px; height: 18px; }
.decor-pill--sm { width: 26px; height: 26px; }
.decor-pill--md { width: 40px; height: 40px; }
.decor-pill--lg { height: 26px; border-radius: 999px; }
.decor-pill--bar { height: 26px; border-radius: 999px; }

/* Color utilities (keep semantic names minimal) */
.decor-pill--green { background: #45AC4B; opacity: .65; }
.decor-pill--white { background: #FFFFFF; opacity: 1; }
.decor-pill--red { background: #EE4037; opacity: .65; }
.decor-pill--purple { background: #623289; opacity: .45; }
.decor-pill--blue { background: #2BAAE2; opacity: .9; }

/* Animation presets (use translateY or subtle scale for performance) */
.decor-anim-float { animation: dp-float 6s ease-in-out infinite; }
.decor-anim-drift { animation: dp-drift 8s linear infinite; }
.decor-anim-pulse { animation: dp-pulse 3.2s ease-in-out infinite; }
.decor-anim-slidein { animation: dp-slidein 700ms cubic-bezier(.2,.8,.2,1) both; }

/* Stagger helpers */
.decor-delay-0 { animation-delay: 0s; }
.decor-delay-1 { animation-delay: .25s; }
.decor-delay-2 { animation-delay: .5s; }
.decor-delay-3 { animation-delay: .8s; }

/* Keyframes */
@keyframes dp-float {
   0% { transform: translateY(0) translateZ(0); }
   50% { transform: translateY(-8px) translateZ(0); }
   100% { transform: translateY(0) translateZ(0); }
}
@keyframes dp-drift {
   0% { transform: translateY(0) translateX(0) rotate(0deg); }
   50% { transform: translateY(-6px) translateX(6px) rotate(2deg); }
   100% { transform: translateY(0) translateX(0) rotate(0deg); }
}
@keyframes dp-pulse {
   0% { transform: scale(1); opacity: 0.9; }
   50% { transform: scale(1.08); opacity: 1; }
   100% { transform: scale(1); opacity: 0.9; }
}
@keyframes dp-slidein {
   from { transform: translateY(10px); opacity: 0; }
   to { transform: translateY(0); opacity: 1; }
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
   .decor-anim-float,
   .decor-anim-drift,
   .decor-anim-pulse,
   .decor-anim-slidein {
      animation: none !important;
      transition: none !important;
   }
}

/* Mobile adjustments: hide larger bars and reduce visual noise */
@media (max-width: 768px) {
   .decor-pill--md { width: 28px; height: 28px; }
   .decor-pill--lg, .decor-pill--bar { display: none; }
   .decor-pill { opacity: .92; }
}

/* Provide a small helper for absolute placement via inline style for top/left/right/bottom */
.decor-pill[data-hidden-on-mobile="true"] {
   display: block;
}
@media (max-width: 576px) {
   .decor-pill[data-hidden-on-mobile="true"] { display: none !important; }
}


