/* Homepage introduction and brand lockup. Other pages keep their existing styles. */
.home-page .home-service-card .card-img-top { display: block; width: 100%; height: 230px; object-fit: cover; background: #f0f5f9; }
.home-page .home-service-card .home-service-diagram { object-fit: contain; padding: 8px; }
@media (max-width: 1199.98px) { .home-page .home-service-card .card-img-top { height: 180px; } }
.home-page .purple-container { background: #fff; padding: 28px 12px 8px; overflow: visible; }
.home-page .purple-container::before { display: none; }
.home-page .purple-container > .container { padding: 27px 32px; background: #173f65; border-radius: 12px; border-left: 4px solid #f2c62d; text-align: left !important; }
.home-page .purple-container #text { display: grid; grid-template-columns: .8fr 1.4fr; gap: 38px; align-items: center; }
.home-page .purple-container h1 { color: #fff; font-size: 27px; line-height: 1.22; margin: 0; }
.home-page .purple-container h1 i { font-style: normal; }
.home-page .purple-container h4 { color: #e4edf5; font-size: 16px; line-height: 1.75; opacity: 1; margin: 0; max-width: none; }
.home-page .purple-container #text-link { color: #ffe28a; text-decoration: underline; text-underline-offset: 3px; }
.home-page .purple-container #text-link:hover { color: #fff1b6; border-bottom-color: transparent; }
@media (max-width: 767px) {
  .home-page .purple-container #text { grid-template-columns: 1fr; gap: 14px; }
  .home-page .purple-container > .container { padding: 22px; }
  .home-page .purple-container h1 { font-size: 24px; }
}
.home-page .navbar { padding: 12px 0; }
.home-page .navbar-brand { display: flex; align-items: center; gap: 13px; white-space: normal; margin-right: 16px; }
.home-page .navbar-brand .home-logo { width: 68px; height: 68px; object-fit: contain; flex-shrink: 0; }
.home-brand-text { color: #12375e; }
.home-brand-text strong { display: block; font-size: 19px; line-height: 1.2; letter-spacing: -.3px; }
.home-brand-text small { display: block; font-size: 11px; line-height: 1.5; margin-top: 5px; color: #586b7b; }
.home-hero { background: #dce7ef; color: #12375e; }
.home-hero-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-top: 54px; padding-bottom: 48px; }
.home-eyebrow { display: flex; align-items: center; gap: 9px; margin: 0 0 19px; color: #586b7b; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; }
.home-eyebrow::before { content: ''; width: 24px; height: 3px; background: #efc126; flex-shrink: 0; }
.home-hero h1 { font-size: clamp(38px, 4.4vw, 58px); line-height: 1.09; letter-spacing: -1.7px; font-weight: 900; margin: 0 0 23px; color: #12375e; }
.home-hero h1 em { color: #3979a8; font-style: normal; }
.home-copy { max-width: 470px; font-size: 17px; line-height: 1.75; color: #586b7b; margin: 0 0 28px; }
.home-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.home-action { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 14px 20px; font-size: 14px; font-weight: 700; border: 1px solid #c5d2dc; border-radius: 7px; background: #fff; color: #12375e; text-decoration: none; }
.home-action:hover { background: #e1ebf2; color: #12375e; }
.home-action.home-main { background: #f2c62d; border-color: #f2c62d; color: #153653; }
.home-action.home-main:hover { background: #e5b91e; border-color: #e5b91e; }
.home-page a:focus-visible, .home-page .navbar-toggler:focus-visible { outline: 3px solid #3979a8; outline-offset: 4px; }
.home-note { font-size: 13px; color: #586b7b; margin: 17px 0 0; }
.home-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 22px; border-top: 1px solid #b8cedd; padding-top: 23px; padding-bottom: 23px; font-size: 14px; }
.home-strip span { display: flex; align-items: center; gap: 10px; }
.home-strip i { font-size: 18px; color: #586b7b; }

/* The sections after the project gallery share the homepage palette and spacing. */
.home-page .home-section-label { display: flex; align-items: center; gap: 10px; margin: 0 0 17px; color: #3979a8; font-size: 12px; font-weight: 900; letter-spacing: 2px; text-transform: uppercase; }
.home-page .home-section-label::before { content: ''; width: 23px; height: 3px; flex: 0 0 auto; background: #f2c62d; }
.home-equipment { background: #eaf1f5; padding: 72px 0; }
.home-equipment-layout { display: grid; grid-template-columns: 1fr .92fr; align-items: center; gap: clamp(32px, 6vw, 84px); }
.home-equipment-copy h2 { max-width: 580px; margin: 0 0 21px; color: #12375e; font-size: clamp(30px, 3.1vw, 43px); font-weight: 900; line-height: 1.14; letter-spacing: -.8px; }
.home-equipment-copy > p:not(.home-section-label) { max-width: 550px; margin: 0 0 24px; color: #52697b; font-size: 17px; line-height: 1.75; }
.home-text-action { display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 11px 18px; border: 1px solid #bbcedb; border-radius: 7px; background: #fff; color: #12375e; font-size: 14px; font-weight: 800; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.home-text-action:hover { background: #dceaf3; border-color: #3979a8; color: #12375e; }
.home-equipment-visual { min-height: 310px; overflow: hidden; border-radius: 16px; background: #d6e5ed; box-shadow: 0 18px 36px #12375e1a; }
.home-equipment-visual img { display: block; width: 100%; height: 100%; max-height: 360px; object-fit: cover; object-position: center 50%; }
.home-quote { background: #fff; padding: 62px 0; }
.home-quote-panel { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding: 39px 44px; border-left: 4px solid #f2c62d; border-radius: 12px; background: #173f65; box-shadow: 0 15px 38px #12375e18; }
.home-quote .home-section-label { color: #b7d4e7; margin-bottom: 13px; }
.home-quote h2 { max-width: 650px; margin: 0 0 10px; color: #fff; font-size: clamp(26px, 2.5vw, 35px); font-weight: 900; line-height: 1.2; }
.home-quote-panel p:last-child { margin: 0; color: #e0ecf4; font-size: 16px; line-height: 1.65; }
.home-quote-action { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 12px 19px; flex: 0 0 auto; border-radius: 7px; background: #f2c62d; color: #12375e; font-size: 14px; font-weight: 900; text-decoration: none; }
.home-quote-action:hover { background: #e5b91e; color: #12375e; }
.home-contact { background: #f2f6f9; padding: 72px 0 84px; scroll-margin-top: 95px; }
.home-contact-heading { margin-bottom: 30px; }
.home-contact-heading h2 { margin: 0 0 11px; color: #12375e; font-size: clamp(30px, 3.1vw, 42px); font-weight: 900; }
.home-contact-heading > p:last-child { max-width: 620px; margin: 0; color: #52697b; font-size: 16px; line-height: 1.7; }
.home-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; }
.home-contact-card { min-width: 0; padding: 31px; border: 1px solid #dce6ee; border-radius: 12px; background: #fff; box-shadow: 0 8px 25px #12375e0b; }
.home-contact-card h3 { margin: 0 0 23px; color: #12375e; font-size: 21px; font-weight: 800; }
.home-contact-card .form-group { margin-bottom: 18px; }
.home-contact-card label { display: block; margin-bottom: 7px; color: #274a68; font-size: 14px; font-weight: 700; }
.home-contact-card .form-control { min-height: 45px; border: 1px solid #cddce6; border-radius: 7px; background: #fbfdfe; }
.home-contact-card textarea.form-control { min-height: 122px; resize: vertical; }
.home-contact-card .form-control:focus { border-color: #3979a8; box-shadow: 0 0 0 3px #3979a82e; }
.home-contact-card #submit-btn { display: inline-flex; align-items: center; gap: 11px; min-height: 46px; margin-top: 2px; padding: 11px 18px; border-radius: 7px; background: #173f65; }
.home-contact-card #submit-btn:hover { background: #255b84; }
.home-location-card { display: flex; flex-direction: column; }
.home-location-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; }
.home-location-heading h3 { margin-bottom: 18px; }
.home-location-heading p { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; color: #52697b; font-size: 14px; }
.home-location-heading i { color: #3979a8; }
.home-location-card .map-container { flex: 1; min-height: 340px; padding-bottom: 0; border: 1px solid #dce6ee; border-radius: 8px; box-shadow: none; background: #eaf1f5; }
@media (max-width: 767px) {
  .home-equipment { padding: 52px 0; }
  .home-equipment-layout, .home-contact-grid { grid-template-columns: 1fr; }
  .home-equipment-layout { gap: 26px; }
  .home-equipment-copy > p:not(.home-section-label) { font-size: 16px; }
  .home-equipment-visual { min-height: 230px; }
  .home-equipment-visual img { max-height: 290px; }
  .home-quote { padding: 48px 0; }
  .home-quote-panel { flex-direction: column; align-items: flex-start; gap: 22px; padding: 29px 25px; }
  .home-contact { padding: 54px 0 62px; }
  .home-contact-card { padding: 24px 20px; }
  .home-location-card .map-container { min-height: 280px; }
}

/* Lightweight illustration: no image download or animation required. */
.home-scene { position: relative; min-height: 350px; width: 100%; max-width: 460px; justify-self: center; isolation: isolate; }
.home-disc { position: absolute; inset: 8px 0 0; border-radius: 50%; background: #cbdde9; }
.home-sun { position: absolute; right: 30px; top: 20px; width: 64px; height: 64px; background: #f2c62d; border-radius: 50%; box-shadow: 0 0 0 13px #f2c62d20; }
.home-house { position: absolute; width: 220px; height: 137px; left: 50%; bottom: 28px; transform: translateX(-50%); background: #fff; border-radius: 0 0 5px 5px; box-shadow: 12px 12px 0 #12375e0c; }
.home-roof { position: absolute; width: 250px; height: 98px; left: -15px; top: -80px; background: #234b70; clip-path: polygon(18% 0, 81% 0, 100% 100%, 0 100%); }
.home-panels { position: absolute; top: -62px; left: 36px; width: 140px; height: 66px; transform: skewX(-12deg); background: repeating-linear-gradient(90deg, transparent 0 32px, #91bdd6 33px 34px), repeating-linear-gradient(0deg, #195080 0 19px, #91bdd6 20px 21px); border: 3px solid #a5c7dc; }
.home-window { position: absolute; left: 27px; top: 35px; width: 62px; height: 53px; background: linear-gradient(90deg, transparent 47%, #d6e5ef 48% 53%, transparent 54%), linear-gradient(0deg, #679cbd 47%, #d6e5ef 48% 53%, #679cbd 54%); border: 4px solid #e1e9ee; }
.home-door { position: absolute; right: 33px; bottom: 0; width: 44px; height: 86px; background: #234b70; }
.home-battery { position: absolute; right: -23px; bottom: 15px; width: 35px; height: 62px; background: #f6f8fa; border: 2px solid #b3c5d2; border-radius: 6px; display: grid; place-items: center; color: #2b7a5a; }
.home-ground { position: absolute; height: 4px; bottom: 24px; left: 8%; right: 3%; background: #adc4d0; border-radius: 50%; }
.home-tag { position: absolute; top: 35px; left: 0; background: #fff; border: 1px solid #dce5ec; border-radius: 9px; padding: 12px 15px; font-size: 13px; box-shadow: 0 7px 24px #12375e0a; display: flex; gap: 9px; align-items: center; }
.home-tag i { color: #9a7300; font-size: 17px; }

@media (min-width: 992px) and (max-width: 1199px) {
  .home-page .navbar-nav .nav-link { padding-left: 8px; padding-right: 8px; font-size: 14px; }
  .home-brand-text strong { font-size: 17px; }
}
@media (max-width: 767px) {
  .home-hero-layout { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; padding-bottom: 30px; }
  .home-hero h1 { font-size: clamp(36px, 7vw, 48px); }
  .home-copy { font-size: 16px; }
  .home-scene { min-height: 310px; max-width: 390px; }
  .home-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 12px; }
  .home-page .navbar-brand { gap: 9px; margin-right: 0; max-width: calc(100% - 52px); }
  .home-page .navbar-brand .home-logo { width: 52px; height: 52px; }
  .home-brand-text strong { font-size: 16px; }
  .home-brand-text small { font-size: 10px; }
  .home-page .navbar-toggler { margin-right: 0; padding: 8px; }
  .home-page .top-bar { padding-left: 12px; padding-right: 12px; }
  .home-page .contact-info { flex-wrap: wrap; font-size: 11px; }
}
