
html {
  scroll-behavior: smooth;
  scroll-padding: 0;
}

body{
  font-family: poppins, sans-serif;
  margin: 0;
  padding-top: 150px;
  background-color: #2E2E2E;
}

/*----------------------------------------------HEADER--------------------------------------*/
header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 999;
  background-size: cover;
  background: rgba(255,255,255,0);
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: url('../assets/GridStructureBackground.jpg');
  background-color: #e6f0fa;
}

header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.1); 
  z-index: 0;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 10px;
  margin: 0px;
  z-index: 1;
  flex-wrap: wrap;
}

.logo {
  max-width: 150px;
  height: auto;
  margin: 0px;
  padding: 10px;
  animation: fadedLogo .5s ease-in;
}

@keyframes fadedLogo {
  0% {
    opacity: 0;
    scale: .25;
  }
  100% {
    opacity: 1;
    scale: 1;
  }
}

.main-navigation {
  padding: 10px;
  z-index: 1;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-list a {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  text-wrap: nowrap;
  font-weight: bolder;
  color: rgb(0,113,189);
  font-size: 0.9rem;
  padding: 5px;
}

.nav-list a:hover {
  transform: translateY(-5px);
  color: rgb(58,181,74);
}

.nav-link.quote-btn{
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  text-wrap: nowrap;
  color: #FF8C00;
  font-weight: bolder;
}

.nav-link.quote-btn:hover {
  transform: translateY(-6px);
  color: rgb(58,181,74);
}

/* Form styling */
.contact-form {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  background-color: #2E2E2E;
  border: 1px solid #fff;
  padding: 15px;
  margin: 0;
}

.field {
  display: flex;
  flex-direction: column;
}

label {
  color: white;
  font-weight: bold;
  margin-bottom: 4px;
  font-size: clamp(0.9rem, 2vw, 1rem);
}

input, select, textarea {
  padding: 10px;
  font-size: clamp(0.9rem, 2vw, 1rem);
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: whitesmoke;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.submit-btn {
  background-color: #4CAF50; 
  color: white;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  padding: 12px 24px;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 300px;
  margin: 20px auto 0;
  display: block;
  border-radius: 10px;
  border: 2px solid black;
  font-weight: bold;
}

.submit-btn:hover {
  background-color: #45a049;
}

fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

/* Footer */
footer {
  width: 100%;
  background-image: url('../assets/GridStructureBackground.jpg');
  background-size: cover;
  background-color: #e6f0fa;
  border-top: black 2px solid;
  position: relative;
  display: flex;
  align-items: center;
  min-height: 200px;
  margin-top: 40px;
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.5);
  z-index: 0;
}

.footer-container {   
  width: 100%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
  padding: 20px;
  gap: 20px;
  text-align: center;
}

.address {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: bold;
  color: rgb(0,113,189);
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: center;
}

.social-icons a {
  display: inline-block;
  transition: transform 0.3s ease, color 0.3s ease;
  padding: 5px;
  text-decoration: none;
  color: rgb(0,113,189);
  font-weight: bold;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.social-icons a:hover {
  transform: translateY(-6px);
  color: rgb(58,181,74);
}

/* Tablet and up */
@media (min-width: 600px) {
  body {
    padding-top: 180px;
  }
  
  .logo {
    max-width: 200px;
  }
  
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 18px;
    padding: 20px;
  }
  
  .field.full {
    grid-column: 1 / 3;
  }
}

/* Desktop */
@media (min-width: 900px) {
  .form-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .field.full {
    grid-column: 1 / 4;
  }
  
  .footer-container {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}