@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* Base styles */
*,
::after,
::before {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
}

.lato-light {
  font-family: "Lato", sans-serif;
  font-weight: 300;
  font-style: normal;
}

.success-msg {
  color: #174A43;
  line-height: 3;
}

/* Header Hero section */
header.hero {
  background-image: url("fronthouseprojectimg1.jpg");
  background-size: cover;
  background-position: center;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dark-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.085);
  z-index: 1;
}

.overlay {
  text-align: center;
  color: white;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

.overlay h1 {
  font-size: 3.5rem;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
}

.overlay p {
  font-size: 1.4rem;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

/* Navigation styles */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background-color: white;
  padding: 10px 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  z-index: 1000;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
}

.nav-spacer {
  flex: 1;
}

.logo {
  height: 70px;
  width: auto;
  object-fit: contain;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 40px;
  justify-content: center;
  flex: 2;
  margin: 0;
  padding: 0;
}

nav ul li {
  position: relative;
}

nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 0.75rem 1rem;
  transition: color 0.3s ease;
}

nav ul li:hover > a {
  color: #174A43;
  background-color: transparent;
}

/* Dropdown styles */
.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  display: none;
  min-width: 180px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  z-index: 1000;
}

.dropdown a {
  display: block;
  padding: 1rem 1.5rem;
  color: #333;
  white-space: nowrap;
}

.dropdown a:hover {
  background-color: #f2f2f2;
  color: #174A43;
}

nav ul li:hover .dropdown {
  display: block;
}

/* Sections */
.section {
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 0;
}

.section h2 {
  color: #333;
  margin-bottom: 20px;
}

.bordered-text {
  border: 2px solid white;
  padding: 20px;
  display: inline-block;
  background-color: lightgrey;
  opacity: 0.7;
  color: black;
}

/* Services section */
.service-menu {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.service-item {
  width: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  background: #fff;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
}

.service-item:hover {
  transform: scale(1.05);
}

.service-item img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.service-item h3 {
  margin: 15px 0;
  color: #333;
}

/* Footer */
footer {
  background-color: #222;
  color: white;
  text-align: center;
  padding: 30px;
}

/* Form styles */
form {
  width: 50%;
  margin: 0 auto;
  font-family: 'Poppins', sans-serif;
  padding: 3rem;
}

label {
  font-weight: 600;
  margin: 0.5rem 0;
  display: flex;
  color: #3e4455;
}

.input-control {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  padding: 1rem;
  width: 100%;
}

.contact-msg {
  height: 150px;
  line-height: 1.2;
  padding: 20px 30px;
  width: 100%;
  font-family: 'Poppins', sans-serif;
  resize: none;
}

.input-control:focus-visible,
.contact-msg:focus-visible {
  outline: none;
}

.btn-submit {
  margin-top: 20px;
  width: 100%;
  padding: 15px 30px;
  color: #fff;
  background-color: #174A43;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
}

/* Loader animation */
.loader {
  width: 100%;
  padding: 10px;
  background-color: #00000092;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
  display: none;
}

.loader.show {
  display: block;
}

.loader i {
  color: white;
  animation: rotateme .4s linear infinite;
}

@keyframes rotateme {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Form message styles */
.form-message {
  display: none;
  width: 100%;
  background-color: #a9a9a92e;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

.form-message.show {
  display: block;
}

/* Responsive styles */
@media (max-width: 768px) {
  /* Form */
  form {
    width: 90%;
    padding: 2rem 1rem;
  }

  .input-control,
  .contact-msg {
    font-size: 0.95rem;
    padding: 0.75rem;
  }

  label {
    font-size: 0.95rem;
    margin-bottom: 0.4rem;
  }

  .btn-submit {
    font-size: 1rem;
    padding: 0.75rem;
  }

  /* Navigation */
  .nav-container {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  nav ul {
     flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  nav ul li {
    width: 100%;
  }

  nav ul li a {
    display: block;
    width: 100%;
    padding: 12px 0;
  }
  .nav-spacer {
    display: none;
  }

  .logo {
   lign-self: flex-start;
    height: 50px;
  }
}
