/*
  HomeSearchInCo — Home Improvements
  Colour theme matched to the Rinovim reference
*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap");

:root {
  --blue: #195c92;
  --orange: #f26522;
  --text: #676576;
  --heading: #333333;
  --light: #eef3f7;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  font-size: 16px;
  font-family: "Roboto", sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Montserrat", sans-serif;
  padding: 0;
  margin: 0;
  color: var(--heading);
}

h1 {
  font-size: 56px;
  line-height: 70px;
  font-weight: 800;
  letter-spacing: 1px;
}

h2 {
  font-size: 48px;
  font-weight: 700;
  line-height: 50px;
  margin-bottom: 30px;
}

h3 { font-size: 24px; }
h4 { font-size: 22px; }

h5 {
  font-size: 18px;
  font-weight: 600;
  line-height: 28px;
}

h6 { font-size: 18px; }

a {
  text-decoration: none;
  color: #464646;
  transition: color 0.2s ease;
}

a:hover { color: var(--orange); }

p {
  margin: 5px 0;
  line-height: 28px;
  letter-spacing: 0.5px;
}

ul {
  padding: 0;
  margin: 0;
}

ul li { list-style: none; }

img {
  width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.container-fluid {
  width: 100%;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.row.gx-5 { margin: 0 -24px; }
.row.gx-5 > [class*="col"] { padding: 0 24px; }

.row.align-items-center { align-items: center; }

[class*="col"] {
  padding: 0 15px;
  min-width: 0;
}

@media (min-width: 992px) {
  .col, .col-md { flex: 1 1 0; }
  .col-md-2 { flex: 0 0 16.666%; max-width: 16.666%; }
  .col-md-3 { flex: 0 0 25%; max-width: 25%; }
  .col-md-4 { flex: 0 0 33.333%; max-width: 33.333%; }
  .col-md-5 { flex: 0 0 41.666%; max-width: 41.666%; }
  .col-md-6 { flex: 0 0 50%; max-width: 50%; }
  .col-md-7 { flex: 0 0 58.333%; max-width: 58.333%; }
  .col-md-8 { flex: 0 0 66.666%; max-width: 66.666%; }
  .col-md-9 { flex: 0 0 75%; max-width: 75%; }
}

/* Loader */
.loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  background-color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.aloader {
  width: 48px;
  height: 48px;
  background: var(--orange);
  border-radius: 50%;
  animation: pulse 0.9s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.6; }
  50% { transform: scale(1); opacity: 1; }
}

/* Buttons */
.button {
  padding: 12px 30px;
  background: var(--orange);
  color: #fff !important;
  font-size: 14px;
  font-weight: 400;
  border-radius: 3px;
  border: 2px solid transparent;
  display: inline-block;
  cursor: pointer;
  font-family: "Roboto", sans-serif;
  transition: opacity 0.2s ease, background 0.2s ease;
  text-align: center;
}

.button2 {
  background: transparent;
  border-color: var(--orange);
}

.button:hover { opacity: 0.9; }

.button2:hover {
  background: var(--orange);
  opacity: 1;
}

/* Navbar */
.navbar {
  background: var(--blue);
  padding: 18px 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
}

.navbar-fixed {
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.12);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.45rem;
  line-height: 1;
  font-family: "Montserrat", sans-serif;
  color: #fff !important;
  white-space: nowrap;
}

.navbar-brand img {
  height: 54px;
  width: auto;
}

.navbar-brand span { color: var(--orange); }

.navbar-toggler {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.navbar-toggler i {
  font-size: 32px;
  color: #fff;
}

.navbar-collapse {
  display: flex;
  align-items: center;
}

.navbar-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.navbar-nav li { padding: 0 10px; }

.navbar-nav li a {
  color: #fff;
  font-size: 15px;
}

.navbar-nav li a:hover,
.navbar-nav li a.active {
  color: #fff;
  opacity: 0.85;
}

.navbar-nav li .button {
  margin-top: -3px;
  display: inline-block;
  margin-left: 18px;
}

/* Intro / Hero */
.intro {
  padding: 118px 0 0;
  background: var(--blue);
  overflow: hidden;
}

.intro h1 { color: #fff; }

.intro .row {
  align-items: flex-end;
  min-height: 520px;
}

.intro .content {
  padding-top: 28px;
  padding-bottom: 100px;
}

.intro .content-image {
  text-align: right;
  line-height: 0;
}

.intro p {
  margin: 10px 0 30px;
  margin-right: 12%;
  color: #eee;
}

.intro ul li {
  display: inline-block;
  margin-right: 20px;
}

.intro .content-image img {
  width: 108%;
  max-width: none;
  height: auto;
  max-height: 560px;
  margin-left: auto;
  display: block;
  object-fit: contain;
  object-position: right bottom;
}

/* About */
.about {
  padding-top: 100px;
  padding-bottom: 100px;
}

.about img { margin-bottom: 30px; border-radius: 2px; }

.about .content-button { text-align: right; }

.about .lead-row {
  display: flex;
  align-items: center;
}

/* Services */
.services {
  padding-top: 110px;
  background: var(--light);
  padding-bottom: 110px;
}

.services-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  align-items: center;
}

.services-strip h2 {
  margin: 0;
  max-width: none;
}

.services-grid {
  grid-column: span 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  align-items: stretch;
}

.services .content {
  position: relative;
  background: #fff;
  padding: 22px 24px 24px;
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.2);
  min-height: 168px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.services .content h5 {
  text-align: left;
  margin: 0 0 18px;
  line-height: 1.35;
}

.service-icon {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
  margin: 0;
  width: 100%;
  height: auto;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon i {
  font-size: 58px;
  color: var(--blue);
  line-height: 1;
}

.service-icon img {
  display: none;
}

.services h2 { margin-bottom: 0; }

.service-card {
  background: #fff;
  padding: 32px 28px;
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.2);
  height: 100%;
  margin-bottom: 30px;
}

.service-card .icon-wrap {
  width: 70px;
  height: 70px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-card .icon-wrap i,
.service-card .icon-wrap img {
  font-size: 32px;
  color: var(--blue);
  width: 40px;
  height: 40px;
}

.service-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

/* Work */
.work {
  text-align: center;
  padding-top: 100px;
  padding-bottom: 120px;
}

.work .gallery {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 10px;
}

.work .gallery a {
  flex: 1;
  display: block;
  overflow: hidden;
}

.work .gallery img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.work .gallery a:hover img { transform: scale(1.05); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-item {
  position: relative;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.18);
}

.work-item img {
  height: 260px;
  object-fit: cover;
}

.work-item .caption {
  padding: 18px 16px 22px;
  text-align: left;
}

.work-item .caption h5 { margin-bottom: 6px; }

.work-item .caption span {
  color: var(--orange);
  font-size: 13px;
  font-weight: 600;
}

/* Testimonials */
.testimonial { background: var(--light); }

.testimonial .slides {
  text-align: center;
  padding: 80px 22%;
  min-height: 280px;
}

.testimonial .slides p {
  font-size: 16px;
  color: var(--text);
}

.testimonial .slides h5 {
  font-size: 16px;
  margin-top: 18px;
}

.testimonial .slides span {
  font-weight: 600;
  font-size: 14px;
  position: relative;
  top: -4px;
  color: var(--text);
}

.testimonial .dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding-bottom: 40px;
}

.testimonial .dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  background: #c5d0da;
  cursor: pointer;
}

.testimonial .dots button.active { background: var(--orange); }

.testimonial .slide { display: none; }
.testimonial .slide.active { display: block; }

/* Contact band */
.contact {
  text-align: center;
  padding-top: 120px;
  padding-bottom: 100px;
  background: var(--blue);
  position: relative;
  top: -80px;
  margin-bottom: -80px;
  color: #eee;
}

.contact h2 { color: #fff; margin-bottom: 10px; }

.contact h5 { color: #fff; margin: 12px 0 6px; }

.contact .content { margin-top: 20px; }

.contact i {
  color: #fff;
  height: 50px;
  width: 50px;
  background: var(--orange);
  font-size: 20px;
  line-height: 50px;
  border-radius: 50%;
  display: inline-block;
}

.contact p { color: #eee; }

/* Page hero */
.page-hero {
  background-color: var(--blue);
  background-image: linear-gradient(100deg, rgba(25, 92, 146, 0.86) 10%, rgba(25, 92, 146, 0.68) 100%), url("../images/page-hero.jpg");
  background-size: cover;
  background-position: center;
  padding: 160px 0 90px;
  color: #fff;
}

.page-hero--about {
  background-image: linear-gradient(100deg, rgba(25, 92, 146, 0.86) 10%, rgba(25, 92, 146, 0.68) 100%), url("../images/about.jpg");
}

.page-hero--services {
  background-image: linear-gradient(100deg, rgba(25, 92, 146, 0.86) 10%, rgba(25, 92, 146, 0.68) 100%), url("../images/work-kitchen.jpg");
}

.page-hero--work {
  background-image: linear-gradient(100deg, rgba(25, 92, 146, 0.86) 10%, rgba(25, 92, 146, 0.68) 100%), url("../images/work-house.jpg");
}

.page-hero--faq {
  background-image: linear-gradient(100deg, rgba(25, 92, 146, 0.86) 10%, rgba(25, 92, 146, 0.68) 100%), url("../images/work-living.jpg");
}

.page-hero--contact {
  background-image: linear-gradient(100deg, rgba(25, 92, 146, 0.86) 10%, rgba(25, 92, 146, 0.68) 100%), url("../images/work-craftsman.jpg");
}

.page-hero--legal {
  background-image: linear-gradient(100deg, rgba(25, 92, 146, 0.86) 10%, rgba(25, 92, 146, 0.68) 100%), url("../images/page-hero.jpg");
}

.page-hero h1 {
  color: #fff;
  font-size: 48px;
  line-height: 58px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.page-hero p {
  color: #eee;
  max-width: 640px;
  margin-top: 12px;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.28);
}

.breadcrumb {
  margin-top: 14px;
  font-size: 14px;
  color: #d7e4ef;
}

.breadcrumb a { color: #fff; }

.breadcrumb span { color: var(--orange); }

/* Content pages */
.section {
  padding: 90px 0;
}

.section.alt { background: var(--light); }

.prose h3 {
  margin: 28px 0 12px;
  font-weight: 700;
}

.prose h4 {
  margin: 22px 0 10px;
  font-weight: 700;
  font-size: 20px;
}

.prose p { margin-bottom: 14px; }

.prose ul.bullets,
ul.bullets {
  margin: 10px 0 18px 18px;
}

.prose ul.bullets li,
ul.bullets li {
  list-style: disc;
  margin: 8px 0;
  line-height: 26px;
}

.feature-box {
  background: #fff;
  padding: 28px;
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.18);
  height: 100%;
  margin-bottom: 24px;
}

.feature-box i {
  color: var(--orange);
  font-size: 28px;
  margin-bottom: 12px;
  display: inline-block;
}

.stats {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.stat {
  flex: 1;
  min-width: 140px;
  background: var(--light);
  padding: 22px 16px;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 32px;
  color: var(--blue);
  font-weight: 800;
}

/* FAQ */
.faq-item {
  background: #fff;
  margin-bottom: 14px;
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.2);
}

.faq-item button {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 0;
  padding: 18px 22px;
  font-family: "Montserrat", sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.faq-item button i { color: var(--orange); }

.faq-item .faq-body {
  display: none;
  padding: 0 22px 20px;
}

.faq-item.open .faq-body { display: block; }

.faq-item.open button { color: var(--blue); }

/* Forms */
.form-card {
  background: #fff;
  padding: 40px;
  box-shadow: 0 12px 30px -15px rgba(0, 0, 0, 0.2);
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--heading);
  margin-bottom: 6px;
  font-size: 14px;
}

.form-group label .req { color: var(--orange); }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid #d9e1e8;
  background: var(--light);
  padding: 12px 14px;
  font-size: 15px;
  font-family: "Roboto", sans-serif;
  color: var(--heading);
  border-radius: 3px;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  background: #fff;
}

.form-group textarea { min-height: 140px; resize: vertical; }

.form-group .error {
  display: none;
  color: #c0392b;
  font-size: 13px;
  margin-top: 5px;
}

.form-group.invalid input,
.form-group.invalid select,
.form-group.invalid textarea {
  border-color: #c0392b;
}

.form-group.invalid .error { display: block; }

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
}

.checkbox input { width: auto; margin-top: 4px; }

.success-box {
  display: none;
  text-align: center;
  padding: 48px 24px;
  background: var(--light);
  border-top: 4px solid var(--orange);
}

.success-box.show { display: block; }

.success-box i {
  font-size: 48px;
  color: var(--orange);
}

.success-box h3 {
  margin: 16px 0 10px;
  color: var(--blue);
}

.form-row {
  display: flex;
  gap: 18px;
}

.form-row .form-group { flex: 1; }

/* Footer */
.site-footer {
  background: #fff;
  padding: 70px 0 20px;
  border-top: 1px solid var(--light);
}

.site-footer h5 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--heading);
}

.site-footer p { font-size: 15px; }

.site-footer .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--blue);
  margin-bottom: 12px;
}

.site-footer .brand img { height: 36px; width: auto; }

.site-footer .brand span { color: var(--orange); }

.site-footer ul li { margin: 8px 0; }

.site-footer ul li a { color: var(--text); }

.social-links a {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  background: var(--light);
  color: var(--blue);
  border-radius: 50%;
  margin-right: 8px;
  font-size: 16px;
}

.social-links a:hover {
  background: var(--orange);
  color: #fff;
}

.legal-links {
  margin-top: 16px;
}

.legal-links a {
  display: block;
  margin: 8px 0;
  color: var(--text);
  font-size: 14px;
}

.footer-bottom {
  padding: 22px 0 8px;
  margin-top: 30px;
  border-top: 1px solid var(--light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

.footer-bottom ul li {
  display: inline-block;
}

.footer-bottom ul li i {
  font-size: 20px;
  margin-left: 10px;
}

.footer-bottom ul li i:hover { color: var(--orange); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(17, 38, 58, 0.88);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 30px;
}

.lightbox.show { display: flex; }

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  width: auto;
  height: auto;
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 24px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 36px;
  cursor: pointer;
}

/* Utility */
.mb-0 { margin-bottom: 0; }
.mt-20 { margin-top: 20px; }
.mt-30 { margin-top: 30px; }
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }
.orange { color: var(--orange); }

/* Responsive */
@media (max-width: 1199px) and (min-width: 992px) {
  .navbar-brand { font-size: 1.15rem; }
  .navbar-nav li { padding: 0 6px; }
  .navbar-nav li .button { margin-left: 10px; padding: 10px 18px; }
}

@media (max-width: 991px) {
  .col-md, .col-md-2, .col-md-3, .col-md-4, .col-md-5,
  .col-md-6, .col-md-7, .col-md-8, .col-md-9 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .navbar-toggler { display: block; }

  .navbar-collapse {
    display: none;
    width: 100%;
    position: absolute;
    left: 0;
    top: 100%;
    background: var(--blue);
    padding: 10px 20px 24px;
  }

  .navbar-collapse.open { display: block; }

  .navbar-nav {
    flex-direction: column;
    align-items: flex-start;
    margin-left: 0;
  }

  .navbar-nav li { padding: 8px 0; }

  .navbar-nav li .button {
    margin-left: 0;
    margin-top: 12px;
  }

  .navbar .container { flex-wrap: wrap; }

  .intro {
    padding-top: 140px;
    padding-bottom: 0;
  }

  .intro .row { min-height: 0; }

  .intro .content {
    padding-top: 20px;
    padding-bottom: 24px;
  }

  .intro .content-image img {
    width: 100%;
    max-height: 420px;
    margin-top: 8px;
  }

  .services-strip {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .services-strip h2 {
    max-width: none;
    margin-bottom: 0;
  }

  .services-grid {
    grid-column: 1 / -1;
    gap: 24px;
  }

  .work .gallery {
    flex-wrap: wrap;
  }

  .work .gallery a {
    flex: 1 1 45%;
  }

  .work-grid { grid-template-columns: 1fr 1fr; }

  .testimonial .slides { padding: 70px 10%; }

  .form-row { flex-direction: column; gap: 0; }
}

@media (max-width: 767px) {
  h2 {
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
  }

  .page-hero h1 {
    font-size: 34px;
    line-height: 42px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .services .content { margin-bottom: 0; }

  .work { padding-left: 8px; padding-right: 8px; }

  .contact h2 { display: none; }

  .intro { padding-bottom: 0; }

  .work-grid { grid-template-columns: 1fr; }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .form-card { padding: 24px 18px; }
}

@media (max-width: 575px) {
  .navbar-brand { font-size: 1.05rem; }
  .navbar-brand img { height: 40px; }

  .container {
    padding-left: 25px;
    padding-right: 25px;
  }

  h1 {
    font-size: 40px;
    line-height: 50px;
  }

  .about .content-button {
    text-align: left;
    margin-top: 20px;
  }

  .intro p { margin-right: 0; }

  .intro ul li {
    display: block;
    margin: 0 0 12px;
  }

  .work .gallery a { flex: 1 1 100%; }
}
