/* Bournemouth Solar Quotes - custom styles
   Keep Bootstrap overrides minimal; use CSS variables where possible.
*/

:root{
  --bsq-brand: #0f6d3f; /* brand green */
  --bsq-dark: #0b1b2b;
  --nav-h: 84px;

  /* Bootstrap theme colour alignment */
  --bs-primary: var(--bsq-brand);
  --bs-primary-rgb: 15,109,63;
}

.navbar{ position: fixed; top: 0; left: 0; right: 0; z-index: 1030; border-bottom: 3px solid var(--bsq-brand); }
body{ padding-top: var(--nav-h); }

@media (max-width: 576px){
  /* Pull hero up under fixed nav on mobile only */
  .hero,
  .hero--image{ margin-top: calc(-1 * var(--nav-h)); padding-top: calc(3rem + var(--nav-h)); }
}
.navbar-brand{ font-weight: 700; letter-spacing: .2px; }

.btn-primary{
  --bs-btn-bg: var(--bsq-brand);
  --bs-btn-border-color: var(--bsq-brand);
  --bs-btn-hover-bg: #00ad7d;
  --bs-btn-hover-border-color: #00ad7d;
}

.text-primary{ color: var(--bsq-brand) !important; }

a{ color: var(--bsq-brand); }
a:hover{ color: #009d71; }

/* Force all "primary" variants to brand green (kills Bootstrap blue everywhere) */
.btn-primary,
.btn-outline-primary,
.link-primary{
  --bs-primary: var(--bsq-brand);
  --bs-primary-rgb: 0,196,141;
}

.btn-outline-primary{
  --bs-btn-color: var(--bsq-brand);
  --bs-btn-border-color: var(--bsq-brand);
  --bs-btn-hover-bg: rgba(0,196,141,.10);
  --bs-btn-hover-border-color: var(--bsq-brand);
  --bs-btn-hover-color: var(--bsq-brand);
}

/* Remove blue focus rings */
:focus-visible{ outline-color: rgba(0,196,141,.65); }
.btn:focus,
.btn:focus-visible,
.accordion-button:focus{ box-shadow: 0 0 0 .25rem rgba(0,196,141,.25) !important; }

/* Accordion open state uses brand colour */
.accordion-button:not(.collapsed){
  color: #063a2a;
  background-color: rgba(0,196,141,.10);
}

/* Prevent accidental horizontal scroll on mobile */
html, body{ max-width: 100%; overflow-x: hidden; }
img{ max-width: 100%; height: auto; }

@media (max-width: 576px){
  .navbar-brand img{ height: 42px !important; }
}

/* Why choose image on mobile */
.why-choose-illus{ width: 100%; height: auto; display: block; margin: 0 auto; }
@media (max-width: 768px){
  .why-choose-illus{ max-width: 100% !important; }
}

.accordion-button{ white-space: normal; word-break: break-word; }
.accordion-body img{ max-width: 100% !important; }

/* Cookie/GDPR banner */
.cookie-banner{
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
}
.cookie-banner .cookie-card{
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.10);
  border-radius: 16px;
  padding: 14px 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
}
@media (min-width: 768px){
  .cookie-banner{ left: 24px; right: auto; max-width: 560px; }
  .cookie-banner .cookie-card{ padding: 16px 18px; }
}

.hero{
  background: radial-gradient(1200px 600px at 0% 0%, rgba(22,163,74,.16), rgba(255,255,255,0)),
              radial-gradient(900px 500px at 100% 10%, rgba(13,110,253,.10), rgba(255,255,255,0));
}

.hero--image{
  position: relative;
  color: #fff;
  background: #0b1b2b;
  background-size: cover;
  background-position: center;
  min-height: 320px;
  display: flex;
  align-items: center;
}

.hero--image::before{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(0,0,0,.18));
}

.hero--image .container{ position: relative; }

.hero--image p{ text-shadow: 0 1px 2px rgba(0,0,0,.35); }
.hero--image h1{ text-shadow: 0 2px 8px rgba(0,0,0,.35); }

.section-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.75rem;
}
.section-title:before,
.section-title:after{
  content:"";
  height:2px;
  width:42px;
  background: rgba(0,196,141,.55);
}

.solutions-strip{
  background: transparent;
}

/* Solutions band: like CTA but mirrored (rounded left, straight right) */
.solutions-band{
  background: var(--bsq-brand);
  width: 97vw;            /* match CTA width */
  max-width: 1800px;
  margin: 0 0 0 auto;     /* flush right */
  border-radius: 999px 0 0 999px; /* rounded left, straight right */
  padding: 12px 0;
  position: relative;
  overflow: hidden;
}

.solutions-band .container{
  position: relative;
  padding-left: 0;   /* let first icon sit into the curve */
  padding-right: 18px;
}

.solutions-band .solutions-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
  text-align: center;
}

.solutions-band .solutions-item{ flex: 1; min-width: 0; }

/* Push first/last icons towards the rounded ends (like your original) */
.solutions-band .solutions-item:first-child{ margin-left: -280px; }
.solutions-band .solutions-item:last-child{ margin-right: -10px; }

@media (max-width: 992px){
  .solutions-band{ width: 100%; border-radius: 36px 0 0 36px; padding: 32px 0; }
  .solutions-band .solutions-row{ flex-wrap: wrap; justify-content: center; }
  .solutions-band .solutions-item{ flex: 0 0 calc(50% - 18px); margin: 0; }
  .solutions-band .solutions-item:first-child{ margin-left: 0; }
  .solutions-band .solutions-item:last-child{ margin-right: 0; }
}

@media (max-width: 576px){
  .solutions-band{ border-radius: 0; width: 100%; margin: 0; padding: 24px 0; }
  .solutions-band .container{ padding-left: 16px; padding-right: 16px; }
  .solutions-band .solutions-item{ flex: 1 0 100%; margin: 0; }
}

.solution-ring{
  width: 230px;
  height: 230px;
  border-radius: 999px;
  background: var(--bsq-brand);
  display: grid;
  place-items: center;
  margin: 0 auto;
}

.solution-circle{
  width: 190px;
  height: 190px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
}

.solution-circle img{
  max-width: 96%;
  height: auto;
  transform: scale(1.06);
  transition: transform .25s ease;
}

.service-link{
  display: inline-block;
  transform: translateY(0);
  transition: transform .2s ease, filter .2s ease;
}

.service-link:hover{
  transform: translateY(-3px);
}

.service-link .solution-circle{
  transition: transform .25s ease, box-shadow .25s ease;
  box-shadow: 0 10px 20px rgba(0,0,0,.08);
}

.service-link:hover .solution-circle{
  transform: scale(1.04);
  box-shadow: 0 14px 28px rgba(0,0,0,.12);
}

.service-link:hover .solution-circle img{
  transform: scale(1.0); /* "zoom out" on hover */
}

.step-num{
  font-weight: 800;
  font-size: clamp(44px, 6vw, 80px);
  color: var(--bsq-brand);
  line-height: 1;
}

.how-panel{
  background: #f7faf9;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 24px;
  padding: 28px;
}

@media (min-width: 992px){
  .how-panel{ padding: 40px; }
}

.blog-card img{
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 16px;
}

/* Blog post readability */
article{ line-height: 1.7; }
article img{ width: 100% !important; max-width: 100% !important; height: auto !important; }
main figure img{ width: 100% !important; max-width: 100% !important; height: auto !important; }

.post-hero-img{ max-width: 880px; width: 100%; height: auto; display: block; margin: 0 auto; }
.post-hero-img--sm{ max-width: 720px; width: 100%; height: auto; display: block; margin: 0 auto; }

/* Solar insights listing */
.insights-grid .insight-card{
  border: 0;
}

.insights-grid .insight-ill,
.insights-grid .insight-card img{
  width: 100%;
  height: 240px !important;
  max-height: 240px !important;
  object-fit: contain !important;
  object-position: center;
  background: transparent;
  border-radius: 16px;
}

.insights-grid .insight-ill--top{ object-position: center top; }

@media (max-width: 768px){
  .insights-grid .insight-ill,
  .insights-grid .insight-card img{
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}


.insights-grid .read-more{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.testimonials{
  /* Align illustration closer to the content line */
  background: #fff url('/assets/img/testimonials-bg.png') 320px center / 460px auto no-repeat;
}

/* Testimonials carousel tweaks */
#testimonials .carousel-indicators [data-bs-target]{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background-color: rgba(0,196,141,.35);
}
#testimonials .carousel-indicators .active{ background-color: rgba(0,196,141,1); }

/* carousel controls removed */

@media (max-width: 992px){
  .testimonials{ background-size: 360px auto; }
}

@media (max-width: 768px){
  .testimonials{ background: none; }
}

.band-green{
  background: var(--bsq-brand);
  color: #fff;
}

/* CTA band like the current WP design */
.cta-band{
  background: var(--bsq-brand);
  color: #fff;
  width: 97vw; /* a touch wider */
  max-width: 1800px;
  margin: 0 auto 0 0; /* flush left */
  border-radius: 0 999px 999px 0; /* straight left, rounded right */
  padding: 54px 0;
  position: relative;
  overflow: hidden;
}

/* Flipped CTA: rounded left, straight right, circle on left */
.cta-band--flip{
  margin: 0 0 0 auto; /* flush right */
  border-radius: 999px 0 0 999px;
}

.cta-band.cta-band--flip .container{ padding-left: 32px; padding-right: 32px; }
.cta-band--flip .cta-circle{ left: 34px; right: auto; }

.cta-band--flip .cta-content{
  max-width: 520px;
  margin-left: auto;
  text-align: right;
}

.cta-band .container{
  /* push content slightly right to align with other page sections */
  padding-left: 32px;
  /* leave space so text/button don't collide with the circular cap */
  padding-right: 380px;
}

.cta-band--slim{ padding: 30px 0; }

@media (max-width: 992px){
  .cta-band--flip .container{ padding-left: 200px; }
  .cta-band--flip .cta-circle{ left: 16px; }
}

.cta-band h2,
.cta-band h3{ color: #fff; }

.cta-band p{ max-width: 70ch; }

.cta-band .btn-cta{
  /* Match the original: transparent button with white border */
  background: transparent;
  border: 2px solid rgba(255,255,255,.95);
  color: #fff;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 999px;
}

.cta-band .btn-cta:hover{
  background: rgba(255,255,255,.12);
  border-color: #fff;
  color: #fff;
}

/* Make btn-cta work anywhere (not only inside .cta-band) */
.btn-cta{
  display: inline-block;
  background: transparent;
  border: 2px solid var(--bsq-brand);
  color: var(--bsq-brand);
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
}

.btn-cta:hover{
  background: rgba(0,196,141,.10);
  color: var(--bsq-brand);
}

.cta-band .cta-circle{
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: #fff;
  display: grid;
  place-items: center;
  border: 18px solid rgba(255,255,255,.25);
  overflow: hidden; /* clip any square edges */

  position: absolute;
  right: 34px;
  top: 50%;
  transform: translateY(-50%);
}

.cta-band .cta-circle img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transform: translateX(2px) translateY(1px);
}

@media (max-width: 992px){
  .cta-band{ width: 100%; border-radius: 0 36px 36px 0; padding: 28px 0; }
  .cta-band .container{ padding-right: 200px; }
  .cta-band .cta-circle{ width: 150px; height: 150px; border-width: 12px; right: 16px; }
}

@media (max-width: 576px){
  .cta-band,
  .cta-band--flip{ border-radius: 0; margin: 0; width: 100%; }
  .cta-band .container,
  .cta-band--flip .container{ padding-left: 16px; padding-right: 16px; }
  .cta-band .cta-circle,
  .cta-band--flip .cta-circle{ display:none; }
  .cta-band .form-control{ border-radius: 12px; }
}

/* Residential page mobile image centering */
@media (max-width: 768px){
  .page-residential img,
  .page-commercial img,
  .page-ev img,
  .page-contact img{ display:block; margin-left:auto; margin-right:auto; max-width:100%; height:auto; }
  .page-residential .text-lg-end,
  .page-commercial .text-lg-end,
  .page-ev .text-lg-end,
  .page-contact .text-lg-end{ text-align:center !important; }
  .page-residential .smart-home-img{ max-width: 260px; }
  .page-commercial .hero img{ max-width: 100%; }
}

.circle-ring{
  border-radius: 999px;
  background: #fff;
  width: 140px;
  height: 140px;
  display: grid;
  place-items: center;
  border: 10px solid rgba(255,255,255,.25);
}

.footer{
  background: var(--bsq-brand);
  color: #fff;
}

.footer .footer-nav{
  display:flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 12px 0;
}

.footer a{ color: rgba(255,255,255,.95); text-decoration: none; }
.footer a:hover{ color: #fff; text-decoration: underline; }


/* Performance/Accessibility tweaks (2026-03-10) */
.section-title.text-secondary { color: #4b5563 !important; }
.cta-band { color: #ffffff; }
.cta-band p { color: #f3f4f6; }
.btn-cta {
  background-color: #0f6d3f;
  border-color: #0f6d3f;
  color: #ffffff;
}
.btn-cta:hover,
.btn-cta:focus {
  background-color: #0c5d35;
  border-color: #0c5d35;
  color: #ffffff;
}
.footer a { text-decoration: underline; text-underline-offset: 2px; }
.footer, .footer a { color: #111827; }
.footer a:hover { color: #0f6d3f; }
.testimonials .text-primary { color: #0f6d3f !important; }

/* Lighthouse contrast fixes (2026-03-10) */
.btn-primary {
  background-color: #0f6d3f;
  border-color: #0f6d3f;
  color: #ffffff;
}
.btn-primary:hover,
.btn-primary:focus {
  background-color: #0c5d35;
  border-color: #0c5d35;
  color: #ffffff;
}
.cta-band h2,
.cta-band p { color: #ffffff !important; }
.section-title.text-secondary { color: #374151 !important; }
section.py-5.bg-light a.text-decoration-none { color: #0f6d3f; }
section.py-5.bg-light a.text-decoration-none:hover { color: #0c5d35; }
#sc-btn { color: #ffffff !important; background: #0f6d3f !important; border-color: #0f6d3f !important; }

/* Footer hover override */
.footer { color: #ffffff !important; }
.footer a { color: #ffffff !important; }
.footer a:hover { color: #00c288 !important; }

/* Contrast fixes for CTA bands + cookie card */
.cta-band .btn-cta { background-color: #0f6d3f !important; border-color: #0f6d3f !important; }
.cta-band .btn-cta:hover,
.cta-band .btn-cta:focus { background-color: #0c5d35 !important; border-color: #0c5d35 !important; }
.cookie-card { background: #111827 !important; color: #ffffff !important; }
.cookie-card a { color: #a7f3d0 !important; text-decoration: underline; }

/* Touch target size for carousel indicators */
.carousel-indicators button { width: 14px; height: 14px; margin: 6px; }

/* CTA band text contrast without changing design */
.cta-band h2,
.cta-band p {
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
}

/* Cookie reject button contrast */
.cookie-card .btn-outline-secondary {
  color: #ffffff;
  border-color: #9ca3af;
  background-color: rgba(17,24,39,0.6);
}
.cookie-card .btn-outline-secondary:hover,
.cookie-card .btn-outline-secondary:focus {
  color: #ffffff;
  background-color: rgba(17,24,39,0.85);
  border-color: #9ca3af;
}

/* Larger touch targets for carousel indicators */
.carousel-indicators button { width: 18px; height: 18px; margin: 6px; }

/* Stronger CTA band contrast for paragraph text */
.cta-band p.mb-3 { color: #ffffff !important; }

/* Bigger carousel indicators for touch targets */
.carousel-indicators button {
  width: 24px !important;
  height: 24px !important;
  margin: 8px !important;
}

/* Subtle overlay to boost CTA band text contrast */
.cta-band { position: relative; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  pointer-events: none;
}
.cta-band .container { position: relative; z-index: 1; }
