﻿body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #eef4f8;
  color: #f8fafc;
  animation: pageFade 0.7s ease;
}

@keyframes pageFade {
  from {
    opacity:0;
  }
  to {
    opacity:1;
  }
}

.contact h2 {padding: 2px 10%; color: black;}

.greentext {
color:#14b8a6;
}

.max {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0;
}

/* HEADER */

/* HEADER BASE */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  box-sizing:border-box;
  padding: 20px 40px 0 40px;
  box-sizing:border-box;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
/*  transition: all 0.3s ease; */
  z-index: 2;
}

/* LOGO START STATE */
.logo {
  height: 380px;
  padding:40px 0;
  transform: scale(1);
  opacity: 1;
/*  transition: all 0.3s ease; */
  transition: 
    transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    height 0.4s ease;
  z-index:0;
}

/* SCROLLED HEADER */
header.scrolled {
  padding: 2px 40px;
  background: rgba(15,23,42,0.9);
  backdrop-filter: blur(8px);
  z-index: 5;
}
header.scrolled nav {
 margin-top:20px;
}


/* LOGO ANIMATION ON SCROLL */
header.scrolled .logo {
  height: 65px;
  padding:0;
  transform: scale(0.85);
  opacity: 0.9;
}

nav { margin-top: 10px; text-transform: uppercase;}
nav a { color:white; text-decoration:none; font-weight:bold; font-size:14pt; padding:4px 20px; box-sizing:border-box; }



/* HERO VIDEO NOT USING YET */
    .hero video {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
      filter: brightness(0.4);
    }

/* HERO */




.hero {
  height: 80vh;
  background: url('images/driveway.png') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content:left;
  padding: 0px 0px 0 40%;
  position: relative;
  overflow: hidden;
}

@media (max-width:568px) { 
   header.scrolled { padding: 2px 2px; }
   header.scrolled .logo {height: 65px;}
   header { padding: 2px 10px 0 10px;}
  .about{ grid-template-columns:1fr; } 
  .hero-content h1{ font-size:2rem;} 
  .hero {padding: 200px 20px 80px 20px;}
  header {flex-direction: column;align-items: center;justify-content: center;padding: 0px;}
  .logo {display: block;margin: 0 auto 0px auto;padding:0;}
  header.scrolled nav {margin-top:0px;}
  nav {display: flex;flex-wrap: wrap;justify-content: center;gap: 2px;margin-top: 0px;}
  nav a {padding: 0px 14px 6px 14px;font-size:12pt;}
}

/* SHORT SCREEN HEIGHT FIX (landscape phones) */
@media (max-height: 600px) {
  header {
    padding: 10px 20px 0 10px;
  }
  .logo {height: 100px;padding: 10px 0;}

  .hero {
    height: auto;
    min-height: 80vh;

    padding:
      60px   /* top */
      10px
      60px
      10px;

    justify-content: center;
  }

  .hero-content {
    margin-top: 0;
    margin-left:280px;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  .hero p {
    font-size: 0.95rem;
  }

  .cta {
    padding: 12px 20px;
  }

}


@media (max-width:998px){ 
  .logo {height: 280px;}
}

.hero::before {
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at top left, rgba(20,184,166,0.25), transparent 40%),
    linear-gradient(to right, rgba(0,0,0,0.55), rgba(0,0,0,0.15));
  z-index:0;
}

.hero-content {
  position: relative;
  max-width: 600px;
  z-index:4;
  animation: heroFade 1s ease forwards;
  opacity:0;
  transform: translateY(30px);
}

@keyframes heroFade {
  to {
    opacity:1;
    transform: translateY(0);
  }
}

.hero h1 {
  font-size: 3rem;
}

.hero span {
  color: #14b8a6;
}

.hero h1,
.hero p {
  text-shadow:
    0 2px 10px rgba(0,0,0,0.55),
    0 4px 25px rgba(0,0,0,0.45);
}




.cta {
  display: inline-block;
  margin-top: 20px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  padding: 16px 28px;
  border-radius: 14px;
  font-weight: bold;
  text-decoration: none;
  color: white;
  box-shadow: 0 10px 25px rgba(20,184,166,0.35);
  transition: all 0.3s ease;
  z-index:10;
}

.cta:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 18px 35px rgba(20,184,166,0.45);
}

.phone {
  margin-top: 10px;
}

/* ABOUT */


.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 60px;
  gap: 40px;
  background: #f8fafc;
  color: black;
position: relative;
overflow: hidden;
}

@media (max-width: 768px) {

  .about {
    grid-template-columns: 1fr;
    padding: 50px 20px;
    gap: 30px;
  }
}

.about h2 {
  margin: 0;
}

.about h3 {
  color: #14b8a6;
}


.btn-secondary {
  display: inline-block;
  margin-top: 20px;
  background: #14b8a6;
  color: white;
  padding: 10px 20px;
}

    /* READY SECTION WITH BACKGROUND */
.ready {
  position: relative;
  background: url('images/powerwash.png') center/cover no-repeat;
  padding: 100px 20px;
  text-align: center;
background-attachment: fixed;
}

.ready::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.55)),
    radial-gradient(circle at center, rgba(20,184,166,0.2), transparent 60%);
}

.ready-overlay {
  position: relative;
  z-index: 1;
  max-width: 600px;
  margin: 0 auto;
}

.ready h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.ready p {
  margin-bottom: 20px;
  font-size: 1.1rem;
  opacity: 0.9;
}

.features {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 20px;
}

    /* BEFORE AFTER SLIDER (FIXED VERSION) */
.slider {
  position: relative;
  width: 100%;
  max-width: 600px;
  height: 350px;
  border-radius: 16px;
  overflow: hidden;
}

.slider .img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 100% 100%; /* force exact same scaling */
  background-size: cover;
  background-position: center;
}

/* SET YOUR IMAGES HERE */
.before-img {
  background-image: url('images/after.jpeg');
  z-index: 0;
}

.after-img {
  background-image: url('images/before.jpeg');
  z-index: 1;
  width: 100%; /* keep full size */
  height: 100%;
  /* reveal using clip instead of resizing */
  clip-path: inset(0 50% 0 0);
}

.slider input {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.slider .handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background: #14b8a6;
  z-index: 2;
}

.slider .handle::before {
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #14b8a6;
  color: white;
  border-radius: 50%;
  padding: 8px 10px;
  font-size: 14px;
  font-weight: bold;
}
.slider .label {
  position: absolute;
  top: 10px;
  padding: 6px 12px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 12px;
  border-radius: 6px;
  z-index: 2;
}

.slider .label.before { left: 10px; }
.slider .label.after { right: 10px; }

 /* SERVICES SECTION */
.services {
  background: linear-gradient(180deg, #e6edf4 0%, #dbe7f0 100%);
  color: #0f172a;
  padding: 100px 40px;
  text-align: center;
position: relative;
overflow: hidden;
}

.about::before,
.services::before {
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  background: rgba(20,184,166,0.08);
  border-radius:50%;
  filter: blur(40px);
  z-index:0;
}

.about::before {
  top:-100px;
  right:-100px;
}

.services h4 {
  color: #14b8a6;
  letter-spacing: 2px;
  margin-bottom: 10px;
  font-weight: 600;
}

.services h2 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.services p {
  color: #64748b;
  margin-bottom: 50px;
}

/* GRID */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}


/* START HIDDEN */
.service-card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  transition: all 0.6s ease;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 25px 20px;
  text-align: left;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.4);
}



/* WHEN IN VIEW */
.service-card.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  animation: fadeUp 0.6s forwards;
}

/* GLOW ACCENT */
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(20,184,166,0.2), transparent);
  opacity: 0;
  transition: 0.4s;
}

/* HOVER EFFECT */
.service-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.service-card:hover::before {
  opacity: 1;
}

/* ICON 
.icon {
  font-size: 30px;
  margin-bottom: 12px;
  display: inline-block;
  transition: transform 0.3s ease;
}
*/

.icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
  color: white;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

/* hover animation */
.service-card:hover .icon {
  transform: scale(1.15) rotate(6deg);
  box-shadow: 0 10px 20px rgba(20,184,166,0.3);
}

/* TEXT */
.service-card h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.service-card p {
  font-size: 0.9rem;
  color: #64748b;
}

/* ENTRANCE ANIMATION */


.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }
.service-card:nth-child(9) { animation-delay: 0.9s; }

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PROMISE SECTION  */
.promise-section {
background: linear-gradient(180deg, #122430, #183444);
  padding: 80px 20px;
  color: white;
  font-family: Arial, sans-serif;
}

.promise-box {
  position: relative;
  max-width: 1100px;
  margin: auto;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  padding: 50px 0 30px;
}

/* THIS is the important part */
.promise-title {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
background: #122430;
  padding: 0 20px;
  color: #39c0d3;
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 14px;
  white-space: nowrap;
}

.promise-container {
  display: flex;
  text-align: center;
}

.promise-item {
  flex: 1;
  padding: 30px 20px;
  border-right: 1px solid rgba(255,255,255,0.15);
}

.promise-item:last-child {
  border-right: none;
}

.promise-item i {
  font-size: 30px;
  color: #39c0d3;
  margin-bottom: 15px;
}

.promise-item p {
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 1px;
}

/* Mobile */
@media (max-width: 768px) {
  .promise-container {
    flex-direction: column;
  }

  .promise-item {
    border-right: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
  }

  .promise-item:last-child {
    border-bottom: none;
  }
}

/* FOOTER */
footer {
  padding: 20px 40px;
  background: #f8fafc;
  color:#020617;
  vertical-align:middle;
}
footer a, footer a:visited {
 color:#020617;
 text-decoration:none;
}
.foot {
  display: flex;
  justify-content: space-between;
 align-items: center; 
}
@media (max-width:550px) {
  .foot {
  display: inline;
  }
}
footer img { max-width:100px}

    .social {
      font-size:28px;
    }
    .social img { width:32px; padding-left:10px; box-sizing:border-box}

 

/* SUBPAGE HEADER */
    .topservice {
      background:url('images/driveway.png') center/cover no-repeat;
      height:60vh;
      display:flex;
      align-items:center;
      justify-content:right;
	padding-top:0px;
     padding-right:10%;
      text-align:center;
      position:relative;
    }


    .topservice::after {
      content:"";
      position:absolute;
      inset:0;
      background:rgba(0,0,0,0.3);
    }

    .topservice h1 {
      position:relative;
      z-index:2;
      font-size:2.5rem;
  text-shadow:
    0 2px 10px rgba(0,0,0,0.55),
    0 4px 25px rgba(0,0,0,0.45);
    }


@media (max-width:568px) {
    .topservice {
	padding:60px 10px 0 10px;
      justify-content:center;
      align-items:flex-end;
  }
}

/* SHORT SCREEN HEIGHT FIX (landscape phones) */
@media (max-height: 600px) {
    .topservice {
     padding-right:2%;
      height:70vh;
    }
}

/* SERVICES PAGE */

 .container {

  grid-template-columns: repeat(100px, 1fr);
  gap: 15px;
  padding: 20px;
    }

    .service {
      display:flex;
      align-items:center;
      gap:20px;
      padding:20px 0;
      border-bottom:1px solid #1e293b;
    }

    .serviceicon {
      font-size:28px;
      background:#14b8a6;
      padding:12px;
      border-radius:10px;
    }

    .service h3 { margin:0; }
    .service p { margin:5px 0 0; color:#94a3b8; }

    .cta-box {
      background:#14b8a6;
      padding:40px;
      box-sizing:border-box;
      text-align:center;
      border-radius:12px;
      margin:20px auto;
      width:90%;
      max-width:800px;
    }

    .cta-box h2 { margin-bottom:10px; }
    .cta-box a {
      display:inline-block;
      margin-top:15px;
      padding:12px 25px;
      background:white;
      color:#0f172a;
      text-decoration:none;
      border-radius:8px;
      font-weight:600;
    }



/* ABOUT PAGE */
.about-section {
  padding:100px 40px;
  background:#f8fafc;
  color:#183444;
}

.about-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:60px;
  align-items:flex-start;
  max-width:1200px;
  margin:0 auto;
}

.about-text h2 {
  font-size:2.5rem;
  margin-bottom:20px;
}

.about-text h3 {
  color:#14b8a6;
  margin-bottom:20px;
}

.about-text p,
.about-text li {
  line-height:1.8;
  color:#334155;
}

.about-text ul {
  padding-left:20px;
}

.about-image {
  min-height:400px;
  border-radius:20px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(0,0,0,0.12);
}

.about-image img {
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}


/* MOBILE */
@media (max-width:768px) {

  .about-grid {
    grid-template-columns:1fr;
  }

  .about-section,
  .keyword-section {
    padding:70px 20px;
  }

}


/* WHY SECTION */
.why-section {
  position: relative;
  overflow: hidden;
  padding: 140px 40px;
  background:
    linear-gradient(
      to right,
      rgba(2,6,23,0.82) 0%,
      rgba(2,6,23,0.48) 45%,
      rgba(2,6,23,0.2) 70%
    ),
    url('images/cleanhouse.jpg') center/cover no-repeat;
  color: white;
}

/* subtle glow overlay */
.why-section::before {
  content: "";
  position: absolute;
  inset: 0;

  background:
    radial-gradient(circle at top left,
      rgba(20,184,166,0.25),
      transparent 35%);

  pointer-events: none;
}

/* content wrapper */
.why-content {
  position: relative;
  z-index: 2;
}




/* heading */
.why-section h2 {
  font-size: 28pt;

  line-height: 1;

  margin-bottom: 15px;

  text-transform: uppercase;

  text-shadow:
    0 3px 12px rgba(0,0,0,0.5),
    0 8px 30px rgba(0,0,0,0.35);
}

/* accent text */
.why-section h2 span {
  color: #14b8a6;
}

/* subheading */
.why-section h3 {
  font-size: 1.4rem;

  color: #cbd5e1;

  margin-bottom: 30px;

  font-weight: 500;

  text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

/* paragraph */
.why-section p {
  font-size: 1.05rem;

  line-height: 1.9;

  color: rgba(255,255,255,0.92);

  margin-bottom: 22px;

  text-shadow: 0 2px 8px rgba(0,0,0,0.45);
}

/* FEATURE GRID */
.why-features {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(220px,1fr));

  gap: 18px;

  margin-top: 45px;
}

/* FEATURE CARD */
.why-feature {
  background: rgba(255,255,255,0.08);

  border: 1px solid rgba(255,255,255,0.1);

  backdrop-filter: blur(12px);

  border-radius: 18px;

  padding: 22px;

  transition: all 0.35s ease;
}

.why-feature:hover {
  transform: translateY(-8px);

  background: rgba(20,184,166,0.12);

  border-color: rgba(20,184,166,0.35);

  box-shadow: 0 15px 35px rgba(0,0,0,0.25);
}

/* ICON */
.why-feature i {
  width: 58px;
  height: 58px;

  border-radius: 14px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: linear-gradient(135deg, #14b8a6, #0ea5e9);

  margin-bottom: 16px;

  font-size: 22px;

  color: white;

  box-shadow: 0 10px 25px rgba(20,184,166,0.35);
}

.why-feature h4 {
  margin-bottom: 10px;

  font-size: 1rem;
}

.why-feature p {
  margin: 0;

  font-size: 0.92rem;

  line-height: 1.6;

  color: rgba(255,255,255,0.82);
}

/* MOBILE */
@media (max-width:768px) {

  .why-section {
    padding: 100px 20px;
  }

  .why-section h2 {
    font-size: 20pt;
  }

}



.blurback-notusing {
  background: rgba(0,0,0,0.18);
  backdrop-filter: blur(6px);
  padding: 35px;
  border-radius: 20px;
}
