
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: 'Roboto', sans-serif;
  color: #f4f4f4;
  background-color: #111;
}
header {
  background-color: #222;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
}
header img {
  height: 50px;
}
nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
nav a {
  color: #f4f4f4;
  margin: 0.5rem 1rem;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #aa1e1e;
}
.hero {
  background: url('images/welding.jpg') no-repeat center center/cover;
  padding: 6rem 2rem;
  text-align: center;
}
.hero h1 {
  font-family: 'Oswald', sans-serif;
  font-size: 2.5rem;
  color: white;
}
.hero p {
  font-size: 1.2rem;
  margin: 1rem 0;
}
.hero h1,
.hero p {
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.75);
}

.hero .btn {
  background: #aa1e1e;
  border: none;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  margin: 0.5rem;
}
.section {
  padding: 3rem 1rem;
  max-width: 1100px;
  margin: auto;
}
.section h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: #aa1e1e;
  text-align: center;
}
.services {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}
.services img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-top: 1rem;
}

.service {
  background: #333;
  padding: 1rem;
  flex: 1 1 100%;
  border-left: 4px solid #aa1e1e;
  transition: border-color 0.3s ease;
}
@media(min-width: 600px) {
  .service {
    flex: 1 1 45%;
  }
}
@media(min-width: 900px) {
  .service {
    flex: 0 0 30%;
  }
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}
.gallery img {
  width: 100%;
  height: auto;
  border: 2px solid #aa1e1e;
  transition: border-color 0.3s ease;
}
.gallery img:hover, .service:hover {
  border-color: #f8cb2e; /* logo yellow */
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem;
  margin-bottom: 1rem;
  border: none;
  background: #222;
  color: white;
}
.contact-form textarea {
	resize: vertical;
	min-height: 175px;
}
.contact-form button {
  background: #aa1e1e;
  color: white;
  padding: 0.75rem 1.5rem;
  border: none;
  cursor: pointer;
  width: 100%;
}
footer {
  background: #222;
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}
.link_white {
	color: white;
}
.top_msg {
  background-color: #d4edda;
  color: #155724;
  padding: 1rem;
  text-align: center;
  font-weight: bold;
  position: absolute;
  z-index:1001;
  width: 100%;
  animation: fadeOut 1s ease-in-out 1s forwards;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-100px);
    display: none;
  }
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contact-form, .contact-map {
  flex: 1 1 100%;
}



.contact-map {
  min-height: 250px;
}

@media (min-width: 768px) {
  .contact-form, .contact-map {
    flex: 1 1 40%;
  }

  .contact-map {
    min-height: 400px;
  }
}
