/* Responsive: stack project cards in a single column on small screens */
@media (max-width: 900px) {
  .project-row {
    flex-direction: column !important;
    gap: 24px !important;
  }
  .project-card {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 600px) {
  .contact-infos iframe,
  .contact-info iframe {
    width: 100% !important;
    aspect-ratio: 1/1;
    height: auto !important;
    max-width: 100vw;
    min-width: 0;
    margin: 0 auto;
    display: block;
  }
}
@media (max-width: 600px) {
  .contact-form .tc {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.7rem;
    font-size: 1rem;
    margin-bottom: 1.2rem;
    width: 100%;
  /* Ensure checkboxes stay small and don't stretch */
  .contact-form input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    margin-right: .5rem;
    flex-shrink: 0;
    accent-color: #222;
  }

/* Prevent overscroll bounce from revealing background */;
  }
  .contact-form input[type="checkbox"] {
    margin-bottom: 0;
    margin-right: 0.7rem;
  }
}
body, html {
  margin: 0;
  padding: 0;
  min-height:fit-content;
  height: 100%;
  font-family: 'ManropeLight', sans-serif;
  overflow-x: hidden;
  overflow-y: scroll;
}
@font-face {
  font-family: 'ManropeLight';
  src: url('assets/font/Manrope-Light.ttf') format('truetype');
}
@media (max-width: 1000px) {

  .contact-infos{
    flex-direction: column;
    gap: 3vw;
  }
  .contact-infos address,
  .contact-infos iframe{
    flex: 1 1 100%;
    max-width: 100%;
  }
  .contact-infos iframe{
    width: 100%;
    height: 380px;
  }
}

@media screen and (max-width: 600px) {
  .topnav {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .topnav a:not(:first-child) {
    display: block;
  }

  .topnav a.icon {
    display: none;
  }

  .logo-top-left img {
    width: 35%;
  }
  .centered-logo {
    max-width: 50%; /* Adjust size as needed */
  }
  .topnav.scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    height: auto;
    min-height: 10%;
    display: flex;
    align-items: center;
  }
  .topnav > a:first-of-type {
    padding-top: 14px; /* normal padding instead of 15% */
  }
  .topnav.fade-in.loaded {
    padding-right: 0px !important;
  }


}

.topnav {
  display: flex;
  justify-content: flex-end;
  padding: 15px 40px 14px 20px;
  padding-right: 40px;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 50vh;
  background-color: transparent;
  transition: background-color 0.5s ease, height 0.5s ease;
  z-index: 999;
  box-sizing: border-box;
}
.topnav::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0));
  z-index: -1;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s ease;
}
.topnav.scrolled::before {
  opacity: 0;
}
.topnav.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  height: 9vh !important;
}

.topnav a {
  padding: 14px 16px;
  text-decoration: none;
  color: black;
  display: block;
  align-self: flex-start;
}

.topnav a.icon {
  display: none;
  position: absolute;
  right: 20px;

  top: 14px;
  font-size: 24px;
  cursor: pointer;
  z-index: 1000;
}


.logo-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.logo-center img {
  width: 300px;
  opacity: 0.8;
}
.topnav,
.topnav.scrolled {
  transition: background-color 0.5s ease, height 0.3s ease;
}
.company-center-photo{
  margin: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover; 
  user-drag: none;
  -webkit-user-drag: none;
}
.centered-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 40%; /* Adjust size as needed */
  height: auto;
  opacity: 0.7;
  user-drag: none;
  -webkit-user-drag: none;
}
.logo-top-left {
  position: absolute;
  top: 1px;
  left: 10px;
  z-index: 20;
}
.logo-top-left img {
  width: 140px;
  opacity: 0.9;
}
#hero {
  position: relative;
}
/* CSS */
.hstack {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}
.logo-top-left img {
  width: 140px;
  opacity: 0.9;
  transition: width 0.3s ease;
}
.topnav.scrolled .logo-top-left img {
  width: 35%;
}
@media screen and (max-width: 600px) {
  .topnav a.icon {
    display: none;
  }
}
.topnav {
  pointer-events: none;
}
.topnav.scrolled,
.topnav.responsive {
  pointer-events: auto;
}
.topnav a,
.topnav a.icon,
.logo-top-left {
  pointer-events: auto;
}
.everything-section {
  padding: 60px 5vw;
}
.everything-image {
  width: 40%;
  max-width: 600px;
  max-height: 450px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
}

.everything-text {
  flex: 1;
  padding: 0 4vw;
}
.everything-text h2 {
  font-size: 2.2rem;
  margin: 0 0 1rem 0;
  text-align: center;
  letter-spacing: 0.08em;
  word-spacing: 0.2em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}
.everything-text p {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  margin: 0 0 1rem 0;
}
@media screen and (max-width: 1200px) {
  .everything-section {
    flex-direction: column;
    text-align: center;
  }
  .everything-image {
    width: 100%;
    margin-bottom: 1rem;
  }
}
.news-section {
  padding: 60px 0;
  text-align: center;
  background-color: #f7f7f7;
}
.section-title {
  font-size: 2rem;
  margin: 0;
  position: relative;
}
.section-title::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: #1d2f5d;
  margin: 12px auto 0;
}
.news-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-top: 40px;
}
.news-card {
  width: 260px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.news-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}
.news-body {
  padding: 24px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.news-body h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 6px 0;
}
.news-body p {
  font-size: 0.9rem;
  margin: 0 0 18px 0;
  color: #555;
  text-align: center;
}
.btn-readmore {
  display: inline-block;
  background: #1d2f5d;
  border: 2px solid #1d2f5d;
  color: #fff;
  font-size: 0.8rem;
  padding: 6px 20px;
  border-radius: 20px;
  transform: translateY(0);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.3s ease;
}
.btn-readmore:hover {
  background: #fff;
  color: #1d2f5d;
  border: 2px solid #1d2f5d;
  transform: translateY(-3px);
}
@media screen and (max-width: 600px) {
  .news-card {
    width: 90%;
  }
}
  .everything-text h2 {
    font-size: 1.5rem;
    line-height: 1.3;
  }
.projects-section {
  padding: 80px 0;
  display: flex;
  flex-direction: column;
  gap: 50px;
}
.project-card.reverse {
  position: relative;
  display: flex;
  max-height: 400px;
  overflow: hidden;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  justify-content: flex-start;
  margin-left: 0;
}


.project-card {
  position: relative;
  display: flex;
  min-height: 400px; /* Changed from max-height to min-height */
  height: auto; /* Allow automatic height based on content */
  overflow: hidden;
  align-items: stretch; /* Changed to stretch to make content take full height */
  justify-content: space-between;
  gap: 1rem;
  justify-content: flex-start;
  margin-right: 0;
}

.project-card.reverse {
  flex-direction: row-reverse;
}
 .project-background {
   position: absolute;
   inset: 0;
   background-size: cover;
   background-position: center;
   width: 50%;
   left: 0;
   right: 0;
   top: 0;
   bottom: 0;
   transform: none;
   z-index: -2;
 }
.project-card.reverse .project-background {
  right: 0;
  left: auto;
}
 .project-thumb-2 {
   flex: 0 0 40%;
   max-width: 40%;
   margin: 0;
   transform: none;
   margin-left: 15%;
   margin-top: 0.5%;
 }

.project-thumb-2 img {
  width: 59%;
  height: auto;
  display: block;
  margin-right: 0px;
  margin-left: 41%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

 .project-thumb {
   flex: 0 0 40%;
   max-width: 40%;
   margin: 0;
   transform: none;
   margin-right: 15%;
   margin-top: 0.5%;
 }

.project-thumb img {
  width: 59%;
  height: auto;
  display: block;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.project-content {
  padding: 24px 28px;
  flex: 1 1 60%;
  align-self: stretch; /* Take full height of the card */
  margin-left: 15%;
  text-align: right;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Start content at top naturally */
}

.project-content-2 {
  padding: 24px 28px;
  flex: 1 1 60%;
  align-self: stretch; /* Take full height of the card */
  margin-right: 15%;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* Start content at top naturally */
}

.project-content-2 h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #1d2f5d;
  padding-top: 12px;
  text-align: left;
  line-height: 1.3; /* Better leading for titles */
}
.project-content-2 p {
  font-size: 0.85rem;
  line-height: 1.6; /* Improved leading for better readability */
  margin: 0 0 18px 0;
  flex-grow: 1; /* Allow paragraph to take available space */
}
.project-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 12px 0;
  padding-bottom: 12px;
  border-bottom: 2px solid #1d2f5d;
  padding-top: 12px;
  text-align: right;
  line-height: 1.3; /* Better leading for titles */
}
.project-content p {
  font-size: 0.85rem;
  line-height: 1.6; /* Improved leading for better readability */
  margin: 0 0 18px 0;
  flex-grow: 1; /* Allow paragraph to take available space */
}

/* Ensure READ MORE button stays at bottom */
.project-content .btn-readmore,
.project-content-2 .btn-readmore {
  margin-top: auto; /* Push button to bottom */
  align-self: flex-end; /* Align to the appropriate side */
}
.project-content .btn-readmore {
  align-self: flex-end; /* Right aligned for right content */
}
.project-content-2 .btn-readmore {
  align-self: flex-start; /* Left aligned for left content */
}

@media screen and (max-width: 900px) {
  .projects-section {
    display: none;
  }
  
  .project-card,
  .project-card.reverse {
    flex-direction: column;
    gap: 24px;
  }
  .project-thumb {
    flex: none;
    max-width: 100%;
    width: 100%;
    margin: 0;
  }
  .project-content {
    max-width: 90%;
  }
}
.partners-section {
  padding: 80px 0 60px 0;
  text-align: center;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 60px;
  margin-top: 40px;
}
.partners-logos img {
  height: 100px;
  width: 200px;
  opacity: 0.9;
  object-fit: contain;
}
@media screen and (max-width: 600px) {
  .partners-logos img {
    height: 130px;
    width: 160px;
  }
}

.contact-section{
  position:relative;
  width:100%;
  min-height:65vh;
  background:url('assets/home/center_screen_all.jpg') center/cover no-repeat;
  display:flex;
  align-items:center;
}
.contact-overlay{
  width:84%;
  margin:0 auto;
  padding:3% 4%;
  display:flex;
  gap:4%;
  flex-wrap:wrap;
}
.contact-form,
.contact-info{
  flex:1 1 350px;
  background:rgba(255,255,255,.75);
  padding:2.5% 3%;
  border-radius:4px;
}
.contact-form h2,
.contact-info h2{
  font-size:2rem;
  margin:0 0 1rem;
}
.contact-form .row{display:flex;gap:4%;}
.contact-form .row input{flex:1;}
.contact-form input,
.contact-form textarea{
  width:92%;
  padding:.6rem .8rem;
  margin:0 0 1rem;
  border:1px solid #bbb;
  font:inherit;
}
.contact-form textarea{resize:vertical;}
.tc {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: nowrap;
  font-size: .85rem;
  margin: 0;
}
.contact-form input[type="checkbox"] {
  width: 28px;
  height: 28px;
  margin-right: 1rem;
  accent-color: #222;
  vertical-align: middle;
  flex-shrink: 0;
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}
.tc input{margin-right:.5rem;}
.btn-send{
  display:block;            /* push to the right edge */
  margin-left:auto;         /* align right */
  padding:.6rem 1.8rem;
  background:transparent;
  border:2px solid #444;
  cursor:pointer;
  transition:background .3s;
}
.btn-send:hover{background:#444;color:#fff;}
.contact-info address{
  flex:0 0 32%;      /* narrower text column */
  font-style:normal;
  line-height:1.5;
  font-size:1rem;
  margin:0 0 1rem;
}
.contact-info iframe{
  flex:1 1 68%;      /* wider map */
  height: 100%;
  min-width:330px;
  border:0;
}
.contact-infos{
  display:flex;
  height: 50%;
  align-items:flex-start;
  border-radius:4px;
}
@media(max-width:768px){
  .contact-overlay{flex-direction:column;}
  .contact-form .row{flex-direction:column;}
}
.contact-info h2{
  font-size:1.6rem;
  margin:0 0 1rem;
}
.copyright{text-align:center;font-size:.8rem;color:#666;}
.contact-form{
  flex:0 0 30%;
  max-width:340px;
}
@media (max-width: 800px){
  .contact-overlay{
    flex-direction: column;
    gap: 6vw;
  }
  .contact-form,
  .contact-info{
    flex: 1 1 100%;
    max-width: 100%;
    padding: 6vw 5vw;
  }
  .contact-info address,
  .contact-info iframe{
    flex: 1 1 100%;
    max-width: 100%;
  }
  .contact-infos iframe{
    width: 100%;
    height: 460px !important;
    border: 0;
  }
  .contact-form input,
  .contact-form textarea{
    font-size: 0.9rem;
    padding: 2.4vw 3vw;
  }
  .btn-send{
    font-size: 1rem;
    padding: 3vw 6vw;
  }
  .contact-overlay{
    width: 94%;
    padding: 0;
  }
  .contact-form,
  .contact-info{
    width: 100%;
    box-sizing: border-box;
  }
  .contact-form input,
  .contact-form textarea{
    width: 100%;
    box-sizing: border-box;
  }
  .contact-overlay{ gap: 4vw; }
  .contact-form h2{
    font-size: 1.6rem;
  }
  .btn-send{
    font-size: 0.9rem;
    padding: 2.5vw 5vw;
  }
  .contact-info iframe{ order: 1; }
  .contact-info address{ order: 2; }
  .contact-info h2{
    order: 3;
  }
  .contact-info h2{ order: 1; }
  .contact-info address{ order: 2; }
  .contact-info iframe{ order: 3; }
  .contact-form{ margin-top: 6vw; }
  .contact-form h2,
  .contact-info h2{ font-size: 1.4rem; }
  .contact-infos{
    flex-direction: column;
    gap: 4vw;
    align-items: stretch;
  }
  .contact-info{
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 20px;
  }
  .contact-info address{
    flex: 1 1 auto;
    max-width: 100%;
    padding-left: 0;
    margin-left: 0;
  }
  .contact-infos iframe{
    width: 100%;
    height: 340px;
    border: 0;
  }
}
  .contact-info{
    flex-direction: column;
  }
  .contact-info address{
    margin-left: 0;
    padding-left: 0;
    text-align: left;
    line-height: 1.4;
  }
/* Ensure checkboxes stay small and don’t stretch */
.contact-form input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  margin-right: .5rem;
  flex-shrink: 0;
}

/* Prevent overscroll bounce from revealing background */
html, body {
  overscroll-behavior-y: none;
}

.topnav,
.topnav.scrolled {
  backdrop-filter: none !important;
}

/* Remove project-card inline margins */
.project-card {
  margin: 0 !important;
}

/* Gallery layout */
.gallery-grid {
  flex-wrap: wrap;
}

.gallery-grid .responsive {
  flex: 1 1 calc(33.333% - 16px);
  margin: 8px;
}

.gallery-grid .responsive .img img {
  display: block;
  width: 100%;
  height: auto;
}

/* Two columns on medium screens */
@media (max-width: 1024px) and (min-width: 601px) {
  .gallery-grid .responsive {
    flex: 1 1 calc(50% - 16px);
  }
}

/* Single column on small screens */
@media (max-width: 600px) {
  .gallery-grid .responsive {
    flex: 1 1 100%;
  }
  .topnav a {
    padding: 6px !important;
  }
}