/* #region Variables*/
:root{
    --orange:#aa250b;
    --white: rgb(255, 255, 255); 
    --silver: silver;
         /* #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.8vw);
         --ns-font-size-plus : calc(16px + 1vw);
         --ns-font-size-h1: 3rem;
         --ns-font-size-h2: 2rem;
         --ns-font-size-h3: 1.6rem;
         --ns-font-size-statement: 1.2rem;
         --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;
    padding: 0;
    font-family: "DM Sans", sans-serif;
}

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

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


.product-description{
  width: 80%;
  height: auto;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.mobile-image{
  display:none;
}

#rotateMessage {
  display: none; /* Initially hidden */
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 10px;
  font-size: 18px;
  text-align: center;
  z-index: 9999;
}

/* #region Landing Page */


  .container {
    display: flex;
    height: 100vh; 
    overflow: hidden;
    justify-content: center; /*  horizontal centering */
    flex-wrap: wrap;         /* allows items to move to next row */
    gap: 15px;
  }

  .container .left img{
    height: 100%;
    width: 100%;
  }

  .container-p {
    display: flex;
    height: 30vh; 
    overflow: hidden;
    justify-content: center; /* horizontal centering */
   /* align-items: center;      vertical alignment */
    flex-wrap: wrap;         /* allows items to move to next row */
    gap: 15px;
  }

  .left, .right {
    flex: 1 1 150px;
    max-width: 100%;
    min-width: 360px;
    max-height: 100vh;
  }

  .left {
    background-color: transparent;
  }

  .right {
    background-color: transparent;
    display: flex;
    justify-content: center; /* horizontal */
    align-items: center;     /* vertical */
  }

  .left-p, .right-p {
    flex: -1; /* 50% each */
  }
/* #endregion Landing Page */


/* #region About Us - Accreditation */
.accreditation{
  position: absolute;

  bottom: 0;

  left: 0;

  width: 99%;
  margin: 4px;
  background-color: #aa250b;
  text-align: center;
  padding: 2px;
  border-radius: 10px;
}

.modal-content .accreditation img{
  cursor: pointer;
  height: 60px;
}
/* #endregion About Us - Accreditation*/

/* #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 */
  }

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

  .contact-card-left p{
    line-height: 1px;
  }

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

  .contact-card-right{
    padding: 5px;
    text-align: center;
    height: 85%; 
    display: flex;
    justify-content: center; 
    align-items: center;  
  }

  .map{
    width:550px;
    height:300px;
  }


  /* Mobile layout */
 
   /*END: Contact Modal Layout */

  /* Landing Page Setup */


.landing-statement-wrapper{
  text-align:  right;
  padding-right: 15px;
}


.landing-statement-wrapper img{
    max-width: 85%;
    padding-top: 120px;
    padding-left: 20px;
}

.landing-statement-wrapper-p img{
    max-width: 45%;
    padding-top: 0px;
    padding-left: 20px;
}
.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 */

.logo-width{
  padding-top: 100px;
  width: 60%;
}

.button-group {
    position: fixed;
    top: 40px;
    right: 20px;
    gap: 10px;
    z-index: 1100;
    flex-wrap: wrap;
}

.button-group-p {
    position: fixed;
    top: 40px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 1100;
}

.btn {
    padding: 0.8rem 2px;
    background-color: #aa250b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    width: 180px;
}

.btn-p {

    padding: 10px 15px;
    background-color: #aa250b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    min-width: 200px;
}

  /* Modal (bottom-right) */
  .modal {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60vw;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    padding: 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    z-index: 1200;
  }

  .modal.hidden{
    z-index: -1;
  }

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

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

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


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

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

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

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

.modal-content.active {
    display: block;
    /* max-height: 80vh; */
}

.news-image{
  width: 100%;
  height: 50vh;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.news-image img{
  width: 50%;
}
  /* Close button */
.close-btn {
    float: right;
    cursor: pointer;
    font-size: 18px;
    font-style: bold;
    border: none;
    background: none;
    min-width: 100px;
    color: var(--orange);
}

  /* #endregion Buttons and Modal Popups */

  /* #region product Icons */

      .nsfont{
        font-size: 40px;
        color: #aa250b;
        padding-right: 10px;
      }
      .nsfont-bespoke{
        height: 2.5rem;
        color: #aa250b;
        padding-right: 10px;
      }

      .nsfont-icon{
        display: flex;
        align-items: center;
        gap:10;
      }

  /* #endregion product Icons */

/* #region - Materials */

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

.materials .product-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 Products Page Styling */


/* #region  product-cards */
.product-card{
  border-radius: 10px;
  padding: 10px;
  color: var(--orange);
  padding: 20px;
}

.product-card-header{
  color: var(--orange);
  font-size: var(--ns-font-size-h3);
  overflow-wrap: break-word;
}

.product-card p{
    font-size: var(--ns-font-size-statement);
    color: var(--orange);
}

.product-card .image{
  width: 300px;
  height: 300px;
  object-fit: contain;
  border-radius: 10px;
  border-color: var(--orange);
  border-width: 5px;
  border-style: solid;
}
/* #endregion Product Cards */

/* #endregion Products Page Styling */


/* #region Media Queries */

@media (max-width: 395px) {

  .landing-statement-wrapper img{
    max-width: 65%;
  }

  .right {
    order: -1; /* 👈 moves right section to top */
    height: 40%;
    padding-top: 10px;
  }

  .left {
    height: 30%;
    padding-top: 5%;
    padding-bottom: 5px;
    margin: auto;
  }

  .btn {
    padding: 0.6rem 0.4px;
    background-color: #aa250b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.7rem;
    width: 140px;
}
}

@media (max-width: 450px) {

  .button-group {
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 10px;
    z-index: 1100;
    flex-wrap: wrap;
    flex-shrink: 0;
    top: 10px;
    right: 0px;
  }


  .landing-statement-wrapper img{
    max-width: 85%;
    padding-top: 10px;
    padding-left: 0px;
    padding-bottom: 5px;
  }

  .right {
    order: -1; /* 👈 moves right section to top */
    height: 40%;
    padding-top: 160px;
  }

  .left {
    height: 30%;
    padding-top: 5%;
    padding-bottom: 5px;
    margin: auto;
  }
}

@media (max-width:600px){
  .container {
    justify-content: center;
    height:95vh;
  }

  .container-p {
    height: 30vh; 
    width: 90vw;
    justify-content: right; /* horizontal centering */

  }

  .contact-card-left p{
    line-height: 0.2px;
  }

  .landing-statement-wrapper-p img{
    max-width: 75%;
    padding-left: 20px;
    padding-top: 90px;
}
  .container-modal {
    flex-direction: column;
  }



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

  .modal{
    display: flex;
    width:82vw;
    flex-direction: column;
    max-height: 80vh;
  }

  .modal-content{
    overflow-y: auto;
    height: auto;
  }

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

#content1{
  overflow-y: auto;
  height: 70vh;
}

  .accreditation{
    position: relative;
    bottom: 0;
    left: 0;
    width: auto;
    background-color: #aa250b;
    text-align: center;
    height: 120px;
    border-radius: 10px;
  }

/*   #content2, #content4, #content5{
      min-height: 80vh;
  }
 */
  .nsfont{
    font-size: 20px;
    cursor: pointer;
    color: #aa250b;
  }

  .button-group {
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 10px;
    z-index: 1100;
    flex-shrink: 0;
  }

   .button-group-p {
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 10px;
    z-index: 1100;
    flex-shrink: 0;
} 

  .right {
    order: -1; 
    flex: 1 1 45%;
  }
  
  .left {
    flex: 1 1 45%;
  }


  .news-image img{
    width: 80%;
  }

  .desktop-image {
    display: none;
  }

  .mobile-image {
    display: block;
    border-radius: 10px;
  }

  .landing-statement-wrapper{
    justify-content: center;
    align-items: center; 
    padding-top: 25%;
  }
  .landing-statement-wrapper img{
    max-width: 85%;
  }

}

@media (max-width: 750px) {

  .landing-statement-wrapper{
    /*This centers the Networksteels logo and text */
      text-align:  center;
  }

  .landing-statement-wrapper img{
    /* This keeps a margin between logo and buttons */
      margin-top: 20px;
  }

  .desktop-image {
    display: none;
  }

  .mobile-image {
    display: block;
    border-radius: 10px;
  }

  .right {
    order: -1; /* 👈 moves right section to top */
    flex: 1 1 45%;
  }
  .left {
    flex: 1 1 45%;
  }
}

@media (max-width:900px){

  .button-group {
    justify-content: center;
    align-items: center;
    display: flex;
    gap: 10px;
    z-index: 1100;
    flex-wrap: wrap;
    flex-shrink: 0;
    padding-left: 2px;
  }

  .map{
    width:350px;
    height:200px;
  }
}

/* #region Mobile Landscape Alert */
@media (orientation: landscape) {
  @media  (max-height: 500px) {
  /* Styles for screens with height between 400px and 500px */
    #rotateMessage {
      display: block;
    }
  }

  @media (min-height:700){
    #rotateMessage {
        display: none;
      }
    }
}
/* #endregion Mobile Landscape Alert */

/* #endregion Media Queries */


