@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* @import url("https://fonts.googleapis.com/css2?display=swap&amp;family=Noto+Sans%3Awght%40400%3B500%3B700%3B900&amp;family=Work+Sans%3Awght%40400%3B500%3B700%3B900"); */

/* Base styles (mobile) */
html {
    box-sizing: border-box;
    font-size: 18px;
    scroll-behavior: smooth;
    /* font-family: "Space Grotesk", "Noto Sans", sans-serif; */
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

section, #top {
  scroll-margin-top: 5rem; 
}

.body {
    padding: 1rem;
}

#home {
  width: 100%;
  height: 35vh; /* Resize with screen */
  background-image: linear-gradient(0deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0) 25%),
                    url("/files/Site_Plan_Cropped.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: auto; /* Keep original image size */
  overflow: hidden; /* Hide the bottom if it overflows */
  border-radius: 0.5rem;
  margin: 5rem 0 2rem 0;
}

#navbar {
  background: white;
  padding: 1rem 1rem 0rem 1rem;
}

.blue-heading {
  color: #3c8cc8;
  font-size: 1.3rem;        
  font-weight: 700;      
  line-height: 1.25;    
  letter-spacing: -0.015em;
  text-align: left;
  flex: 1;        
}

.logo-size {
  width: 7.2rem;
  height: 1.8rem;
}

.nav-link.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid #121416;
  color: #121416;
  text-decoration: none;
}

.nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 3px solid transparent;
  transition: border-color 0.2s ease;
  color: #6a7581;
  text-decoration: none; 
  letter-spacing: 0.015em;
  line-height: 1.5;
  font-weight: 600;
}

.nav-link:hover {
    border-color: #6a7581;
}

.my-box:focus, .nav-link:hover:focus, .nav-link.active  {
  border-color: #121416;
}

.sections {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.blog-sections {
  margin-top: 4rem;
}

.projects {
  display: grid; 
  grid-template-columns: repeat(2,1fr);
  gap: 1rem; 
  padding: 1rem 0; 
}

.project-item {
  width: 100%;                        /* w-full */
  background-position: center;       /* bg-center */
  background-repeat: no-repeat;      /* bg-no-repeat */
  background-size: cover;            /* bg-cover */
  border-radius: 0.75rem;            /* rounded-xl (12px) */
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow:  0rem 0.05rem 0.5rem #a39388;
  margin-bottom: 0.5rem;
  transition: transform 0.3s ease;
    /* aspect-ratio: 16 / 9;             aspect-video */
  height: 15vh;
}

.project-item:hover {
  transform: scale(1.04);                   
}

.input {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 1;
  resize: none;
  overflow: hidden;
  border-radius: 0.75rem; 
  outline: 0;
  box-shadow: none; /* focus:ring-0 */
  border: 1px solid #dde0e3;
  background-color: #ffffff;
  height: 3.5rem; /* h-14 */
  padding: 0.2rem 1rem;
  font-weight: 400; /* font-normal */
  line-height: 1.5; /* leading-normal */
}

.input:focus {
  outline: 0;
  box-shadow: none;
  border-color: #dde0e3;
}

input::placeholder, textarea::placeholder {
  font-size: 0.7rem;
  color: #6a7581;
}

a {
font-size: 0.65rem;
}

p a {
  text-decoration: underline;
}

div p, p a, li {
  font-size:0.9rem;
  color: #8a8a8a;
}

ul {
  list-style-type: disc;
  padding-left: 1.5rem
}

h1 {
  font-size: 1.6rem;
  margin:1.3rem 0;
  font-weight: bold;
}

div h3 {
  color: #a39388;          
  font-size: 1.2rem;         
  font-weight: 600;   
  line-height: 1.25;       
  letter-spacing: -0.015em;
  padding-bottom: 0.75rem; /* pb-3 = 12px */
  padding-top: 1.25rem;    /* pt-5 = 20px */
}

div h4 {
  color: #102438 ;         
  font-size: 0.67rem ;      /* text-base = 16px */
  line-height: 1.25;      /* leading-tight */
}

div h6 {
  font-size: 0.7rem;
  color: #a39388;
  cursor: pointer;
}

div h6:hover {
  text-decoration: underline;
}

h5 {
  color: #a39388;
  font-weight: 500;
}

.service-desc {
  position: absolute;
  top: 1rem;
  left: 0.3rem;
  background: #a39388;
  white-space: normal;
  padding: 10px;
  border-radius: 5px;
  display: none;
  z-index: 10;
}

.service-desc p {
  width: 10rem;
  font-size: 0.7rem;
  color: white;
  line-height: normal;

}

.service-desc.active {
  display: block;
}

.services {
  display: flex;                  
  flex: 1 1 0%;                     
  gap: 0.6rem;                     /* gap-3 = 12px */
  border-radius: 0.5rem;            /* rounded-lg = 8px */
  border: 1px solid #dde0e3;      
  background-color: white;         
  padding: 0.6rem;                    /* p-4 = 16px */
  align-items: center;             
  cursor: pointer;
  position: relative;
  height: 3rem;
  transition: all 1s ease-in-out;
}

.service-box {
  display: grid; 
  grid-template-columns: repeat(auto-fit,minmax(148px,1fr));
  gap: 0.75rem; 
  padding: 1rem 0;  
}

.services-icon {
  width: 1.3rem;
  height:1.2rem;
}

.pdf-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
}

.show {
  opacity: 1;
}

.pdf-modal-content {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  width: 90%;
  position: relative;
}

.project-popup {
  display: flex;
  height: 85vh; 
  flex-direction: column;
  gap: 1rem;
}

#close-pdf {
  position: absolute;
  top: 10px;
  left: 15px;
  background: transparent;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
}

.loadingBox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

#loadingBox h5 {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  width: 80%;
  max-width:240rem;
}

.hidden {
  display: none;
}

.project-detail-box {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.project-detail-box img {
  height: auto;
  border-radius: 8px;
  width: 100%;
}

.project-desc {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
}

.project-desc p {
  text-align: justify;
  font-size: 0.95rem;
  padding-top: 1rem;
}

.blog-image {
  width: 100%;
  /* padding: 2rem 0; */
}
 

@media only screen and (max-width: 429px)  and (orientation: portrait){
  .project-detail-box {
    flex-direction: column;
  }

  #close-pdf {
    font-size: 1.1rem;
  }
}

/* iPhone 15 Portrait and up*/
@media only screen and (min-width: 430px) and (max-width: 900px) and (orientation: portrait){
  .project-popup {
    height: 90vh;
  }

  .project-detail-box {
    flex-direction: column;
    padding: 0;
  }
  
  #close-pdf {
    font-size: 1.1rem;
  }
  .service-box {
      grid-template-columns: repeat(auto-fit,minmax(188px,1fr));
    }

  .project-item {
    height: 20vh;
  }
  
}

/* iPhone 15 Landscape */
@media only screen and (min-width: 430px) and (max-width: 1024px) and (orientation: landscape) {
  #navbar {
    padding: 1rem 2rem 0rem 2rem;
  }

  .body {
    padding: 3rem;
  }

  #home{
    margin: 2rem 0 2rem 0;
  }
  
  .project-desc {
    padding-left: 1.5em;
  }

  .project-popup {
    flex-direction: row;
  }

  .project-popup p {
    font-size: smaller;
  }

  .blog-sections {
    margin-top:2rem;
  }
  
  #close-pdf {
    font-size: 1.1rem;
  }
  
  .project-item {
    height: 30vh;
  }
  .service-box {
    grid-template-columns: repeat(auto-fit,minmax(208px,1fr));
  }
}

/* iPad Pro Portrait (11" and 12.9") and up */
@media only screen and (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  html {
    font-size: 20px;
  }

  #home{
    margin: 2rem 0 2rem 0;
  }

  #navbar {
    padding: 1.3rem 2rem 0rem 2rem;
  }
  .body {
    padding: 1rem 5rem;
  }

  .project-popup {
    height: 90vh;
  }    

  .project-item {
    height: 16vh;
  }
}

/* iPad Pro Landscape and up*/
@media only screen and (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
  html {
    font-size: 21px;
  }
  .blog-sections {
    margin-top:2rem;
  }

  .project-desc {
    padding: 1.5em;
  }
  .services {
    height: 2.2rem;
  }

  .service-box {
    grid-template-columns: repeat(auto-fit,minmax(258px,1fr));
  }

  #navbar {
    padding: 1.3rem 3rem 0rem 3rem;
  }
  .body {
    padding: 3rem 7rem;
  }

  .projects {
    gap: 3rem;
  }
  .project-item{
    /* aspect-ratio: 7 / 3; */
    height: 28vh;
  }

  #home {
    margin: 2.3rem 0 2rem 0;
    background-size: cover;
  }

  .project-popup {
    flex-direction: row;
    gap: 0;

  }

  #close-pdf {
    font-size: 1.1rem;
  }

  .service-desc p {
    width: 20rem;
    font-size: 0.5rem;
  }
}

@media only screen and (min-width: 1367px) and (max-width: 1770px){
  html {
    font-size: 23px;
  }

  .services {
    height: 2rem;
  }

  .service-box {
    grid-template-columns: repeat(auto-fit,minmax(358px,1fr));
  }

  #home{
    background-size: cover; /* Keep original image size */
    height: 70vh;
    margin: 0;
  }
  .blog-sections {
    margin-top:3rem;
  }

  #navbar {
    padding: 2rem 3rem 0rem 3rem;
  }
  .body {
    padding: 3rem 9rem;
  }

  .logo-size {
    width: 7.2rem;
    height: 1.8rem;
  }

  .project-popup {
    flex-direction: row;
    gap: 0;
  }

  .projects {
    gap: 2.4rem;
    padding: 2rem 0; 
  }
  .project-item {
    /* aspect-ratio: 10 / 4;            */
    height: 30vh;
  }
}


@media only screen and (min-width: 1771px){
  html {
    font-size: 22px;
    font-weight: 300;
  } 
  
  #navbar {
    padding: 1rem 12rem 0rem 11rem;
  }

  .body {
    padding: 5rem 13rem;
  }

   #home{
      margin: 2rem 0 2rem 0;
      background-size: cover; 
    }
  .services {
      height: 2.2rem;
    }

  .service-box {
    grid-template-columns: repeat(auto-fit,minmax(388px,1fr));
  }

  .project-popup {
    flex-direction: row;
    gap: 0;
  }

  .project-desc {
    padding: 3rem 0 0 3rem;
  }
    
  .projects {
    gap: 2rem;
    padding: 2rem 0; 
  }
  
  .project-item{
    /* aspect-ratio: 7 / 3; */
    height: 30vh;
  }

  .service-desc {
    top: 1rem; 
    left: 3rem;
  }

  .service-desc p {
    font-size: 0.6rem;
  }
  .blog-image {
    width: 50%;
}
  .blog-sections {
    margin-top:0rem;
  }
}
