/* ============================================================
   Mulangira Sansa The Painter - custom professional theme
   Light-blue palette, alignment & sizing refinements
   Loaded after style-starter.css
   ============================================================ */

/* ---------- 1. Color palette (matching light-blue theme) ---------- */
:root {
  --primary-color: #5ab0e6;
  --primary-dark: #2f80c4;
  --primary-deep: #165a8f;
  --primary-light: #dff0fa;
  --accent-color: #9ad1f5;
  --ink: #17324d;
  --ink-soft: #5a6b7d;
  --bg-tint: #f3f8fc;
  --primary-gradient: linear-gradient(120deg, #5ab0e6 0%, #2f80c4 100%);
  --primary-gradient-deep: linear-gradient(120deg, #2f80c4 0%, #165a8f 100%);
}

[data-theme="dark"] {
  --primary-color: #5ab0e6;
  --primary-dark: #7cc3ee;
  --primary-deep: #2f80c4;
  --primary-light: #1e3a52;
  --ink: #ffffff;
  --ink-soft: #b7c6d4;
  --bg-tint: #16222e;
  --heading-color: #ffffff;
}

/* ---------- 2. Base typography sizing ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-size: 16px;
  line-height: 1.7;
}

h1,
h2,
h3,
h4,
h5 {
  letter-spacing: 0.2px;
}

h3.title-style {
  color: var(--ink);
  margin-bottom: 10px;
}

p {
  color: var(--ink-soft);
}

/* ---------- 3. Header & brand ---------- */
.navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 26px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.3px;
}

.navbar .navbar-brand img.navbar-logo {
  height: 80px;
  width: auto;
  vertical-align: middle;
  border-radius: 4px;
  background: transparent;
  margin-right: 6px;
}

.navbar .navbar-brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.navbar .navbar-brand .navbar-name {
  display: flex;
  flex-direction: column;
  margin-left: 6px;
  line-height: 1.15;
}

.navbar .navbar-brand .navbar-name strong {
  font-size: 24px;
  font-weight: 700;
  color: var(--heading-color);
  white-space: nowrap;
}

.navbar .navbar-brand .navbar-name small {
  font-size: 12px;
  font-weight: 500;
  text-transform: lowercase;
  letter-spacing: 3px;
  color: var(--primary-color);
  text-align: left;
}

[data-theme="dark"] .slide .content h6 {
  color: #ffffff;
}

/* gallery */
.w3l-gallery {
  background: var(--bg-grey);
}

[data-theme="dark"] .w3l-gallery {
  background: var(--bg-lightgrey);
}

.gallery-grid {
  columns: 3 260px;
  column-gap: 16px;
}

.gallery-grid a {
  display: block;
  margin-bottom: 16px;
  border-radius: 10px;
  overflow: hidden;
  break-inside: avoid;
  border: 1px solid var(--border-color-light);
}

.gallery-grid img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

.gallery-grid a:hover img {
  transform: scale(1.04);
}

[data-theme="dark"] .navbar .navbar-brand img.navbar-logo {
  filter: brightness(1.15) contrast(0.95);
}

.navbar .navbar-brand i {
  font-size: 22px;
  letter-spacing: 0;
  display: inline-flex;
}

.w3l-footer .footer-logo {
  height: 60px;
  width: auto;
  display: inline-block;
}

@media (max-width: 480px) {
  .w3l-footer .footer-logo {
    height: 44px;
  }
}

.navbar-expand-lg .navbar-nav .nav-link {
  font-size: 15px;
  letter-spacing: 0.3px;
}

@media (max-width: 991px) {
  .navbar .navbar-brand {
    font-size: 21px;
  }
}

/* ---------- Responsive: phone format ---------- */
@media (max-width: 991px) {
  header .navbar {
    padding-top: 10px;
  }
  .navbar .navbar-brand img.navbar-logo {
    height: 48px;
  }
  .navbar .navbar-brand .navbar-name strong {
    font-size: 18px;
  }
  .navbar .navbar-brand .navbar-name small {
    font-size: 10px;
    letter-spacing: 2px;
  }
}

@media (max-width: 767px) {
  .gallery-grid {
    columns: 2 120px;
    column-gap: 10px;
  }
  .gallery-grid a {
    margin-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .navbar .navbar-brand img.navbar-logo {
    height: 40px;
  }
  .navbar .navbar-brand .navbar-name strong {
    font-size: 16px;
  }
  .navbar .navbar-brand .navbar-name small {
    font-size: 9px;
    letter-spacing: 1.5px;
  }
  .slide .content {
    padding: 1.4rem !important;
  }
  .slide .content h3 {
    font-size: 26px !important;
    line-height: 34px !important;
  }
  .slide .content h6 {
    font-size: 15px !important;
  }
  h3.title-style {
    font-size: 26px;
    line-height: 34px;
  }
}

/* ---------- Responsive: desktop format ---------- */
@media (min-width: 992px) {
  .navbar .navbar-brand img.navbar-logo {
    height: 80px;
  }
  .navbar .navbar-brand .navbar-name strong {
    font-size: 24px;
  }
  .navbar .navbar-brand .navbar-name small {
    font-size: 12px;
    letter-spacing: 3px;
  }
}

/* ---------- Phone polish ---------- */
@media (max-width: 767px) {
  .py-5 {
    padding-top: 2.2rem !important;
    padding-bottom: 2.2rem !important;
  }
  .py-4 {
    padding-top: 1.4rem !important;
    padding-bottom: 1.4rem !important;
  }
  .title-main {
    margin-bottom: 2rem;
  }
  h3.title-style {
    font-size: 24px;
    line-height: 32px;
  }
  h5.small-title {
    font-size: 16px;
  }
  h4 {
    font-size: 20px;
  }
  .btn-style,
  .btn-primary,
  a.btn-style {
    padding: 10px 22px;
    font-size: 15px;
  }
  .box-wrap {
    padding: 26px 22px 22px;
  }
  .slide .content {
    left: 10px;
    right: 10px;
    max-width: none;
    width: auto;
  }
}

@media (max-width: 480px) {
  .slide .content h3 {
    font-size: 24px !important;
    line-height: 32px !important;
  }
  .slide .content h6 {
    font-size: 14px !important;
  }
  .slide .content {
    padding: 1.2rem !important;
    border-radius: 12px;
  }
  .slide .content .btn-style {
    margin-top: 1.2rem !important;
    width: 100%;
    text-align: center;
  }
  .w3l-footer h6 {
    font-size: 18px;
  }
  .w3l-footer p,
  .w3l-footer li,
  .w3l-footer a {
    font-size: 14px;
    line-height: 1.7;
  }
  .blog-card-single .blog-info {
    padding: 18px !important;
  }
  .contact-address {
    padding: 18px !important;
  }
}

/* ---------- 4. Buttons (excluding link-style primary buttons) ---------- */
.btn-style:not(.btn-style-primary) {
  background-image: var(--primary-gradient);
  border: 2px solid transparent;
  color: #fff;
  box-shadow: 0 8px 20px rgb(46 128 196 / 35%);
  transition: all 0.3s ease;
}

.btn-style:not(.btn-style-primary):hover {
  background-image: var(--primary-gradient-deep);
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgb(46 128 196 / 45%);
  color: #fff;
}

a.btn-style-primary {
  letter-spacing: 0.4px;
}

a.btn-style-primary:hover {
  color: var(--primary-dark);
}

/* ---------- 5. Section titles ---------- */
h5.small-title {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.title-main {
  margin-bottom: 3.5rem;
}

/* ---------- 6. Home service cards ---------- */
.box-wrap {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 38px 32px 30px;
  text-align: left;
  border: 1px solid transparent;
  border-top: 4px solid var(--primary-color);
  transition: all 0.4s ease;
}

.box-wrap:hover {
  transform: translateY(-6px);
  border-color: var(--primary-light);
  border-top-color: var(--primary-dark);
  box-shadow: 0 22px 45px rgb(22 90 143 / 18%);
}

.box-wrap .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 62px;
  height: 62px;
  border-radius: 14px;
  background: var(--primary-light);
  transition: 0.3s ease;
  margin-bottom: 22px;
}

.box-wrap:hover .icon {
  background-image: var(--primary-gradient);
}

.box-wrap:hover .icon i {
  color: #fff;
}

.box-wrap .icon i {
  font-size: 26px;
}

.box-wrap h4 a {
  font-size: 21px;
}

a.read {
  margin-top: auto;
  padding-top: 18px;
  display: inline-block;
  letter-spacing: 0.3px;
}

/* ---------- 7. Features cards ---------- */
.w3l-grids-block .bottom-block {
  height: 100%;
  text-align: center;
  border-radius: 16px;
  border: 1px solid var(--border-color-light);
  transition: all 0.35s ease;
}

.w3l-grids-block .bottom-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgb(22 90 143 / 14%);
}

.w3l-grids-block .bottom-block i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 28px;
  transition: 0.3s ease;
}

.w3l-grids-block .bottom-block:hover i {
  background-image: var(--primary-gradient);
  color: #fff;
}

.w3l-grids-block .bottom-block h3 {
  font-size: 22px;
}

.w3l-grids-block .bottom-block p {
  font-size: 15px;
}

/* ---------- 8. Why-choose image info box ---------- */
.imginfo__box {
  background-image: var(--primary-gradient-deep);
  box-shadow: 0 24px 48px rgb(22 90 143 / 35%);
}

/* ---------- 9. Progress bars ---------- */
.w3l-progressblock .progress-bar {
  background-image: linear-gradient(90deg, #5ab0e6 0%, #2f80c4 100%);
  border-radius: 0.25rem;
}

.w3l-progressblock .progress {
  background-color: var(--bg-grey);
  border-radius: 0.35rem;
  height: 0.6em;
}

/* ---------- 10. Content / CTA band ---------- */
.w3l-content1::before {
  background: linear-gradient(100deg, rgb(22 90 143 / 92%) 0%, rgb(46 128 196 / 82%) 55%, rgb(90 176 230 / 70%) 100%);
}

.w3l-content1 .title-style {
  color: #fff;
}

.w3l-content1 p {
  color: #eaf6ff;
}

/* ---------- 11. Blog cards (equal heights, aligned) ---------- */
.w3l-blog-block-5 .blog-card-single {
  height: 100%;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border-color-light);
  box-shadow: 0 18px 40px rgb(1 11 60 / 8%);
  overflow: hidden;
}

.w3l-blog-block-5 .grids5-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.w3l-blog-block-5 .blog-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.w3l-blog-block-5 .blog-info .d-flex.align-items-center {
  margin-top: auto !important;
}

.w3l-blog-block-5 .grids5-info h4 a {
  font-size: 20px;
  line-height: 1.4;
}

/* ---------- 12. Footer ---------- */
.w3l-footer {
  background: linear-gradient(180deg, #102943 0%, #0a1b2e 100%);
  border-top: 4px solid var(--primary-color);
}

.w3l-footer .sub-one-left h6,
.w3l-footer .sub-two-right h6 {
  color: var(--primary-light);
  border-bottom-color: rgb(90 176 230 / 45%);
  letter-spacing: 1px;
}

.w3l-footer ul.social li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgb(255 255 255 / 10%);
  transition: 0.3s ease;
}

.w3l-footer ul.social li a:hover {
  background-image: var(--primary-gradient);
  color: #fff;
  transform: translateY(-3px);
}

.w3l-footer .column2 span {
  color: var(--primary-color);
}

/* ---------- 13. Inner banner (pages) ---------- */
.inner-banner::before {
  background: linear-gradient(100deg, rgb(10 26 46 / 88%) 0%, rgb(46 128 196 / 62%) 100%);
}

h4.inner-text-title {
  font-size: 34px;
  letter-spacing: 0.5px;
}

/* ---------- 14. Contact cards & form ---------- */
.contact-address {
  border-left: 4px solid var(--primary-color);
}

.contact-address .contact-icon i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: 20px;
}

.w3l-contact-info-main .form-group input,
.w3l-contact-info-main .form-group textarea {
  border-radius: 8px;
  border: 1px solid #dbe6ef;
  transition: all 0.3s ease;
}

.w3l-contact-info-main .form-group input:focus,
.w3l-contact-info-main .form-group textarea:focus {
  box-shadow: 0 0 0 3px rgb(90 176 230 / 22%);
}

/* ---------- 15. Dark-mode overrides ---------- */
[data-theme="dark"] .box-wrap {
  background: var(--bg-lightgrey);
}

[data-theme="dark"] .w3l-grids-block .bottom-block {
  background: var(--bg-lightgrey);
}

[data-theme="dark"] .contact-address .contact-icon i {
  background: var(--primary-light);
}

[data-theme="dark"] .w3l-content1 p {
  color: #d8ecfb;
}

/* ---------- Floating WhatsApp button ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 25px;
  right: 15px;
  z-index: 9;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float i {
  font-size: 30px;
  line-height: 1;
}

.whatsapp-float:hover,
.whatsapp-float:focus {
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

@media (max-width: 480px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
  }
}

/* ---------- Avatar placeholders (no fake people photos) ---------- */
.avatar-lg,
.avatar-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-gradient-deep);
  color: #fff;
  font-weight: 600;
  line-height: 1;
}

.avatar-lg {
  width: 100px;
  height: 100px;
  font-size: 40px;
  margin-bottom: 0.5rem;
}

.avatar-sm {
  width: 34px;
  height: 34px;
  font-size: 13px;
  flex: none;
}

[data-theme="dark"] .avatar-sm,
[data-theme="dark"] .avatar-lg {
  background: var(--primary-gradient);
}