:root {
  /**  @font family declaration */
  --rs-ff-body: "Space Grotesk", sans-serif;
  --rs-ff-title: "Space Grotesk", sans-serif;
  --rs-ff-p: "Space Grotesk", sans-serif;
  --rs-ff-fontawesome: "Font Awesome 6 Pro";
  --rs-ff-remixicon: "remixicon";
  /** @color declaration */
  --rs-white: #FFFFFF;
  --rs-black: #1F1F1F;
  --rs-light: #eee;
  --rs-theme-red: #3B719F;
  --rs-theme-blue: #005EB8;
  --rs-theme-light-blue: #0D80CE;
  --rs-theme-green: #023B4A;
  --rs-theme-light-green: #507A7C;
  --rs-theme-yellow: #F7C600;
  --rs-theme-deep-blue: #3B37FD;
  --rs-theme-cyan: #00CAA4;
  --rs-theme-medium-blue: #1455AA;
  --rs-theme-medium-yellow: #FFCA3B;
  --rs-text-primary: #616161;
  --rs-text-secondary: #CBCCCD;
  --rs-text-tertiary: #142340;
  --rs-title-primary: #1F1F1F;
  --rs-title-secondary: #152A40;
  --rs-bg-primary: #F7F7F7;
  --rs-border-primary: rgba(0, 0, 0, 0.05);
  --rs-border-secondary:rgba(102, 102, 102, 0.2);
  --rs-border-tertiary: #152A40;
  --rs-placeholder: rgba(30, 30, 30, 0.4);
  --rs-rgba-1: rgba(255, 255, 255, 0.07);
  --rs-rgba-2: rgba(255, 255, 255, 0.05);
  --rs-rating-color: #FFC62D;
  --accent-primary: #69696F;
  --accent-secondary: #71797E;
  /** @font weight declaration */
  --rs-fw-normal: normal;
  --rs-fw-thin: 100;
  --rs-fw-elight: 200;
  --rs-fw-light: 300;
  --rs-fw-regular: 400;
  --rs-fw-medium: 500;
  --rs-fw-sbold: 600;
  --rs-fw-bold: 700;
  --rs-fw-ebold: 800;
  --rs-fw-black: 900;
  /** @font size declaration */
  --rs-fs-body: 18px;
  --rs-fs-p: 17px;
  --rs-fs-h1: 68px;
  --rs-fs-h2: 52px;
  --rs-fs-h3: 38px;
  --rs-fs-h4: 28px;
  --rs-fs-h5: 24px;
  --rs-fs-h6: 20px;
  --rs-fs-b1: 14px;
  --rs-fs-b2: 16px;
  --rs-fs-b3: 18px;
  --rs-fs-b4: 22px;
}


/*Home Section start*/

#home h2 {
  font-size: 24px;
}
#home h2, #home small {
  color: var(--rs-light);
  background-color: var(--accent-primary);
  border-radius: 8px;
  display: inline;
  padding: 2px 8px;
  line-height: 1.7;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
#home small{
  background-color: var(--accent-primary);
}
#home hr {
  border: none; 
  border-top: 2px solid var(--rs-white); 
  margin: 2rem 0 1.5rem 0; 
  width: 100%;
  max-width: 621px;
}
#home .rs-banner-btn a:nth-of-type(2) {
  background-color: var(--accent-secondary);
  color: var(--rs-light);
  width: auto;
  overflow: hidden;
  
}
#home .rs-banner-btn a:nth-of-type(2):hover {
  filter: brightness(125%);
}
#home .rs-banner-btn a:nth-of-type(2) .icon-box svg {
    fill: var(--rs-light);
}
#home .button-group {
  display: flex;
  gap: 1rem; /* spacing between buttons */
}
#home .button-group a {
  flex: 1;              /* each button takes equal width */
  text-align: center;   /* center text inside */
}
/*Hero bg adjustment*/
#home .rs-banner-bg-thumb {
  background-position: 50% 75%;
  filter: brightness(0.3);
}
/*Home Section end*/

/*Services section start*/
#services h5 a, #services img{
  cursor: default;
}
#services .rs-services-item a{
  transition: all 0.3s 0s ease-out;
}
#services .rs-services-item:hover a{
  color: var(--rs-theme-red);
}
#services .rs-services-item, #services h5 a, #services img{
  cursor: grab;
}
#services .rs-services-item:active, #services h5 a:active, #services img:active{
 cursor: grabbing;
}
#services .rs-services-slide-wrapper{
  margin: auto;
}
/*Services section end*/
/*Standards & Compliance + Safety sections start*/
#standards-compliance {
  padding-bottom: 30px;
}
#standards-compliance .container, #safety .container{
padding-left: 130px;
padding-right: 130px;
}
#standards-compliance h5
{
  margin-top: 20px;
}
#standards-compliance .rs-work-step-item{
  padding-top: 35px;
  padding-bottom: 35px;
}
#standards-compliance .rs-work-step-wrapper {
  gap: 0;
}
.rs-portfolio-details-content .rs-portfolio-details-working-step-wrapper .rs-work-step-number::before  {
    background: var(--rs-theme-red);
}
#standards-compliance {
  padding-top: 80px;
  padding-bottom: 70px;
}
#safety .safety-wrapper{
  margin-top: 0;
}
#safety .rs-portfolio-details-content .rs-list-item ul{
  grid-template-columns: auto auto;
}
#safety .rs-portfolio-details-thumb {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente */
    min-height: 400px;       /* Ajusta esta altura según necesites */
}
#safety .rs-portfolio-details-thumb img {
    max-width: 370px;
    display: block;    
    margin: 0 auto;
}
#safety .thumb-container{
  margin-top: 0;
}
.rs-portfolio-details-content .rs-list-item ul li svg {
    min-width: 20px;
    min-height: 20px;
    fill: var(--rs-theme-red);
}
/*Standards & Compliance + Safety sections start*/
/* Capability Statement CTA section start */
#capability-statement-cta .rs-work-step-two .rs-work-step-item {
    display: grid;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: center;
}
#capability-statement-cta .section-title-space {
    margin-bottom: 15px;
}
#capability-statement-cta .rs-work-step-bg-thumb{
    background-position: 50% 25%;
  filter: brightness(0.4);
}
#capability-statement-cta h2 {
  color: var(--rs-white);
}
#capability-statement-cta p {
  color: var(--rs-light);
}
#submit-cta-btn-container{
  margin-top: 37px;
}

/*Standards & Compliance + Safety sections end*/
/* Contact section start */
.rs-contact-nine .rs-contact-item:hover .rs-contact-icon {
    background: var(--rs-theme-red);
}

.rs-contact-ten .rs-contact-form {
    border-top: 4px solid var(--rs-theme-red);
}
.rs-btn.has-theme-orange {
    background: var(--rs-theme-red);
}
.rs-contact-ten .rs-contact-btn .rs-btn:hover {
    background: var(--rs-theme-red);
     filter: brightness(125%);
}
.rs-contact-ten .rs-contact-input input:focus, .rs-contact-ten .rs-contact-input textarea:focus {
    border-color: var(--rs-theme-red);
}
#contact-us .rs-contact-content a:hover {
    color: var(--rs-theme-red);
}
#contact-us .rs-contact-content p:hover{
    color: var(--rs-theme-red);
    cursor: default;
}
/* Ensure the form is ALWAYS visible */
#contact-us-form {
    display: block !important;
    opacity: 1 !important;
}

/* Hide the field */
#website { display: none !important; }


textarea {
    resize: none;
}



/* Base button transition */
#contact-form button[type="submit"] {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Success state style */
.btn-success {
    background-color: #28a745 !important; /* Green */
    border-color: #28a745 !important;
    color: white !important;
    transform: scale(1.02); /* Slight "pop" effect */
}

/* Optional: Add a "pulse" when it hits success */
@keyframes success-pulse {
    0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}

.btn-success {
    animation: success-pulse 1.5s infinite;
}
/* Hide the reCAPTCHA v3 sticky badge */
.grecaptcha-badge { 
    visibility: hidden; 
}

/* Contact section end  */

/*Media Queries for Responsiveness*/
@media(max-width:1199px) and (min-width: 768px){
  #home .button-group a{
    font-size: 14px;
}
}
@media (max-width: 359px)
{
  /* 1. Ensure the wrapper allows wrapping if items get too tight */
.rs-contact-wrapper {
    display: flex;
    flex-wrap: wrap; 
    gap: 20px; /* Adjust spacing between items */
    width: 100%;
}

/* 2. Fix the specific item that is breaking the layout */
.rs-contact-item {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    
    /* Use flex-basis instead of a hard 'width' */
    flex: 1 1 300px; 
    
    /* This ensures it never grows wider than the screen */
    width: 100%;
    max-width: 100%; 
    
    /* Critical for padding not to 'push' the width */
    box-sizing: border-box; 
    
    /* Prevent long emails from stretching the box */
    word-break: break-all; 
}

/* 3. Handle the SVG icons so they don't shrink weirdly */
.rs-contact-icon {
    flex-shrink: 0; /* Keeps the icon size stable */
    margin-right: 15px;
}

/* 4. Ensure the text inside also wraps */
.rs-contact-content {
    min-width: 0; /* Flexbox fix for text truncation/wrapping */
}
}/* When screen width is 991px or less */
 @media (max-width: 991px) { 
      /*Standards & Compliance queries*/
        #standards-compliance .container, #safety .container{
        padding-left: 15px;
        padding-right: 15px;
}
#standards-compliance h5
{
  font-size: 18px;
}
#standards-compliance {
    padding-bottom: 40px;
}
#safety .rs-portfolio-details-content .rs-list-item ul{
  grid-template-columns: auto;
}
}   
/* Industries served section start  */
#industries-served button.active {
    background: var(--rs-theme-red);
    color: var(--rs-white);
}
#industries-served button:hover {
    background: var(--rs-theme-red);
    color: var(--rs-white);
}
#industries-served img {
 width: 470px;
  height: 335px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
  object-fit: cover; 
  object-position: 50% 90%;
}

/* Industries served section end  */
@media (max-width: 1201px) and (min-width: 992px) { 
    #industries-served button {
    font-size: 14px;
}
}  
@media (max-width: 512px) { 
    #industries-served button {
    font-size: 14px;
}
}  
@media (max-width: 421px) { 
    #industries-served button {
    justify-content: center;
}
}  

/* When screen width is 768px or less */
 @media (max-width: 768px) { 
    /*Hero queries*/
    .button-group { 
        flex-direction: column; /* stack buttons vertically */ 
    }
    .button-group a {
        width: 100%; /* make them full width */ 
    } 
}
 /* When screen width is between 1200px and 1366px */
@media (min-width: 1201px) and (max-width: 1366px) { 
    .rs-services-title {
        font-size: 18px;
    }
}  
    /* When screen width is 991px or more */
    @media (min-width: 991px) { 
    /*Services queries*/
        .rs-services-slide-wrapper{
        margin: 10rem auto;
        }
}   
 @media (max-width: 480px) { 
      #safety .rs-portfolio-details-thumb {
        min-height: fit-content;       /* Ajusta esta altura según necesites */
}
}
    /* When screen width is 327px or or less */
 @media (max-width: 328px) { 
#industries-served button {
   font-size: 12px;
}
}

@media (max-width: 215px) { 
#industries-served button {
   font-size: 8px;
}
}
    
