:root {
  --black: #0d0d0d;
  --dark-grey: #1a1a1a;
  --mid-grey: #2e2e2e;
  --light-grey: #bfbfbf;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Roboto", sans-serif;
  background-color: var(--black);
  color: var(--white);
  min-height: 100vh;
  opacity: 0;
}

header {
  background: linear-gradient(to bottom, var(--dark-grey), var(--black));
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: 0 3px 10px var(--shadow);
  z-index: 100;
  position: sticky;
  top: 0;
}

.logo img {
  height: 70px;
  filter: drop-shadow(2px 2px 2px var(--shadow));
  cursor: pointer;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--white);
  text-decoration: none;
  font-weight: 700;
  font-family: "Oswald", sans-serif;
  font-size: 1.1rem;
  position: relative;
  padding: 0.4rem 0.8rem;
  transition: color 0.3s ease;
}

nav a::after {
  content: "";
  position: absolute;
  width: 0%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--white);
  transition: width 0.3s ease;
}

nav a:hover {
  color: var(--light-grey);
}

nav a:hover::after {
  width: 100%;
}

.hero {
  position: relative;
  height: 480px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--mid-grey);
  box-shadow: inset 0 0 60px var(--shadow);
}

.slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.slideshow img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  user-select: none;
  pointer-events: none;
}

.slideshow img.active {
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  padding: 0 1rem;
}

.hero-content h1 {
  font-family: "Oswald", sans-serif;
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 2px 2px 6px var(--shadow);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  color: var(--light-grey);
  text-shadow: 1px 1px 3px var(--shadow);
}

.btn {
  background-color: var(--white);
  color: var(--black);
  font-weight: 700;
  padding: 1rem 2rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all 0.3s ease;
}

.btn:hover {
  background-color: var(--light-grey);
  color: var(--black);
}

.info {
  max-width: 900px;
  margin: 3rem auto;
  background-color: var(--dark-grey);
  padding: 2.5rem 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px var(--shadow);
  text-align: center;
}

.info h2 {
  font-family: "Oswald", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
  color: var(--white);
  text-shadow: 1px 1px 5px var(--shadow);
}

.info p {
  font-size: 1.15rem;
  line-height: 1.5;
  color: var(--light-grey);
  margin-bottom: 1rem;
}

.info ul {
  list-style: none;
  padding-left: 0;
}

.info li {
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0.7rem 0;
  position: relative;
  padding-left: 2rem;
  color: var(--white);
}

.info li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--light-grey);
  font-weight: 900;
}

footer {
  background: linear-gradient(to top, var(--dark-grey), var(--black));
  color: var(--light-grey);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
  box-shadow: inset 0 1px 4px var(--shadow);
}

#scrollTopBtn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background-color: var(--white);
  color: var(--black);
  border: none;
  padding: 10px 14px;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  box-shadow: 0 4px 10px var(--shadow);
  font-size: 18px;
  z-index: 1000;
}

@media (max-width: 768px) {
  nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
  }
  .hero-content h1 {
    font-size: 2rem;
  }
  .hero-content p {
    font-size: 1rem;
  }
  .btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
  }
}

.info {
  max-width: 1000px;
  margin: 3rem auto;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 0 1rem;
}

.info-card {
  background-color: var(--dark-grey);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px var(--shadow);
  text-align: left;
}

.info-card h2 {
  font-family: "Oswald", sans-serif;
  color: var(--white);
  margin-bottom: 1rem;
  text-shadow: 1px 1px 5px var(--shadow);
}

.info-card p,
.info-card li {
  color: var(--light-grey);
  line-height: 1.6;
}

.info-card ul {
  list-style: none;
  padding-left: 0;
}

.info-card li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.7rem;
}

.info-card li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: var(--white);
  font-weight: bold;
}

.services-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 3rem auto;
  padding: 0 1rem;
}

.service-item {
  background-color: var(--dark-grey);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 0 20px var(--shadow);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: default;
}

.service-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--shadow);
}

.service-icon {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
  fill: var(--accent-color);
}

.service-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--white);
}

.service-desc {
  font-size: 1rem;
  color: var(--light-grey);
  line-height: 1.5;
}

:root {
  --white: #ffffff;
  --bg-dark: #0a0a0a;
  --text-light: #ccc;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Roboto", sans-serif;
  color: var(--text-light);
  background-color: var(--bg-dark);
  opacity: 0;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background-color: #111;
}

header .logo img {
  height: 50px;
}

nav a {
  color: var(--text-light);
  text-decoration: none;
  margin-left: 1.5rem;
  font-weight: 700;
  position: relative;
}

nav a.active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--white);
  border-radius: 2px;
}

/* Hero */
.hero {
  height: 350px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: var(--white);
}

.hero-content h1 {
  font-family: "Oswald", sans-serif;
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.hero-content p {
  font-size: 1.2rem;
}

/* Services Grid */
.info {
  padding: 3rem 2rem;
  display: flex;
  justify-content: center;
}

.services-list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  width: 100%;
  max-width: 1200px;
}

.service-item {
  flex: 1 1 22%;
  background: #111 url("photos/roof-tile.png") repeat;
  padding: 2rem 1.5rem;
  border-radius: 12px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 220px;
}

.service-item:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.service-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  stroke: var(--white);
  fill: var(--white);
}

.service-title {
  font-family: "Oswald", sans-serif;
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--white);
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-light);
}

/* Scroll Button */
#scrollTopBtn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--white);
  color: var(--bg-dark);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}

/* Footer */
footer {
  text-align: center;
  padding: 2rem;
  background-color: #111;
  color: var(--text-light);
  margin-top: 2rem;
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px; /* space between each input */
}

form label {
  font-weight: bold;
  margin-bottom: 5px;
}

form input,
form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

form textarea {
  resize: vertical; /* allow vertical resizing only */
  min-height: 100px;
}

form button {
  width: fit-content;
  padding: 10px 20px;
  background-color: #111;
  color: #fff;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

form button:hover {
  background-color: #111;
}
