/* 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;              /* 1. Enable flex layout */
  align-items: center;        /* 2. Vertically center children */
  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;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
    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);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.separator {
    display: inline-block;
    font-weight: 700;
    margin: 0 10px;
    color: white;
}

/* Finance Section (Dark Gradient) */
.finance-section {
    background: linear-gradient(135deg, #072B59, #063573);
    padding: 40px 15%;
    text-align: center;
    color: white;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.finance-content {
    position: relative;
    z-index: 2;
}

.finance-section h1 {
    font-size: 1.75rem;
    margin-bottom: 20px;
    color: white;
}

.finance-section p {
    font-size: 1.125rem;
    margin-bottom: 20px;
    color: white;
}

.finance-section ul {
    list-style-type: disc;
    margin: 5px auto;
    padding-left: 20px;
    text-align: left;
    display: inline-block;
    color: white;
}

.finance-section li {
    margin-bottom: 15px;
    font-size: 19px;
}

.finance-section .highlight {
    font-size: 20px;
    font-weight: 800;
    margin: 10px 0 20px 0;
    color: white;
}

.finance-section .disclaimer {
    font-size: 0.90em;
    color: rgba(255,255,255,0.8);
    margin-top: 20px;
}

/* Background Circles in Finance Section */
.circle-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}
.circle {
    position: absolute;
    border: 6px solid rgba(211,211,211,0.16);
    border-radius: 50%;
    background: transparent;
}
.circle1 {
    width: 420px;
    height: 420px;
    top: -120px;
    left: -130px;
    animation: pulseDrift1 60s infinite ease-in-out;
}
.circle2 {
    width: 380px;
    height: 380px;
    top: 5%;
    right: -120px;
    animation: pulseDrift2 60s infinite ease-in-out;
    animation-delay: 15s;
}
.circle3 {
    width: 476px;
    height: 476px;
    bottom: -220px;
    left: 40px;
    animation: pulseDrift3 60s infinite ease-in-out;
    animation-delay: 30s;
}

@keyframes pulseDrift1 {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.03) translate(-70px, 40px); }
}
@keyframes pulseDrift2 {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.03) translate(-90px, 80px); }
}
@keyframes pulseDrift3 {
    0%, 100% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.03) translate(-40px, -40px); }
}

/* Why Choose Section (White Background) */
.why-choose-section {
    background-color: #ffffff;
    padding: 40px 50px;
    margin: 20px auto;
    font-family: 'IBM Plex Sans', sans-serif;
    color: #072B59;
}
.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;
    color: #072B59;
}
.why-choose-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: #072B59;
    max-width: 700px;
    line-height: 1.5;
    margin: 0 auto;
}
.why-choose-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .5rem;
    align-items: center;
}
.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: #072B59!important;
    margin-right: 15px !important;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem) !important;
}
.fa-dollar-sign {
    margin-left: 5px;
}
.up-text {
    margin-left: 5px;
}
.feature-text strong {
    font-weight: 700;
}
.why-choose-final-callout {
    font-size: 1rem;
    color: #072B59;
    font-weight: 600;
    margin-top: 0.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;
    width: 100%;
    margin: 40px auto 0;
    max-width: 1300px;
}
@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);
    position: relative;
    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;
    gap: 2px;
}
.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;
    font-weight: 600;
    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);
}

/* Our Process Section (Inverted Colors) */
.installation-process {
    background: linear-gradient(to top, #1b335e, #1d4ea3);
    padding: 60px 50px;
    margin:  0 auto;
    text-align: center;
    color: #f9fafc;
}
.installation-process .content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}
.installation-process h2 {
    font-size: 2rem;
    color: #f9fafc;
    margin-bottom: 10px;
}
.installation-process .subtitle {
    font-size: 1.25rem;
    color: #f9fafc;
    margin-bottom: 30px;
}
/* Updated .process-steps to stack steps vertically on desktop */
.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: left;
    margin-bottom: 30px;
    font-size: 1.25em;
}
.step {
    display: flex;
    align-items: center;
    gap: 15px;
}
.installation-process .step-num {
    font-size: 42px;
    font-weight: bold;
    background-color: #ffffff;
    color: #072B59;
    padding: 16px 24px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-right: 15px;
}
.step-divider {
    width: 60%;
    height: 1px;
    background-color: rgba(255,255,255,0.2);
    margin: 10px auto;
}
.installation-process .btn-primary {
    display: inline-block;
    background-color: #f9fafc;
    color: #072B59;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 30px;
    font-size: 1.25rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.installation-process .btn-primary:hover {
    background-color: #e0e5ea;
}

/* New 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;
    max-width: 1300px;
    font-family: 'IBM Plex Sans', sans-serif;
  }
  .faq-container h2 {
    text-align: center;
    font-family: 'IBM Plex Sans', sans-serif;
    font-weight: 700;
    font-size: 36px;
    margin-bottom: 30px;
    color: #072B59;
  }
  .accordion .accordion-item {
    border-bottom: 1px solid #e5e5e5;
    padding: 2em 0;
  }
  .accordion button {
    position: relative;
    display: block;
    text-align: left;
    width: 100%;
    color: #214277;
    font-size: 1.45rem;
    font-weight: 500;
    border: none;
    background: 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: 22px;
  }
  .accordion button .icon::before {
    display: block;
    position: absolute;
    content: '';
    top: 9px;
    left: 5px;
    width: 10px;
    height: 2px;
    background: currentColor;
  }
  .accordion button .icon::after {
    display: block;
    position: absolute;
    content: '';
    top: 5px;
    left: 9px;
    width: 2px;
    height: 10px;
    background: currentColor;
  }
  .accordion button[aria-expanded='true'] {
    color: #1b3661;
    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;
    will-change: opacity, max-height;
  }
  .accordion .accordion-content {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 200ms linear, max-height 200ms linear;
    will-change: opacity, max-height;
  }
  .accordion .accordion-content p {
    font-size: 19px;
    font-weight: 400;
    margin: 2em 0;
  }
  
  .accordion .accordion-content p strong{
    color: #162d53;
    font-weight: 600;
  
  }
  
  .accordion .accordion-content p a{
    color: #162d53;
    text-decoration: none;
    font-weight: bold;
  }
  
  @media(max-width:991.98px) {
    .accordion .accordion-content p {
        font-size: 17px;
        font-weight: 375;
        margin: 1.75em 0;
    }
    .accordion button {
        font-size: 22px;
        font-weight: 500;
    }
    .faq-container h2 {
        font-size: 32px;
    }
  }
  @media(max-width:768px) {
    .accordion .accordion-content p {
        font-size: 14px;
        font-weight: 300;
        margin: 1em 0;
    }
    .accordion button {
        font-size: 17px;
        font-weight: 400;
    }
    .faq-container h2 {
        font-size: 25px;
    }
  }
  
  @media(max-width:378px) {
  
    .accordion button[aria-expanded='true'] + .accordion-content {
      max-height: 9.85em;
  
    }
  }

/* ------------------ */
/* Media Queries */
/* ------------------ */


/* Hide Google Reviews Widget on screens smaller than 425px */
@media (max-width: 425px) {
  .google-reviews-widget {
    display: none !important;
  }
}

/* FAQ Section adjustments for mobile (below 500px) */
@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;
    }
}

/* Process Section adjustments for screens below 500px */
@media (max-width: 500px) {
    .installation-process {
      padding: 30px 20px;
    }
    .installation-process h2 {
      font-size: 1.75rem;
    }
    .installation-process .subtitle {
      font-size: 1rem;
    }
    .process-steps {
      flex-direction: column;
      align-items: center;
      font-size: 1.1em;
    }
    .step {
      flex-direction: column;
      align-items: center;
      text-align: center;
    }
    .installation-process .step-num {
      font-size: 28px;
      padding: 8px 12px;
      margin-bottom: 10px;
    }
}

/* Reduce Hero section font sizes on screens below 375px */
@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: 415px) {
    .header .google-reviews-widget {
        order: 2;
        margin: 0 auto;
        flex: 1;
        justify-content: center;
        width: auto;
        margin-left: -20px;
    }
    .hero-content h1 {
        font-size: 1.3rem;
        margin-bottom: 20px;
        color: white;
        text-shadow: 1px 2px 3px rgba(0, 0, 0, 0.6);
    }
    .hero-content h2 {
        font-size: 1.05rem;
        line-height: 1.4;
    }
}

/* Why Choose Section adjustments for mobile (below 768px) */
@media (max-width: 768px) {
  .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 {
    margin-bottom: 25px;
    font-size: 1.35rem;
  }
  .hero-content h2 {
    margin-bottom: 25px;
    font-size: 1.15rem
  }
}

/* Brands Section and Footer: switch to single column on screens below 675px */
@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%;
  }
}
