/* #region Variables*/
:root{
    --orange:#aa250b;
    --white: rgb(255, 255, 255); 
         /* #region ns Fonts */
         --ns-font-family:"DM Sans", sans-serif;
         --ns-font-size-small : calc(6px + 0.5vw);
         --ns-font-size-contact : calc(6px + 1vw);
         --ns-font-size : calc(6px + 0.9vw);
         --ns-font-size-plus : calc(10px + 1vw);
         --ns-font-size-h1: 3rem;
         --ns-font-size-h2: 2rem;
         --ns-font-size-statement: 1.7rem;
         --ns-font-size-h1-mobile: 2.5rem;
         --ns-font-size-h2-mobile: 1rem;
         --ns-fontweight-normal: 500;
         --ns-fontweight-mid:700;
         --ns-fontweight-bold:900;
         /* #endregion ns Fonts */
}
/* #endregion Variables*/

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
  }

p{
  font-size: var(--ns-font-size);
  color: var(--orange);
}

.section-heading h3{
  font-size: var(--ns-font-size-h2);
  color: var(--orange);
  padding-left: 20px;
}

.icon-heading h3{
  font-size: var(--ns-font-size-h2);
  color: var(--orange);
}

.heading{
  background-color: silver;
}

/* #region Landing Page */


  .container {
    display: flex;
    height: 100vh;
    /*These two properties below play with width of container*/
    max-width: 1600px;
    margin: auto;

  }

  .left, .right {
    flex: 1; /* 50% each */
    padding: 20px;
  }

  .left {
    background-color: var(--white);
  }

  .right {
    background-color: var(--white);
    /* color: black; */
  }

  /* Mobile layout */
  @media (max-width: 600px) {
    .container {
      flex-direction: column;
      height: 100vh;
    }

    .right {
      order: -1; /* 👈 moves right section to top */
      height: 80%;
    }

    .left {
      height: 80%;
    }
  }

  /* #endregion Landing Page */

  /* #region Contact Modal Layout */
  .container-modal {
    display: flex;
    height: 100%;
  }

  .left-modal, .right-modal {
    flex: 1; /* 50% each */
    padding: 5px;
  }

  .left-modal {
    background-color: white;
    width: 100%;        /* must have a width */
    /* margin: 0 auto;  */
  }

  .right.modal {
    background-color: white;
    color: black;
  }


  .contact-card-left{
    text-align: left;
    padding: 5px;
  }

  .contact-card-right{
    text-align: left;
    padding: 5px;
    /* background-color: #aa250b; */
    text-align: center;
    height: 100%; 
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;  
  }

  .modal-content .container-modal .left-modal .contact-card-left p{
    font-size: var(--ns-font-size-contact);
    color: black;
    line-height: 0.5;
  }

  .accreditation{
    background-color: #aa250b;
    text-align: center;
    padding: 4px;
    border-radius: 10px;
  }

  .accreditation img{
    cursor: pointer;
  }


  /* Mobile layout */
  @media (max-width: 600px) {
    .container-modal {
      flex-direction: column;
    }

    .right-modal {
      order: -1; /* 👈 moves right section to top */
    }
  }

   /*END: Contact Modal Layout */

  /* Landing Page Setup */
  .landing-statement-wrapper{
    margin-top: 30%;
    margin-bottom: 30%;
    text-align:  right;
}
.landing-statement-wrapper img{
    max-width: 85%;
}

.landing-statement-wrapper h1{
    color: var(--orange);
    font-size: var(--ns-font-size-statement);
    padding-top: 3rem;
    padding-bottom: 2rem;
}

  /* #endregion Landing Page Setup */

  /* #region Buttons and Modal Popups */

   /* Button group (top-right) */
   .button-group {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1100;
  }

  .btn {
    padding: 10px 15px;
    background-color: #aa250b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: var(--ns-font-size-contact);
  }

  /* Overlay */
  .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
  }

  /* Modal (bottom-right) */
  .modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 70vw;
    /* max-width: 600px; */
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    padding: 20px;

    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    z-index: 1200;
  }

  /* Active state */
  .active .overlay {
    opacity: 1;
    visibility: visible;
  }

  .active .modal {
    opacity: 1;
    transform: translateY(0);
  }

  /* Content switching */
  .modal-content {
    display: none;
  }

.modal-content h3{
    color: var(--orange);
    font-size: var(--ns-font-size-h2);
}

.modal-content h2{
    color: var(--white);
}

.modal-content p{
    color: var(--orange);
    font-size: var(--ns-font-size);
}

.modal-content ul{
  color: var(--orange);
  font-size: var(--ns-font-size);
}

  .modal-content.active {
    display: block;
  }

  /* Close button */
  .close-btn {
    float: right;
    cursor: pointer;
    font-size: 18px;
    font-style: bold;
    border: none;
    background: none;
    color: var(--orange);
  }

  /* #endregion Buttons and Modal Popups */

  /* #region Service Icons */

     .icon-row {
        display: flex;
        flex-wrap: wrap; /* allows multiple rows */
        gap: 20px;
        justify-content: center;
      }
    
      .icon-item {
        flex: 1 1 120px; /* grow, shrink, min width */
        max-width: 150px;
        text-align: center;
      }

      .icon-item h3{
        font-size: 1.5rem;
      }
    
      .icon-item img {
        width: 50px;
        height: 50px;
        object-fit: contain;
        margin-bottom: 9px;
        transition: transform 0.2s ease;
      }
    
      .icon-item:hover img {
        transform: scale(1.1);
      }
    
      .icon-text {
        color: #aa250b;
      }
    
      .nsfont{
        font-size: 40px;
        cursor: pointer;
        color: #aa250b;
      }
    
    
      /* Optional: make icons larger on bigger screens */

      @media (max-width: 480px) {

      }

      @media (min-width: 768px) {
        .icon-item {
          flex: 1 1 140px;
        }

      }

      @media (max-width: 600px){
        .icon-item h3{
          font-size: 1rem;
        }

        .icon-item img {
          width: 20px;
          height: 20px;
          object-fit: contain;
          margin-bottom: 9px;
          transition: transform 0.2s ease;
        }
        .nsfont{
            font-size: 20px;
            cursor: pointer;
            color: #aa250b;
          }

      }
    
      @media (min-width: 1200px) {
        .icon-item {
          flex: 1 1 160px;
        }
        .nsfont{
            font-size: 60px;
            cursor: pointer;
            color: #aa250b;
          }
    }
  /* #endregion Service Icons */

/* #region - Materials */

.materials{
  height: auto;
  background-color:var(--orange);  
  padding-top: 2rem;
}

.materials .section-heading h3{
color: var(--white);
}

.materials p{
color: var(--white);
}

.materials ul{
color: var(--white);
}
/* #endregion - Services */

/* #region - News */
.news{
height: auto;
background-color:var(--white);  
padding-top: 2rem;
}
/* #endregion - News */

/* #region - Services */
.services{
  height: auto;
  background-color:var(--white);  
  padding-top: 2rem;
}

.service-wrapper{
  max-width: 1000px;
  padding: 1rem;
  margin: auto;
}

.service-text{
  display:grid;
  gap: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(550px, 4fr));
}

.service-img-wrapper{
  max-width: 1200px;
  padding: 1rem;
  margin: 3rem;
}
.service-img-pics{
  display:grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card-header{
  color: var(--orange);
  font-size: var(--ns-font-size-h2);
  line-height: 0.2;
}

.card{
  /* border-color: var(--orange); */
  /* border-width: 2px;
  border-style: groove; */
  border-radius: 10px;
  padding: 10px;
  color: var(--orange);
  padding: 20px;
}

/* #endregion - Services */


/* #region Media Queries */


  @media (max-width: 300px) and (min-width: 700px) {
/* Needs tweaked not working */

    
  }

  @media (min-width:600px){
    .btn {
      padding: 10px 15px;
      background-color: #aa250b;
      color: #fff;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 20px;
      height: 3rem;
    }
    
  }

  @media (max-width:700px){
      .news{
        height:60vh;
      }
  }


/* #endregion Media Queries */