/*
  AAPIR Plumbing LTD - Google Ads Landing Page Stylesheet
  Premium, High-Converting, Mobile-First CSS Overrides
*/

/* --- Top Marquee Scrolling Banner --- */
.lp-marquee {
  background-color: var(--primary);
  color: var(--text-white);
  overflow: hidden;
  position: relative;
  width: 100%;
  padding: 0.6rem 0;
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  border-bottom: 2px solid var(--primary-dark);
}

.lp-marquee-inner {
  display: flex;
  width: max-content;
  animation: lp-marquee-scroll 25s linear infinite;
  white-space: nowrap;
}

.lp-marquee-content {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding-right: 1.5rem;
}

.lp-marquee-dot {
  color: var(--secondary);
  font-size: 1.2rem;
  line-height: 1;
}

@keyframes lp-marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-33.3333%); }
}

/* Pause scroll on hover */
.lp-marquee:hover .lp-marquee-inner {
  animation-play-state: paused;
}

/* --- Hero Overlay Adjustments --- */
.lp-hero {
  background-image: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.85)), url('images/hero-bg.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-white);
  padding: 4.5rem 0 3rem 0;
  text-align: center;
}

.lp-hero h1 {
  font-size: 3.5rem;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 3rem;
  font-weight: 800;
}

.lp-hero p.subheadline {
  font-size: 1.3rem;
  color: var(--primary-light);
  font-weight: 600;
  margin-bottom: 2.75rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.lp-hero p.description {
  max-width: 700px;
  margin: 0 auto 4rem auto;
  font-size: 1.15rem;
  color: var(--border-color);
  line-height: 1.6;
}

.lp-hero .btn-hero-call {
  background-color: var(--secondary);
  color: var(--text-white);
  font-size: 1.25rem;
  padding: 1.1rem 2.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 20px rgba(217, 56, 30, 0.4);
  animation: lp-pulse-cta 2s infinite;
}

.lp-hero .btn-hero-call:hover {
  background-color: var(--secondary-hover);
  transform: scale(1.03);
}

@keyframes lp-pulse-cta {
  0% {
    box-shadow: 0 0 0 0 rgba(217, 56, 30, 0.5);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(217, 56, 30, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(217, 56, 30, 0);
  }
}

/* --- Trust Badges Section --- */
.lp-trust-badges-sec {
  background-color: var(--bg-white);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.lp-trust-badges-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.lp-badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lp-badge-card img {
  height: 160px;
  width: auto;
}



/* --- Direct Call Section (PPC focus) --- */
.lp-direct-call {
  background-color: var(--bg-light);
  padding: 4rem 0;
}

.lp-direct-call-card {
  max-width: 750px;
  margin: 0 auto;
  background-color: var(--bg-white);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.lp-direct-call-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background-color: var(--secondary);
}

.lp-direct-call-card h3 {
  font-size: 2rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.lp-direct-call-card p {
  font-size: 1.1rem;
  color: var(--text-medium);
  margin-bottom: 2rem;
}

.lp-direct-call-card .lp-call-button-lg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--secondary);
  color: var(--text-white);
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.5rem;
  padding: 1.25rem 2.5rem;
  border-radius: var(--border-radius-md);
  text-decoration: none;
  gap: 0.75rem;
  box-shadow: 0 4px 15px rgba(217, 56, 30, 0.3);
  transition: all var(--transition-normal);
  width: 100%;
  max-width: 500px;
}

.lp-direct-call-card .lp-call-button-lg:hover {
  background-color: var(--secondary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(217, 56, 30, 0.4);
}

.lp-direct-call-card .lp-call-button-lg svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

/* --- Services Grid Overrides --- */
.lp-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.lp-service-card {
  background-color: var(--bg-white);
  padding: 2.5rem 2rem;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  text-align: center;
}

.lp-service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.lp-service-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: var(--border-radius-full);
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
}

.lp-service-icon-wrap svg {
  width: 32px;
  height: 32px;
}

.lp-service-card h3 {
  font-size: 1.35rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.lp-service-card p {
  font-size: 0.95rem;
  color: var(--text-medium);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.lp-service-card .btn-service-call {
  background-color: var(--primary-light);
  color: var(--primary);
  border: 1px solid var(--primary);
  padding: 0.7rem 1.5rem;
  width: 100%;
  font-size: 0.95rem;
}

.lp-service-card .btn-service-call:hover {
  background-color: var(--primary);
  color: var(--text-white);
}

/* --- How it Works (Process steps) --- */
.lp-steps-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  margin-top: 3rem;
}

.lp-step-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lp-step-image-wrap {
  width: 220px;
  height: 220px;
  border-radius: var(--border-radius-full);
  border: 2px solid var(--secondary);
  overflow: hidden;
  position: relative;
  margin-bottom: 1.75rem;
  box-shadow: var(--shadow-md);
  background-color: var(--bg-light);
}

.lp-step-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.lp-step-card:hover .lp-step-image-wrap img {
  transform: scale(1.08);
}

.lp-step-icon-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-full);
  background-color: var(--bg-white);
  border: 2px solid var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  z-index: 2;
}

.lp-step-icon-badge svg {
  width: 24px;
  height: 24px;
  fill: var(--secondary);
}

.lp-step-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  color: var(--text-dark);
}

.lp-step-card p {
  font-size: 1rem;
  color: var(--text-medium);
  line-height: 1.5;
  max-width: 280px;
}

/* --- Mid-page Call Banner --- */
.lp-mid-banner {
  background-image: linear-gradient(rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.9)), url('images/hero-bg.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: var(--text-white);
  padding: 5rem 0;
  text-align: center;
}

.lp-mid-banner h2 {
  font-size: 2.5rem;
  color: var(--text-white);
  margin-bottom: 1rem;
  font-weight: 800;
}

.lp-mid-banner p {
  font-size: 1.15rem;
  color: var(--border-color);
  max-width: 600px;
  margin: 0 auto 2.5rem auto;
}

.lp-mid-banner-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lp-mid-banner .btn-banner-call {
  background-color: var(--bg-white);
  color: var(--text-dark);
  font-size: 1.35rem;
  padding: 1.1rem 2.5rem;
  font-family: var(--font-header);
  font-weight: 800;
  border-radius: var(--border-radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 420px;
  justify-content: center;
}

.lp-mid-banner .btn-banner-call:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.lp-mid-banner .btn-banner-call svg {
  width: 24px;
  height: 24px;
  fill: var(--primary);
}

/* --- Testimonials Layout --- */
.lp-testimonial-sec {
  background-color: var(--bg-white);
  padding: 5rem 0;
}

.lp-testimonial-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.lp-testimonial-image img {
  border-radius: var(--border-radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.lp-testimonial-bubble {
  position: relative;
  background-color: var(--bg-light);
  border-radius: var(--border-radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
}

.lp-testimonial-avatar {
  width: 80px;
  height: 80px;
  border-radius: var(--border-radius-full);
  overflow: hidden;
  margin: 0 auto 1.5rem auto;
  border: 3px solid var(--primary);
  box-shadow: var(--shadow-sm);
}

.lp-testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lp-testimonial-bubble p.quote {
  font-size: 1.35rem;
  color: var(--text-dark);
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  font-weight: 500;
  text-align: center;
}

.lp-testimonial-bubble .author {
  font-family: var(--font-header);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text-dark);
  text-align: center;
  display: block;
}

.lp-testimonial-bubble .author-desc {
  font-size: 0.9rem;
  color: var(--text-medium);
  text-align: center;
  display: block;
}

/* --- Plumbing Cross Sell --- */
.lp-cross-sell {
  background-color: var(--secondary);
  color: var(--text-white);
  padding: 3.5rem 0;
  overflow: hidden;
}

.lp-cross-sell-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 3rem;
  align-items: center;
}

.lp-cross-sell-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.lp-cross-sell-mascot {
  width: 110px;
  height: auto;
  flex-shrink: 0;
}

.lp-cross-sell-left h2 {
  font-size: 2.2rem;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  font-weight: 800;
}

.lp-cross-sell-left p {
  color: var(--primary-light);
  margin-bottom: 0;
  font-size: 1.1rem;
}

.lp-cross-sell-right .btn-cross-sell-call {
  background-color: var(--bg-white);
  color: var(--secondary);
  font-size: 1.2rem;
  font-family: var(--font-header);
  font-weight: 800;
  padding: 1rem 2rem;
  border-radius: var(--border-radius-md);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  white-space: nowrap;
}

.lp-cross-sell-right .btn-cross-sell-call:hover {
  background-color: var(--primary-light);
  transform: translateY(-2px);
}

.lp-cross-sell-right .btn-cross-sell-call svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
  .lp-steps-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .lp-step-card {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
    max-width: 550px;
    margin: 0 auto;
    align-items: center;
  }
  
  .lp-step-image-wrap {
    width: 140px;
    height: 140px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .lp-step-card p {
    max-width: 100%;
  }

  .lp-testimonial-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .lp-testimonial-image {
    max-width: 600px;
    margin: 0 auto;
  }

  .lp-cross-sell-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }
  
  .lp-cross-sell-left {
    flex-direction: column;
    gap: 1rem;
  }
  
  .lp-cross-sell-right {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .lp-hero {
    padding: 2.75rem 0 3rem 0;
  }

  .lp-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
  }
  
  .lp-hero p.subheadline {
    font-size: 1.05rem;
    margin-bottom: 1.75rem;
  }
  
  .lp-hero p.description {
    font-size: 0.95rem;
    margin-bottom: 3rem;
  }
  
  .lp-direct-call-card {
    padding: 2rem 1.5rem;
  }
  
  .lp-direct-call-card h3 {
    font-size: 1.6rem;
  }
  
  .lp-direct-call-card .lp-call-button-lg {
    font-size: 1.25rem;
    padding: 1rem 1.5rem;
  }

  .lp-trust-badges-sec {
    padding: 0.75rem 0;
  }

  .lp-badge-card {
    flex: 1;
    max-width: 48%;
    display: flex;
    justify-content: center;
  }

  .lp-badge-card img {
    height: auto;
    max-height: 130px;
    width: 100%;
    max-width: 100%;
    object-fit: contain;
  }

  .lp-trust-badges-grid {
    flex-wrap: nowrap;
    gap: 1rem;
    padding: 0 1rem;
  }
}

@media (max-width: 500px) {
  .lp-step-card {
    flex-direction: column;
    text-align: center;
  }
  
  .lp-step-image-wrap {
    width: 160px;
    height: 160px;
  }
}

/* --- Sticky Mobile Bar Override (Full Width PPC style) --- */
@media (max-width: 768px) {
  .sticky-mobile-bar {
    padding: 0 !important;
    background-color: var(--secondary) !important;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15) !important;
    border: none !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
  }

  .sticky-mobile-bar a.btn {
    border-radius: 0 !important;
    margin: 0 !important;
    padding: 0.85rem 1rem !important;
    width: 100% !important;
    background-color: var(--secondary) !important;
    color: var(--text-white) !important;
    border: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    font-family: var(--font-header) !important;
    height: auto !important;
    box-shadow: none !important;
    gap: 0.15rem !important;
  }

  .sticky-mobile-bar a.btn:hover {
    background-color: var(--secondary-hover) !important;
    transform: none !important;
  }

  .sticky-mobile-bar a.btn span.lp-call-text {
    font-size: 0.85rem !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    display: block !important;
    color: rgba(255, 255, 255, 0.9) !important;
  }

  .sticky-mobile-bar a.btn span.lp-call-num {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    display: block !important;
    color: var(--text-white) !important;
    letter-spacing: 0.5px !important;
  }
}
