/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Container */
.container {
  max-width: 2222px; /* Updated max-width */
  margin: 0 auto;
  font-family: 'IBM Plex Sans', sans-serif;
}

/* Hero Section */
.hero-section {
  background: url('/images/happy-family-at-home-large.webp') no-repeat 50% 0%;
  height: 73vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-content {
  text-align: center;
  transform: translateY(-10%);
}
.hero-content h1 {
  font-size: 2.00rem;
  margin-bottom: 40px;
  color: white;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6);
}
.hero-content h2 {
  font-size: 1.4rem;
  color: white;
  max-width: 800px;
  margin: 0 auto 40px auto;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6);
}

/* Button Group */
.button-group {
  text-align: center;
}
.button-row {
  display: inline-block;
  margin: 10px 0;
}
.button {
  display: inline-block;
  margin: 0 10px;
  padding: 15px 25px;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  cursor: pointer;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}
.call-now {
  color: #072B59;
  background-color: #fff;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.call-now:hover {
  color: #1c3663;
  transform: translateY(-2px);
}
.estimate {
  color: #fff;
  background-color: #072B59;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}
.estimate:hover {
  background-color: #162f5b;
  transform: translateY(-2px);
}
.separator {
  display: inline-block;
  font-weight: 700;
  margin: 0 10px;
  color: white;
}

/* Why Choose Section (White Background) */
.why-choose-section {
  background-color: #072B59;
  padding: 40px 50px;
  margin: 0 auto;
  color: #ffffff;
}
.why-choose-container {
  max-width: 1200px;
  margin: 0 auto;
}
.why-choose-header {
  text-align: center;
  margin-bottom: 2rem;
}
.why-choose-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.why-choose-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 700px;
  line-height: 1.5;
  margin: 0 auto;
}
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  align-items: start;
}
.why-choose-image-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}
.why-choose-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 6px;
}
.why-choose-text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  text-align: left;
}
.why-choose-list {
  list-style: none;
  margin: 0;
  padding: 0;
  margin: .5rem 0;
}
.feature {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.5;
}
.feature-icon {
  color: #ffffff;
  margin-right: 15px;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}
.fa-dollar-sign {
  margin-left: 5px;
}
.up-text {
  margin-left: 5px;
}
.feature-text strong {
  font-weight: 700;
}
.why-choose-final-callout {
  font-size: 1rem;
  font-weight: 600;
  margin-top: .5rem;
}

/* Fancy, Subtle Divider */
.section-divider {
  margin: 40px auto;
  width: 80%;
  position: relative;
  height: 20px;
}
.section-divider:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(to right, transparent, #072B59, transparent);
  transform: translateY(-50%);
  opacity: 0.3;
}
.section-divider:after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 4px;
  height: 4px;
  background-color: #072B59;
  border-radius: 50%;
  opacity: 0.5;
}

/* Reviews Grid & Review Card */
.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin: 40px auto 0;
}
@media (min-width: 768px) {
  .reviews-grid {
      grid-template-columns: 1fr 1fr;
  }
}
.review-card {
  background-color: #ffffff;
  color: #4e4e4e;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}
.review-card:hover {
  transform: scale(1.02);
}
.review-card .google-icon {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
}
.review-card .google-icon svg {
  width: 100%;
  height: auto;
}
.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.reviewer-pfp {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 15px;
}
.review-meta {
  display: flex;
  flex-direction: column;
}
.reviewer-name {
  font-size: 16px;
  font-weight: 600;
  color: #234882;
}
.review-date {
  font-size: 12px;
  color: #666666;
}
.review-stars {
  font-size: 20px;
  color: #FFB600;
  margin-bottom: 10px;
}
.review-text {
  font-size: 16px;
  line-height: 1.4;
}

/* Slide-in on scroll animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.in-view {
  opacity: 1;
  transform: translateY(0);
}
.fade-from-right {
  transform: translateX(20px);
}
.fade-from-right.in-view {
  transform: translateX(0);
}
.fade-from-left {
  transform: translateX(-20px);
}
.fade-from-left.in-view {
  transform: translateX(0);
}

/********* SERVICE AREA SECTION *********/
.service-area-section {
  width: 100%;
  padding: 60px 2%;
  background-color: #ffffff;
}
.service-area-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 20px;
  text-align: center;
}
.service-area-text-block {
  order: 1;
  width: 100%;
  max-width: 700px;
  margin-top: -7px;
}
.service-area-heading {
  font-size: 32px;
  color: #234882;
  margin-bottom: 10px;
  line-height: 1.2;
}
.service-area-subheading {
  font-size: 20px;
  font-weight: 600;
  color: #d41f19;
  margin-bottom: 15px;
  line-height: 1.4;
}
.service-area-text-block p {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 10px;
}
.service-area-list {
  list-style: none;
  margin: 18px auto;
  padding: 0;
  text-align: left;
}
.service-area-list li {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}
.service-area-list li::before {
  content: '>';
  color: #F2AC29;
  margin-right: 8px;
}
.service-area-map-block {
  order: 2;
  width: 100%;
  max-width: 650px;
  border-radius: 8px;
  overflow: hidden;
}
.service-area-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
  transform: scale(2.2);
  cursor: zoom-in;
  transition: outline 0.2s ease;
}
.service-area-image:hover,
.service-area-image:focus {
  outline: 3px solid rgba(243, 21, 13, 0.3);
}
@media (min-width: 430px) {
  .two-column-list {
      columns: 2 auto;
      column-gap: 40px;
  }
}
@media (min-width: 992px) {
  .service-area-container {
      flex-direction: row;
      align-items: flex-start;
      text-align: left;
  }
  .service-area-text-block {
      order: 2;
      max-width: 500px;
  }
  .service-area-map-block {
      order: 1;
      width: 650px;
      height: 560px;
  }
}

/********* MAINTENANCE PLAN SECTION *********/
.maintenance-plan-section {
  background-color: #f7f7f7;
  padding: 60px 20px;
  font-family: 'Lato', sans-serif;
}
.maintenance-plan-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}
.maintenance-plan-title {
  font-family: 'IBM Plex Sans', sans-serif;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 10px;
  color: #072B59;
}
.maintenance-plan-subtitle {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.5;
  color: #444;
}
.maintenance-plan-highlights {
  list-style: none;
  padding: 0;
  margin: 0 auto 40px;
  max-width: 800px;
  text-align: left;
}
.maintenance-plan-highlights li {
  position: relative;
  margin-bottom: 20px;
  padding-left: 36px;
  font-size: 18px;
  line-height: 1.4;
}
.maintenance-plan-highlights li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: #F2AC29;
  font-size: 24px;
  font-weight: 700;
}
.maintenance-plan-disclaimer-note {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
}
.maintenance-plan-table-wrapper {
  overflow-x: auto;
  margin-bottom: 30px;
}
.maintenance-plan-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  max-width: 800px;
  font-size: 16px;
  text-align: left;
}
.maintenance-plan-table thead {
  background-image: linear-gradient(to bottom, #063573, #072B59);
  color: #fff;
}
.maintenance-plan-table th,
.maintenance-plan-table td {
  padding: 14px 20px;
  border: 1px solid #ddd;
}
.maintenance-plan-table th {
  font-weight: 700;
  font-family: 'IBM Plex Sans', sans-serif;
}
.maintenance-plan-table tbody tr:nth-child(even) {
  background-color: #f0f0f0;
}
.maintenance-plan-button-wrap {
  margin: 25px 0;
}
.maintenance-plan-cta-btn {
  display: inline-block;
  text-decoration: none;
  background-image: linear-gradient(to bottom, #063573, #072B59);
  color: #fff;
  font-weight: 600;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  padding: 16px 34px;
  border-radius: 3em;
  transition: all 0.3s ease;
}
.maintenance-plan-cta-btn:hover {
  filter: brightness(115%);
}
.maintenance-plan-disclaimer {
  font-size: 14px;
  color: #666;
  margin-top: 25px;
  line-height: 1.4;
}

/* Final CTA Section */
.final-cta-section {
  background: url('/images/san-tan-valley-aerial-shot.webp') no-repeat center center;
  background-size: cover;
  padding: 60px 10px;
  text-align: center;
  color: white;
}
.final-cta-section .cta-content h1 {
  font-size: 1.75rem;
  margin-bottom: 20px;
  text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6);
}

/*************************************************************
* FAQ CONTAINER & ACCORDION
*************************************************************/
.faq-container {
  margin: 0 auto;
  padding: 4rem;

  font-family: 'IBM Plex Sans', sans-serif;
  background-color: #072B59;
}

.faq-width {
  max-width: 1300px;
  margin: 0 auto;
}

.faq-container h2 {
  text-align: center;
  font-weight: 700;
  font-size: 36px;
  margin-bottom: 30px;
  color: white;
}
.accordion .accordion-item {
  border-bottom: 1px solid #e5e5e5;
  padding: 2em 0;
}
.accordion button {
  position: relative;
  display: block;
  width: 100%;
  text-align: left;
  color: white;
  font-size: 1.45rem;
  font-weight: 500;
  background: none;
  border: none;
  outline: none;
}
.accordion button:hover,
.accordion button:focus {
  cursor: pointer;
}
.accordion button .accordion-title {
  padding: 1em 1.25em 1em 0;
}
.accordion button .icon {
  display: inline-block;
  position: absolute;
  right: 0;
  width: 22px;
  height: 22px;
  border: 1.25px solid;
  border-radius: 50%;
}
.accordion button .icon::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 5px;
  width: 10px;
  height: 2px;
  background: currentColor;
}
.accordion button .icon::after {
  content: '';
  position: absolute;
  top: 5px;
  left: 9px;
  width: 2px;
  height: 10px;
  background: currentColor;
}
.accordion button[aria-expanded='true'] {
  color: white;
  font-weight: 600;
}
.accordion button[aria-expanded='true'] .icon::after {
  width: 0;
}
.accordion button[aria-expanded='true'] + .accordion-content {
  opacity: 1;
  max-height: 9em;
  transition: all 200ms linear;
}
.accordion .accordion-content {
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 200ms linear, max-height 200ms linear;
}
.accordion .accordion-content p {
  font-size: 19px;
  margin: 2em 0;
  color: white;
}
.accordion .accordion-content p strong {
  color: white;
  font-weight: 600;
}
.accordion .accordion-content p a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.faq-link {
  list-style: none;
  font-weight: bold;
}

/* Media Queries */
@media (max-width: 991.98px) {
  .faq-container h2 {
      font-size: 32px;
  }
  .accordion .accordion-content p {
      font-size: 17px;
      margin: 1.75em 0;
  }
  .accordion button {
      font-size: 22px;
  }
}
@media (max-width: 768px) {
  .faq-container h2 {
      font-size: 25px;
  }
  .accordion .accordion-content p {
      font-size: 14px;
      margin: 1em 0;
  }
  .accordion button {
      font-size: 17px;
  }
  .why-choose-grid {
      display: flex;
      flex-direction: column;
      align-items: center;
  }
  .why-choose-image-wrap {
      order: 2;
  }
  .why-choose-text-wrap {
      order: 3;
      text-align: left;
      width: 100%;
      padding: 0;
  }
  .why-choose-image {
      width: 80%;
      margin: 10px auto;
  }
  .why-choose-final-callout {
      font-size: 1.25rem;
      text-align: center;
      margin-top: 1rem;
  }
  .hero-section {
      background: url('/images/happy-family-at-home.webp') no-repeat 64% 50%;
      padding: 40px 10px;
      height: 70vh;
  }
  .hero-content {
      transform: translateY(0);
  }
  .hero-content h1 {
      font-size: 1.35rem;
      margin-bottom: 25px;
  }
  .hero-content h2 {
      font-size: 1.15rem;
      margin-bottom: 25px;
  }
}
@media (max-width: 675px) {
  .brands-content {
      flex-direction: column;
      align-items: center;
  }
  .footer-content {
      flex-direction: column;
      align-items: center;
  }
  .footer-section {
      margin-bottom: 20px;
      text-align: center;
  }
  .circle2 {
      top: 25%;
  }
}
@media (max-width: 500px) {
  .accordion button .accordion-title {
      font-size: 1.3rem;
  }
  .accordion .accordion-content p {
      font-size: 1rem;
      margin: 1.5em 0;
  }
  .accordion button[aria-expanded='true'] + .accordion-content {
      max-height: 200px;
  }
}
@media (max-width: 425px) {
  .google-reviews-widget {
      display: none !important;
  }
}
@media (max-width: 415px) {
  .hero-content h1 {
      font-size: 1.3rem;
      margin-bottom: 20px;
      text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6);
  }
  .hero-content h2 {
      font-size: 1.05rem;
      line-height: 1.4;
  }
}
@media (max-width: 378px) {
  .accordion button[aria-expanded='true'] + .accordion-content {
      max-height: 9.85em;
  }
}
@media (max-width: 375px) {
  .hero-content h1 {
      font-size: 1.3rem;
  }
  .hero-content h2 {
      font-size: 1rem;
  }
  .button {
      padding: 10px 20px;
      font-size: 1rem;
  }
  .accordion button[aria-expanded='true'] + .accordion-content {
      max-height: 285px;
  }
}

@media (max-width: 335px) {
  .separator {
    margin-top: 10px;
  }
}
