/* CSS Variables */
:root {
  --brand-black: #1a1a1a;
  --white: #ffffff;
  --brand-green: #d1ff75;
  --text-dark: #333333;
  --text-mid: #666666;
  --text-light: #999999;
  --light-gray: #f4f4f4;

  --container-width: 1200px;
  --radius-medium: 6px;
  --radius-large: 8px;
  --radius-circle: 50%;

  --font-extrabold: 800;
  --font-bold: 700;
  --font-semibold: 600;
  --font-medium: 500;

  --transition-fast: all 0.2s ease;
  --shadow-button: 3px 3px 0px 0px #8cb340;
}

/* Global Resets and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Switzer", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

/* Page Hero Section */
.page-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 600px;
  height: auto;
  padding: 2rem 1rem;
  background-color: var(--brand-black);
  overflow: hidden;
  margin-bottom: 0;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.9;
  filter: brightness(1) contrast(1);
  z-index: 1;
  animation: fadeIn 0.6s ease-in forwards;
}

.webp .page-hero::before {
  background-image: url("/images/banners/office.webp");
}

.no-webp .page-hero::before {
  background-image: url("/images/banners/office.png");
}
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 0.7;
  }
}
.page-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.5) 100%
  );
  z-index: 2;
}

.page-hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--container-width);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 0 1rem;
  height: 100%;
  margin-bottom: 6rem;
}

.page-hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  text-align: center;
  gap: 0.75rem;
  width: 100%;
}

.page-hero__content h1 {
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: var(--font-extrabold);
  color: var(--white);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}

.page-hero__subtitle {
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: white;
  max-width: 700px;
  margin: 0;
  line-height: 1.6;
  opacity: 0.9;
}

.hero-hook {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: var(--font-semibold);
  color: var(--brand-green);
  background: rgba(209, 255, 117, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-medium);
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Hero Bottom CTA */
.hero-bottom-cta {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: fit-content;
  background-color: rgba(26, 26, 26, 0.8);
  padding: 2.5rem 0;
  z-index: 10;
}

.hero-bottom-cta__container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.hero-bottom-cta__input-wrapper {
  position: relative;
  width: 100%;
  max-width: 300px;
}

.hero-bottom-cta__location-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
}

.hero-bottom-cta__input {
  width: 100%;
  height: 50px;
  padding: 0 0.75rem 0 2.25rem;
  font-size: 0.95rem;
  background-color: var(--white);
  border: none;
  border-radius: var(--radius-medium);
}
.hero-bottom-cta p {
  color: rgb(205, 205, 205);
}
.hero-bottom-cta__button {
  height: 50px;
  padding: 0 1.5rem;
  font-size: 0.95rem;
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  background-color: var(--brand-green);
  border: none;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: var(--transition-fast);
  font-family: "Switzer", sans-serif;
  white-space: nowrap;
  box-shadow: 3px 3px 0px 0px #8cb340;
  margin-right: 16px;
}

.hero-bottom-cta__button:hover {
  transform: translateY(-2px) translateX(-2px);
  box-shadow: 4px 4px 0px 0px #8cb340;
}

.hero-bottom-cta__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: 3px 3px 0px 0px #8cb340;
}

/* Section Header Styles */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--font-extrabold);
  color: var(--text-dark);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.residential-services .section-heading {
  position: relative;
  text-align: center;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: var(--font-extrabold);
  color: var(--text-dark);
  margin-bottom: 3rem;
  margin-top: 1rem;
  padding-left: 0;
}

.highlight {
  position: relative;
  z-index: 1;
  display: inline;
}

.highlight::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 12px;
  background-color: var(--brand-green);
  z-index: -1;
}

.section-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  color: var(--text-mid);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

.section-hook {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: var(--font-semibold);
  color: var(--text-mid);
  background: rgba(0, 0, 0, 0.05);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-medium);
  display: inline-block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

/* Commercial Services Section */
.residential-services {
  padding: 5rem 1rem;
  background-color: var(--light-gray);
}

.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.service-card {
  background-color: var(--white);
  border-radius: var(--radius-large);
  padding: 2rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-circle);
  background-color: var(--light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  stroke: var(--brand-black);
}

.service-card h3 {
  font-size: 1.25rem;
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.service-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-mid);
}

/* Banner CTA Section */
.banner-cta {
  padding: 5rem 1rem;
  background-color: var(--brand-black);
  position: relative;
  background-image: radial-gradient(
    rgba(255, 255, 255, 0.1) 1px,
    transparent 1px
  );
  background-size: 15px 15px;
}

.banner-cta__container {
  max-width: var(--container-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.banner-cta__header {
  flex: 1;
  text-align: left;
  margin-bottom: 0;
}

.banner-cta__hook {
  color: var(--brand-green);
  background: rgba(209, 255, 117, 0.15);
}

.banner-cta__heading {
  color: var(--white);
}

.banner-cta__subtitle {
  color: rgba(255, 255, 255, 0.8);
  text-align: center;
  margin: 0 0 1.5rem 0;
}

.banner-cta__trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.banner-cta__trust-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-medium);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

.banner-cta__trust-badge svg {
  stroke: var(--brand-green);
  width: 16px;
  height: 16px;
}

.banner-cta__quote-box {
  background-color: var(--white);
  padding: 2rem;
  border-radius: var(--radius-large);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  min-width: 320px;
  flex-shrink: 0;
  position: relative;
}

.banner-cta__step-pill {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--brand-green);
  color: var(--text-dark);
  font-size: 0.8rem;
  font-weight: var(--font-semibold);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.banner-cta__quote-box h3 {
  font-size: 1.2rem;
  font-weight: var(--font-semibold);
  margin-bottom: 1.25rem;
  text-align: center;
  color: var(--text-dark);
}

.banner-cta__input-wrapper {
  position: relative;
  margin-bottom: 1rem;
}

.banner-cta__location-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-mid);
}

.banner-cta__input {
  width: 100%;
  height: 50px;
  padding: 0 0.75rem 0 2.25rem;
  font-size: 0.95rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: var(--radius-medium);
}

.banner-cta__input:focus {
  outline: none;
  border-color: var(--brand-green);
}

.banner-cta__button {
  width: 100%;
  height: 50px;
  font-size: 0.95rem;
  font-weight: var(--font-semibold);
  color: var(--text-dark);
  background-color: var(--brand-green);
  border: none;
  border-radius: var(--radius-medium);
  cursor: pointer;
  transition: var(--transition-fast);
  margin-bottom: 0.75rem;
  box-shadow: var(--shadow-button);
  font-family: "Switzer", sans-serif;
}

.banner-cta__button:hover {
  transform: translateY(-2px) translateX(-2px);
  box-shadow: 4px 4px 0px 0px #8cb340;
}

.banner-cta__button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  box-shadow: var(--shadow-button);
}

.banner-cta__no-card {
  font-size: 0.85rem;
  color: var(--text-mid);
  text-align: center;
}

/* Before & After Section */
.before-after {
  padding: 5rem 1rem;
  background-color: white;
}

.transformation-showcase {
  margin-top: 6rem;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 3rem;
}

/* Review styles */
.transformation-text {
  flex: 0 0 40%;
  max-width: 450px;
  position: relative;
  padding: 20px;
}

.review-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
  width: 100%;
}

.quote-icon {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.05;
  transform: scale(1.5);
  z-index: 0;
  margin: 0;
  padding: 0;
}

.quote-icon svg {
  color: var(--brand-black);
}

.star-rating {
  display: flex;
  margin-left: auto;
}

.star-rating .star {
  color: #fbbc05;
  font-size: 2.2rem;
  letter-spacing: -1px;
  z-index: 4;
}

.review-platform img {
  height: 24px;
  width: auto;
}

.review-text {
  font-size: clamp(1rem, 1.2vw, 1.1rem);
  line-height: 1.7;
  color: var(--text-dark);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.reviewer-name {
  font-size: 0.95rem;
  color: var(--text-mid);
  margin-bottom: 2rem;
  font-weight: var(--font-medium);
}

.review-platforms {
  display: flex;
  justify-content: center;
  flex-direction: row;
  gap: 2rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  padding-top: 1.5rem;
}

.platform-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.platform-logo {
  height: 30px;
  margin-bottom: 0.5rem;
}

.platform-logo img {
  height: 100%;
  width: auto;
}

.rating-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.rating-stars {
  display: flex;
  align-items: center;
  gap: 0.1rem;
}

.star {
  color: #fbbc05;
  font-size: 1.6rem;
  line-height: 1;
}

.rating-score {
  font-size: 1.2rem;
  font-weight: var(--font-bold);
  color: var(--text-dark);
}

.rating-percent {
  font-size: 1.2rem;
  font-weight: var(--font-bold);
  color: var(--text-dark);
}

.rating-label {
  font-size: 0.85rem;
  color: var(--text-mid);
}

/* Image styles */
.transformation-images {
  flex: 0 0 40%;
  display: flex;
  flex-direction: column;
  gap: 20px; /* Space between images */
}

.image-container {
  position: relative;
  width: 100%;
  max-height: 230px; /* Reduced height */
  border-radius: var(--radius-medium);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.image-container img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
}

.image-label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: var(--font-medium);
  z-index: 10;
}

.image-container.before .image-label {
  background-color: var(--brand-black);
  color: var(--white);
}

.image-container.after .image-label {
  background-color: var(--brand-green);
  color: var(--brand-black);
}

/* Responsive Styles */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .banner-cta__container {
    flex-direction: column;
  }

  .banner-cta__header {
    text-align: center;
  }

  .banner-cta__subtitle {
    text-align: center;
    margin: 0 auto 1.5rem;
  }

  .banner-cta__trust-badges {
    justify-content: center;
  }

  .banner-cta__quote-box {
    width: 100%;
    max-width: 450px;
  }

  .transformation-showcase {
    gap: 2.5rem;
  }

  .transformation-text {
    flex: 0 0 45%;
  }

  .transformation-images {
    flex: 0 0 50%;
  }

  .quote-icon {
    transform: scale(1.3);
  }
}

@media (max-width: 992px) {
  .before-after {
    padding: 4rem 1rem;
  }

  .transformation-showcase {
    gap: 2rem;
  }

  .transformation-text {
    flex: 0 0 45%;
    padding: 15px;
  }

  .review-platforms {
    gap: 1.5rem;
  }

  .image-container {
    max-height: 210px;
  }

  .quote-icon {
    transform: scale(1.2);
  }
}

@media (max-width: 768px) {
  .page-hero {
    min-height: 500px;
    padding: 1rem;
  }

  .page-hero__content {
    max-width: 100%;
    padding: 0 1rem;
    margin-bottom: 4rem;
  }

  .page-hero__content h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
  }

  .transformation-showcase {
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3rem;
  }

  .transformation-text {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 15px 10px;
  }

  .quote-icon {
    top: 0;
    left: 5px;
    transform: scale(1.2);
  }

  .transformation-images {
    flex: 0 0 100%;
    max-width: 550px;
    margin: 0 auto;
  }

  .image-container {
    max-height: 220px;
  }

  .image-container img {
    height: 100%;
  }

  .hero-bottom-cta__container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .hero-bottom-cta__button {
    margin-right: 0;
  }

  .hero-bottom-cta__input-wrapper,
  .hero-bottom-cta__button {
    width: 100%;
    max-width: none;
  }

  .residential-services .section-heading {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
  }
}

@media (max-width: 640px) {
  .page-hero__container {
    align-items: flex-start;
  }

  .page-hero__content {
    text-align: left;
    align-items: flex-start;
  }

  .page-hero__content h1,
  .page-hero__subtitle {
    text-align: left;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .residential-services .section-heading {
    text-align: left;
  }

  .transformation-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .before-image,
  .after-image {
    width: 85%;
  }

  .review-header {
    flex-wrap: wrap;
  }

  .star-rating {
    margin-top: 30px; /* Add space below the quote icon on small screens */
  }

  .review-platform {
    margin-top: 0.5rem;
  }

  .review-text {
    margin-bottom: 1rem;
    margin-top: 1rem;
    clear: both;
  }
}

@media (max-width: 480px) {
  .page-hero {
    min-height: 500px;
    padding: 1.5rem 1rem;
  }

  .page-hero__content h1 {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
  }

  .page-hero__subtitle {
    font-size: 0.95rem;
  }

  .hero-hook {
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
  }

  .service-icon {
    width: 60px;
    height: 60px;
  }

  .service-card h3 {
    font-size: 1.2rem;
  }

  .residential-services .section-heading {
    font-size: 1.6rem;
  }

  .transformation-images {
    max-width: 450px;
    gap: 15px; /* Reduced gap on mobile */
  }

  .image-container {
    max-height: 200px;
  }

  .image-label {
    top: 8px;
    left: 8px;
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }
}

@media screen and (max-width: 375px) {
  .transformation-text {
    padding: 10px 5px;
  }

  .review-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .star-rating {
    margin-left: 0;
    margin-top: 40px; /* More space for the quote icon */
  }

  .quote-icon {
    transform: scale(0.8);
    top: 5px;
    left: 0;
  }

  .review-platforms {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
  }

  .platform-rating {
    flex-direction: row;
    gap: 1rem;
  }

  .platform-logo {
    margin-bottom: 0;
  }

  .rating-info {
    align-items: flex-start;
  }

  .image-container {
    max-height: 180px;
  }
}
