* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  color: #333;
}

/* HEADER */

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 120px;
  max-width: 1400px;
  margin: auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-img {
  height: 150px;
  width: auto;
}

.logo-text h1 {
  font-size: 28px;
  color: #2f3f2f;
}

.logo p {
  color: #777;
  font-size: 18px;
}

.contact {
  display: flex;
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  text-align: right;
}

.email {
  font-size: 15px;
  color: #000000;
}

.estimate-btn {
  background: #3f5d3a;
  color: white;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.phone {
  font-weight: bold;
}

/* NAVBAR */

.navbar {
  background: #4c6a44;
  display: flex;
  justify-content: center;
  gap: 220px;
  padding: 18px 40px;
  max-width: 1200px;
  margin: 0 auto 12px auto;
  border-radius: 6px;
}

.navbar a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-size: 20px;
}

/* HERO */

.hero {
  height: 520px;
  background: url("images/machine.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-overlay {
  text-align: center;
  color: white;
  background: rgba(0,0,0,0.35);
  padding: 40px;
  border-radius: 10px;
  width: 1200px;
  max-width: 92%;
  margin: auto;
}

.hero h2 {
  font-size: 36px;
  margin-bottom: 16px;
}

.hero p {
  margin-bottom: 25px;
  font-size: 24px;
}

.call-btn {
  background: white;
  color: black;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
}

/* ABOUT */

.about {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 60px;
  padding: 80px 40px;
}

.about img {
  width: 300px;
  border-radius: 6px;
}

.about-text {
  max-width: 480px;
}

.learn-btn {
  margin-top: 20px;
  background: #3f5d3a;
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 6px;
}

/* SERVICES */

.services {
  display: flex;
  justify-content: center;
  gap: 80px;
  padding: 60px;
  background: #f5f5f5;
}

.service {
  text-align: center;
  max-width: 240px;
}

.icon {
  font-size: 42px;
  margin-bottom: 10px;
}




.service-video {
  text-align: center;
  padding: 60px 20px;
}

.equipment-video {
  width: 420px;
  max-width: 90%;
  border-radius: 8px;
  margin: 20px 0;
}


.services-page {
  padding: 80px 40px;
  max-width: 900px;
  margin: auto;
}

.service-block {
  margin-bottom: 40px;
}

.contact-page {
  padding: 80px 40px;
  max-width: 700px;
  margin: auto;
}

.contact-box {
  margin: 30px 0;
}

form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

input, textarea {
  padding: 10px;
  font-size: 16px;
}

textarea {
  min-height: 120px;
}

.navbar a.active {
  text-decoration: underline;
  font-weight: bold;
}

.services-page h2 {
  font-size: 42px;
  margin-bottom: 30px;
}

.contact-page h2 {
  font-size: 42px;
  margin-bottom: 30px;
  color: #2f3f2f;
}

.contact-page p {
  margin-bottom: 25px;
}


.services-hero {
  text-align: center;
  padding: 60px 20px 20px;
}

.services-hero h1 {
  font-size: 52px;
  color: #2f3f2f;
  margin-bottom: 40px;
}


/* alternating service layout */

.service-row {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 60px 80px;
}

.service-row.reverse {
  flex-direction: row-reverse;
}

.service-row img {
  width: 420px;
  border-radius: 8px;
}

.service-row h2 {
  font-size: 32px;
  margin-bottom: 15px;
  color: #2f3f2f;
}

.service-row p {
  max-width: 520px;
  line-height: 1.6;
}

/* SERVICES PAGE PLACEHOLDER LAYOUT */

.services-header {
  text-align: center;
  padding: 60px 20px 20px;
}

.services-header h1 {
  font-size: 48px;
  color: #2f3f2f;
}


.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: auto;
  gap: 80px;
  padding: 70px 40px;
}

.service-row.reverse {
  flex-direction: row-reverse;
}


/* IMAGE PLACEHOLDER BOX */

.image-placeholder {
  width: 320px;
  height: 220px;
  background: #d9d9d9;
  border-radius: 8px;
}


/* TEXT BLOCK */

.service-text {
  max-width: 420px;
}

.service-text h2 {
  font-size: 32px;
  margin-bottom: 12px;
  color: #2f3f2f;
}

.service-text p {
  line-height: 1.6;
}


.about-page {
  max-width: 900px;
  margin: auto;
  padding: 80px 40px;
}

.about-page h1 {
  font-size: 48px;
  color: #2f3f2f;
  margin-bottom: 30px;
}

.about-page p {
  margin-bottom: 20px;
  line-height: 1.7;
}


.about-highlight {
  display: flex;
  justify-content: center;
  gap: 60px;
  padding: 40px;
  background: #f5f5f5;
}

.about-highlight-box {
  max-width: 260px;
}

.about-highlight-box h2 {
  margin-bottom: 10px;
  color: #2f3f2f;
}

/* OUR WORK PAGE */

.our-work-header {
  text-align: center;
  padding: 60px 20px 20px;
}

.our-work-header h1 {
  font-size: 48px;
  color: #2f3f2f;
  margin-bottom: 15px;
}

.our-work-header p {
  color: #555;
  max-width: 700px;
  margin: auto;
  line-height: 1.6;
  font-size: 20px;
}

.before-after-section {
  padding: 50px 20px 80px;
  text-align: center;
}

.before-after-section h2 {
  font-size: 36px;
  color: #2f3f2f;
  margin-bottom: 10px;
}

.before-after-section p {
  margin-bottom: 30px;
}

.before-after-layout {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 24px;
  max-width: 980px;
  margin: auto;
}

.compare-container {
  position: relative;
  width: 72%;
  max-width: 620px;
  margin: auto;
  overflow: hidden;
  border-radius: 10px;
}

.main-compare {
  margin: 0;
}

.compare-thumbnails {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 180px;
}

.compare-thumb {
  width: 180px;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
}

.compare-thumb.active-thumb {
  border-color: #4c6a44;
}

.compare-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.compare-img {
  display: block;
  width: 100%;
  height: auto;
}

.compare-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
}

.compare-slider {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  width: 80%;
  z-index: 5;
}

.gallery-section {
  padding: 0 40px 80px;
}

.gallery-section h2 {
  text-align: center;
  font-size: 36px;
  color: #2f3f2f;
  margin-bottom: 10px;
}

.gallery-section p {
  text-align: center;
  margin-bottom: 30px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.gallery-item {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.gallery-item:hover {
  transform: scale(1.03);
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
  z-index: 999;
}

.lightbox-img {
  width: auto;
  height: auto;
  max-width: 75vw;
  max-height: 80vh;
  border-radius: 8px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 42px;
  color: white;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.45);
  color: white;
  border: none;
  font-size: 52px;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-arrow-left {
  left: 20px;
}

.lightbox-arrow-right {
  right: 20px;
}

@media (max-width: 900px) {
  .top-bar {
    flex-direction: column;
    padding: 10px 20px;
    text-align: center;
  }

    .logo {
    flex-direction: row;
    gap: 28px;
    align-items: center;
    justify-content: center;
  }

  .logo-img {
    height: 70px;
  }

  .logo-text h1 {
    font-size: 0;
    line-height: 1.1;
    text-align: center;
  }

  .logo-text h1::before {
    content: "Earthscapes";
    display: block;
    font-size: 24px;
  }

  .logo-text h1::after {
    content: "Jonathan Frateschi";
    display: block;
    font-size: 18px;
    margin-top: 4px;
  }

    .contact-info {
    flex-direction: row;
    justify-content: center;
    gap: 12px;
    text-align: center;
    margin-top: 10px;
    flex-wrap: wrap;
  }

  .navbar {
    gap: 90px;
    padding: 14px 20px;
    max-width: 92%;
  }

  .navbar a {
    font-size: 18px;
  }

  .hero {
    height: auto;
    padding: 40px 15px;
  }

  .hero-overlay {
    padding: 25px 15px;
  }

  .hero h2 {
    font-size: 28px;
  }

    .hero p {
    font-size: 18px;
  }

  .equipment-video {
    width: 85%;
    max-width: 320px;
  }

  .about {
    flex-direction: column;
    align-items: center;
    padding: 50px 25px;
    gap: 30px;
    text-align: center;
  }

  .about img {
    display: none;
  }

  .services {
    flex-direction: column;
    align-items: center;
    gap: 35px;
    padding: 45px 20px;
  }

  .our-work-header h1 {
    font-size: 34px;
  }

  .before-after-layout {
    flex-direction: column;
    align-items: center;
  }

  .compare-container {
    width: 92%;
  }

  .compare-thumbnails {
    flex-direction: row;
    width: 92%;
    justify-content: center;
  }

  .compare-thumb {
    width: 30%;
    height: 90px;
  }

  .gallery-section {
    padding: 0 20px 60px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .gallery-item {
    height: 170px;
  }
}