:root {
  --primary-color: #204B65;
  --bg-color: #f9f9f9;
  --dark-color: #333;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: var(--bg-color);
  color: var(--dark-color);
  line-height: 1.6;
}

header {
  position: fixed;
  width: 100%;
  background: var(--white);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  top: 0px;
  z-index: 100;
}
.header-hide{
  top:-130px;
  transition: 0.3s ease-in-out;
}
.drop{
  position: absolute;
  margin-left: 90px;
  display: flex;
  margin-top: 60px;
  flex-direction: column;
  background-color: #fff;
  padding: 60px;
  opacity: 0;
}

.drop.activ{
  opacity: 1;
}
.drop a{
  color: #0056b3;
}
#fa{
  position: absolute;
  color: #3DB8B0;
  font-size:25px;
  top: -20px;
  margin-left:20px;
}
.logo {
  background-image: url(/img/newlogo.png);
  border-radius: 15px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  margin-left: 5%;
  width: 270px;
  height: 120px;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
}

#mobile-menu {
  display: none;
}

nav {
  display: flex;
  margin-right: -20%;
  gap: 1.5rem;
}

nav a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: larger;
  font-weight: 800;
}

nav a:hover {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  transition: 0.3s ease-in-out;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 1000;
}

.menu-toggle div {
  width: 25px;
  height: 3px;
  background: var(--dark-color);
}

.hero {
  background-color: var(--primary-color);
  background-image: url('/img/Glassbuilder.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-top: 100px;
  color: white;
  height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: #3DB8B0;
  color: white;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
}

.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.section h2 {
  text-align: center;
  color: var(--primary-color);
  margin-bottom: 2rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.service-card {
  background: white;
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.service-card h3 {
  color: var(--primary-color);
  margin-bottom: 1rem;
}

.service-card p {
  color: #555;
}

#contact form {
  max-width: 600px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#contact input,
#contact textarea {
  padding: 0.75rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

#contact button {
  background-color: #3DB8B0;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
}

#contact button:hover {
  background-color: #329f9a;
}

#contact p {
  margin: 0 auto;
  width: 65%;
  text-align: center;
}

/* Newsletter Section */
#subscribe {
  padding: 2rem 1rem;
  background-color: var(--bg-color);
  width: 100%;
  max-width: 700px;         /* ✅ prevents over-expansion */
  text-align: center;
  color: var(--dark-color);
  margin: 0 auto;
}

#subscribe form {
  position: relative;
  display: grid;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 30px;
}

#subscribe input {
  width: 100%;              /* ✅ no fixed 500px */
}

#subscribe input[type="email"] {
  padding: 0.7rem 0.9rem;
  width: 100%;              /* ✅ ensures responsiveness */
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  outline: none;
  transition: border-color 150ms, box-shadow 150ms;
}

#subscribe input[type="email"]:focus {
  border-color: #3DB8B0;
  box-shadow: 0 0 0 4px rgba(61,184,176,.15);
}

#subscribe button {
  padding: 0.7rem 1.2rem;
  background-color: #3DB8B0;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 150ms;
}
#subscribe button:hover { background-color: #0056b3; transform: translateY(-1px); }
#subscribe button:active { transform: translateY(0); }

/* Footer */
footer {
  background: #222;
  color: #eee;
  padding: 2rem;
  text-align: center;
}
footer p, footer a { color: #eee; margin-bottom: 0.5rem; }
footer a:hover { text-decoration: underline; }
/* -------------------- Responsive Styles -------------------- */

@media (max-width: 900px) {
  .img {
    position: relative;
    margin-top: 10%;
  }

  /* ✅ Make subscribe layout friendly on tablets/smaller */
  #subscribe form {
    max-width: 520px;
    padding: 20px;
  }

  #subscribe button {
    width: 100%;               /* ✅ full-width button on smaller screens */
    margin-left: 0;            /* remove negative offset */
  }

  #subscribe form input[type="email"]:focus {
    position: relative;
    border-color: #3DB8B0;
    box-shadow: 0 0 0 4px rgba(61,184,176,.15);
  }
}

@media (max-width: 768px) {
  header {
    position: fixed;
    top: 0;
    width: 100%;
  }

  .bars {
    position: absolute;
    top: 55px;
    right: 40px;
    background-color: #204B65;
    width: 25px;
    height: 3px;
    z-index: 1000;
    cursor: pointer;
  }

  .bars::before,
  .bars::after {
    position: absolute;
    content: "";
    width: 25px;
    height: 3px;
    background-color: #204B65;
    cursor: pointer;
  }

  .bars::before { top: -6px; right: 0; }
  .bars::after  { top: 6px;  right: 0; }

  .logo {
    z-index: 1000;
    margin-left: -7%;
    top: 30px;
  }

  .menu-toggle {
    display: flex;
    cursor: pointer;
    padding: 10px;
    color: #204B65;
    font-size: 18px;
    border: none;
  }

  #menu-toggle { z-index: 10000; }

  .menu-bars {
    position: absolute;
    right: 30px;
    display: flex;
    cursor: pointer;
    padding: 10px;
    color: #204B65;
    font-size: 18px;
    border: none;
  }

  .mobile-menu {
    display: block;
    flex-direction: column;
    transition: 0.3s ease-in-out;
    position: absolute;
    top: -450px;
    left: 0;
    width: 100%;
    height: calc(100vh - 50px);
    background: #204B65;
    color: #fff;
    padding: 20px;
    z-index: 999;
  }

  nav {
    position: absolute;
    top: 90px;
    left: 0;
    width: 60%;
    height: 100vh;
    background-color: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    z-index: 1001;
  }

  nav.active { transform: translateX(0); }

  nav a {
    position: relative;
    top: 30px;
    left: 14%;
    color: #204B65;
    text-transform: uppercase;
    font-weight: bold;
  }

  .hero {
    position: relative;
    background-size: 100% 40%;
    background-position: bottom;
    height: 90vh;
    margin-top: 80px;
  }

  .hero h1, .hero a { position: relative; }

  .hero h5 { margin-top: 40px; }

  .hero-text {
    position: absolute;
    margin: 0 auto;
    font-size: 20px;
    width:100%;
    height: 40vh;
    top:90px;
  }

  .service-hero-text {
    min-width: 100%;
    background-color: transparent;
    left: 0px;
    font-size: 20px;
    top: 30px;
  }

  .img {
    position: relative;
    background-size: cover;
    background-position: center;
    width: 90%;
    margin-top: 10%;
    left: 10%;
  }

  .hero h1 { min-width: 100%; }

  .about_text p {
    width: 90%;
    margin: 0;
    text-align: left;
  }

  #about p {
    width: 80%;
    text-align: start;
  }

  #service_list li {
    list-style-type: none;
    font-size: 2rem;
    position: relative;
    left: -2%;
  }

  #service_list li::before {
    left: 2px;
    top: 5px;
    content: "✓";
    font-size: 40px;
    color: red;
  }

  .services-text {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }

  #services p {
    margin: 0 auto;
    width: 500px;
  }

  .hospital, #off, #school { left: 0; }

  /* ✅ Clean, mobile-friendly subscribe layout */
  #subscribe {
    padding: 1.5rem 1rem;
  }

  #subscribe form {
    max-width: 100%;
    padding: 16px;
    grid-template-columns: 1fr;  /* stack */
  }

  #subscribe input,
  #subscribe input[type="email"] {
    width: 100%;
  }

  #subscribe button {
    width: 100%;
  }

  /* ❌ Removed previous offsets that broke layout:
     - no left:-35%
     - no min-width hacks
     - no background-color override on input
  */
}
