* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

html,
body {
  min-height: 100%;
}

:root {
  --green: #4b6b3c;
  --dark: #1d1d1d;
  --light: #f7f7f4;
  --gray: #666;
  --darkgray: #333;
  --border: #e5e5e5;
  --red: #c0392b;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background: rgb(255, 255, 255);
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

h3 {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.container {
  width: min(1200px, 90%);
  margin: auto;
}

/* NAVBAR */

header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  background: rgb(255, 255, 255);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 10px solid rgb(255, 255, 255);
  border-bottom: 10px solid rgb(255, 255, 255);
}

.navbar {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logoimg {
  display: flex;
  width: 70px;
  height: 70px;
}

.logo {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--green);
}

.nav-toggle {
  display: none;
  gap: 5px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--green);
  border: none;
  border-radius: 14px;
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
}

.nav-toggle span {
  display: flex;
  width: 25px;
  height: 3px;
  background: currentColor;
  border-radius: 200px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links {
  display: flex;
  gap: 1rem;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  transition: 0.3s;
}

.nav-links a:hover {
  color: var(--green);
}

.btn {
  display: inline-block;
  text-align: center;
  background: var(--green);
  color: rgb(255, 255, 255);
  padding: 14px 26px;
  border-radius: 10px;
  font-weight: 600;
  transition: 0.3s;
}

.btn:hover {
  transform: translateY(-2px);
}

/* HERO */

.hero {
  height: 100vh;
  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35)),
    url(../assets/img/paverpatio.jpg)
      center/cover no-repeat;
  display: flex;
  align-items: center;
  color: white;
  padding-top: 80px;
}

.hero-content {
  max-width: 650px;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 800;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-outline {
  border: 2px solid white;
  padding: 12px 24px;
  border-radius: 10px;
  color: white;
  font-weight: 600;
  transition: 0.3s;
}

.btn-outline:hover {
  background: white;
  color: black;
  transform: translateY(-2px);
}

/* SECTION */

section {
  padding: 100px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title span {
  color: var(--green);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.section-title h2 {
  font-size: 2.7rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.section-title p {
  max-width: 700px;
  margin: auto;
  color: var(--gray);
}

/* SERVICES */

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.service-card {
  background: rgb(255, 255, 255);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  place-items: center;
  transition: 0.35s;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.service-card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: center;
}

.service-content {
  padding: 1.5rem;
}

.service-content h3 {
  margin-bottom: 0.8rem;
  font-size: 1.4rem;
}

.service-content p {
  color: var(--darkgray);
}

/* ABOUT */

.about {
  background: var(--light);
}

.about-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 4rem;
  align-items: center;
}

.about img {
  border-radius: 200px;
  height: 360px;
  object-fit: contain;
}

.about-text h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
}

.about-text p {
  color: var(--gray);
  margin-bottom: 2rem;
}

.about-label {
  color: var(--green);
  font-weight: 700;
}

/* CTA */

.cta {
  background:
    linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)),
    url(https://images.unsplash.com/photo-1441974231531-c6227db76b6e?q=80&w=1400&auto=format&fit=crop)
      center/cover;     
  color: rgb(255, 255, 255);
  text-align: center;
  padding: 100px 20px;
}

.cta h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  max-width: 730px;
  margin: auto;
  margin-bottom: 2rem;
  color: rgb(255, 255, 255);
  backdrop-filter: blur(1px);
}

/* FOOTER */

footer {
  background: #111;
  color: white;
  padding: 50px 0 50px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col {
  justify-self: center;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  color: rgba(255, 255, 255, 0.5);
}

/* MOBILE */

@media (max-width: 900px) {
  header {
    border-top: 4px solid rgb(255, 255, 255);
    border-bottom: 10px solid rgb(255, 255, 255);
    position: sticky;
    top: 0;
  }

  .navbar {
    min-height: 90px;
    height: auto;
    padding: 0;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0rem;
  }

  .logoimg {
    width: 52px;
    height: 52px;
  }

  .logo {
    font-size: 1rem;
    max-width: 190px;
  }

  .hero {
    min-height: 60vh;
    padding-top: 0px;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .nav-toggle {
    display: flex;
    gap: 5px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--green);
    border: none;
    border-radius: 14px;
    color: white;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.16);
  }

  .nav-actions {
    display: none;
    position: absolute;
    top: 100%;
    right: 1rem;
    left: 1rem;
    flex-direction: column;
    align-items: flex-start;
    width: auto;
    max-width: calc(100% - 2rem);
    padding: 1.2rem 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.382);
    border-radius: 18px;
  }

  header.nav-open .nav-actions {
    display: flex;
  }

  .nav-links {
    display: flex;
    background: transparent;
    text-align: center;
    flex-direction: column;
    gap: 1rem;
    width: auto;
    align-self: stretch;
  }

  .nav-links a {
    padding: 0.75rem 1rem;
    width: auto;
  }

  .nav-actions .btn {
    width: auto;
    align-self: stretch;
  }

  .nav-toggle {
    order: 1;
  }

  .logo {
    order: 0;
    flex: 1 1 auto;
    min-width: 0;
  }

  .footer-grid {
    gap: 1.5rem;
    justify-items: center;
    text-align: center;
  }

  .footer-col {
    justify-self: center;
    width: 100%;
    max-width: 360px;
  }

  .footer-col h4,
  .footer-col p,
  .footer-col a {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .hero h1 {
    font-size: 2.4rem;
  }

  .section-title h2 {
    font-size: 2rem;
  }

  .about-text h2,
  .cta h2 {
    font-size: 2.2rem;
  }

  .hero {
    min-height: 80vh;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .btn,
  .btn-outline,
  .yelp-btn {
    width: 100%;
  }
}

/* GALLERY */

.gallery-hero {
  height: 75vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 80px;
  color: white;

  background:
    linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.35)),
    url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=2200&auto=format&fit=crop")
      center/cover no-repeat;
}

.gallery-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  backdrop-filter: blur(1px);
  -webkit-backdrop-filter: blur(1px);
}

.gallery-hero-content {
  position: relative;
  z-index: 2;
  max-width: 850px;
  padding: 20px;
}

.gallery-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  font-weight: 800;
  letter-spacing: -2px;
}

.gallery-hero p {
  font-size: 1.2rem;
  max-width: 700px;
  margin: auto;
  color: rgba(255, 255, 255, 0.9);
}

/* GALLERY SECTION */

.gallery-grid {
  columns: 2 500px;
  column-gap: 1.5rem;
  margin-top: 4rem;
}

/* CARD */

.gallery-card {
  position: relative;
  margin-bottom: 1.5rem;
  break-inside: avoid;
  overflow: hidden;
  border-radius: 26px;
  background: rgb(255, 255, 255);
  transition:
    transform 0.45s ease,
    box-shadow 0.45s ease;
}

.gallery-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* IMAGE */

.gallery-image,
.before-after-container {
  position: relative;
  overflow: hidden;
}

.gallery-image {
  width:100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.04);
}

/* CONTENT OVERLAY */

.gallery-content {
  position: absolute;
  inset: auto 0 0 0;

  padding: 2.5rem 2rem 1.8rem;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.82),
    rgba(0, 0, 0, 0.45),
    transparent
  );

  color: rgb(255, 255, 255);
}

.gallery-content h3 {
  font-size: 1.7rem;
  margin-bottom: 0.7rem;
  font-weight: 700;
}

.gallery-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.98rem;
  line-height: 1.6;
  backdrop-filter: blur(2px);
}

/* BEFORE / AFTER */

.before-after-container {
  position: relative;
  min-height: 520px;
}

.before-after-container img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.before-wrapper {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  left: 0;
  right: auto;
}

.before-label {
  left: 24px;
  z-index: 2;
}

.after-label {
  right: 24px;
}

/* SLIDER */

.slider {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: ew-resize;
  z-index: 10;
  touch-action: pan-y;
}

.slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 26px;
  height: 100%;
  background: rgba(147, 147, 147, 0.55);
  border: none;
  border-radius: 999px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.5),
    0 0 25px rgba(0, 0, 0, 0.25);
}

.slider::-moz-range-thumb {
  width: 26px;
  height: 100%;
  background: rgba(147, 147, 147, 0.55);
  border: none;
  border-radius: 999px;
}

/* LABELS */

.before-label,
.after-label {
  position: absolute;
  top: 24px;

  background: rgba(80, 80, 80, 0.52);
  backdrop-filter: blur(10px);

  border: 1px solid rgba(255, 255, 255, 0.2);

  color: white;

  padding: 10px 18px;

  border-radius: 40px;

  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.before-label {
  left: 24px;
  z-index: 2;
}

.after-label {
  right: 24px;
}

/* STAGGERED HEIGHTS */

.gallery-card:nth-child(1) img {
  height: 620px;
}

.gallery-card:nth-child(2) img {
  height: 525px;
}

.gallery-card:nth-child(3) img {
  height: 525px;
}

.gallery-card:nth-child(4) img {
  height: 620px;
}

/* SECTION TITLE */

.section-title h2 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -1px;
}

/* MOBILE */

@media (max-width: 1000px) {
  .gallery-grid {
    columns: 2 280px;
  }
}

@media (max-width: 700px) {
  .gallery-grid {
    columns: 1;
  }

  .gallery-hero {
    height: 60vh;
  }

  .gallery-hero h1 {
    line-height: 1;
  }

  .gallery-content {
    padding: 2rem 1.5rem 1.5rem;
  }

  .gallery-content h3 {
    font-size: 1.4rem;
  }

  .gallery-content p {
    display: none;
  }

  .before-after-container,
  .before-after-container img {
    min-height: 380px;
  }

  .before-after-container img {
    object-position: bottom center;
    transform: scale(0.96);
    transform-origin: bottom center;
  }
}

/* YELP REVIEWS*/

.yelp-reviews {
  background: #4b6b3c;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.4);
  color: white;
  padding: 100px 20px;
}

.yelp-reviews h2 {
  font-size: 2.5rem;
  text-align: center;
}

.yelp-reviews p {
  font-size: 1.1rem;
  max-width: 700px;
  margin: auto;
  margin-top: 1rem;
  margin-bottom: 3rem;
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
}

.yelp-review {
  display: inline-block;
  max-width: 200px;
}

.yelp-btn {
 display: inline-block;
 width: 120px;
 height: 53px;
 transform: translateY(20px);
 text-align: center;
 background: var(--red);
 color: rgb(255, 255, 255);
 border-radius: 10px;
 font-weight: 600;
 transition: 0.3s;
 overflow: clip;
}

.yelp-btn img {
  width: 100%;
  height: auto;
  display: grid;
  border-radius: inherit;
}

.yelp-btn:hover {
  transform: translateY(16px);
}

/* ABOUT US */

.aboutus {
  background: var(--light);
  padding-top: 150px;
  padding-bottom: 150px;
}

.aboutus-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  align-items: center;
}

.aboutus-text h3 {
  font-size: 2rem;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  text-align: center;
}

.aboutus-text p {
  color: var(--darkgray);
  margin-bottom: 2rem;
  text-align: center;
  text-indent: 1.5rem;
  max-width: 450px;
  margin: auto;
}

.aboutus-label {
  color: var(--green);
  font-weight: 700;
}

.aboutus-images {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 5 / 4;
}

.aboutus-images img {
  position: absolute;
  width: 60%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.16);
}

.aboutus-images img.aboutus-img-main {
  top: 0;
  left: 0;
  z-index: 2;
  transform: rotate(-4deg);
}

.aboutus-images img.aboutus-img-offset {
  top: 22%;
  left: 54%;
  z-index: 1;
  transform: rotate(5deg);
}

@media (max-width: 760px) {
  .aboutus-images {
    width: 100%;
    min-height: 320px;
    aspect-ratio: auto;
  }

  .aboutus-images img {
    width: 58%;
  }

  .aboutus-images img.aboutus-img-offset {
    top: 4%;
    left: 46%;
  }
}

/* CONTACT */

.main-content {
  background:
    linear-gradient(#4b6b3c, rgb(24, 47, 32));
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.8);
  color: white;
  padding-top: 100px;
  justify-content: center;
  text-align: left;
}

.section-heading {
  font-size: 2rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  font-weight: 700;
  text-align: center;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 8rem;
  align-items: center;
}

.contact img {
  width: 100%;
  max-width: 420px;
  height: auto;
  border: 10px solid rgb(255, 255, 255);
  border-radius: 260px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

.contact-list a {
  color: rgb(255, 255, 255);
}

@media (max-width: 760px) {
  .contact-row {
    gap: 2rem;
  }

  .main-content {
    padding-top: 50px;
    padding-bottom: 50px;
  }
}