/* ==========================================================
   WHITEHORSE AC MAINTENANCE — BRAND / UI OVERRIDES
   Existing layout, animations and interactions are preserved.
   All Whitehorse theme colors are controlled from :root.
   ========================================================== */

:root {
  /* Brand palette taken from the supplied Whitehorse logo */
  --wh-primary: #0069b7;
  --wh-primary-dark: #003b78;
  --wh-secondary: #00aeea;
  --wh-accent: #0a8ed8;
  --wh-navy: #082f63;
  --wh-ink: #12345b;
  --wh-text: #687587;
  --wh-muted: #8a96a5;
  --wh-white: #ffffff;
  --wh-soft: #f4fbff;
  --wh-soft-blue: #eaf7ff;
  --wh-border: #d8ebf7;
  --wh-shadow: rgba(0, 74, 130, .12);

  /* Map the original template variables to the Whitehorse palette */
  --theme-color1: var(--wh-primary);
  --theme-color2: #071a33;
  --theme-color3: var(--wh-navy);
  --theme-color4: var(--wh-secondary);
  --theme-color5: var(--wh-accent);
  --bg-theme-color1: var(--wh-primary);
  --bg-theme-color2: #071a33;
  --bg-theme-color3: var(--wh-navy);
  --bg-theme-color4: var(--wh-secondary);
  --border-theme-color1: var(--wh-primary);
  --border-theme-color2: #071a33;
  --border-theme-color3: var(--wh-navy);
  --border-theme-color4: var(--wh-secondary);
  --text-color: var(--wh-text);
  --headings-color: var(--wh-navy);
  --link-color: var(--wh-primary);
  --link-hover-color: var(--wh-secondary);
  --sec-title-color: var(--wh-navy);
  --theme-light-background: var(--wh-soft);
}

/* ---------- Global brand treatment ---------- */
body {
  color: var(--wh-text);
}

a {
  color: var(--wh-primary);
}

a:hover {
  color: var(--wh-secondary);
}

/* ---------- Header / supplied logo ---------- */
.main-header .logo-box .logo img,
.sticky-header .logo img,
.mobile-menu .nav-logo img,
.main-footer .logo-box img {
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.main-header .logo-box .logo img,
.sticky-header .logo img {
  width: 110px;
}

.mobile-menu .nav-logo img {
  width: auto;
}

.main-footer .logo-box img {
  width: 100px;
}

.main-header .logo-box .logo,
.sticky-header .logo,
.mobile-menu .nav-logo,
.main-footer .logo-box {
  display: flex;
  align-items: center;
}

.main-header .header-lower .main-box {
  min-height: 80px;
}

.main-header .logo-box {
  align-self: stretch;
  display: flex;
  align-items: center;
}

/* Keep the supplied logo crisp and avoid lazy-load blank space in the header. */
.main-header .logo img,
.sticky-header .logo img,
.mobile-menu .nav-logo img {
  image-rendering: auto;
}

/* ---------- Buttons / active states ---------- */
.theme-btn.btn-style-one,
.btn-style-one {
  background: var(--wh-primary);
  border-color: var(--wh-primary);
}

.theme-btn.btn-style-one:hover,
.btn-style-one:hover {
  background: var(--wh-primary-dark);
  border-color: var(--wh-primary-dark);
}

.main-menu .navigation>li.current>a,
.main-menu .navigation>li:hover>a {
  color: var(--wh-primary);
}

.main-menu .navigation>li>ul>li>a:hover,
.main-menu .navigation>li>ul>li.current>a {
  color: var(--wh-primary);
}

/* ---------- Hero ---------- */
.hero-support {
  margin: 16px 0 0;
  color: #fff;
  font-size: 20px;
  line-height: 1.55;
  max-width: 560px;
}

/* ---------- Services ---------- */
.services-intro {
  max-width: 1024px;
  margin: 15px auto 0;
  color: var(--wh-text);
  font-size: 17px;
  line-height: 1.7;
}

.service-data-label {
  color: var(--wh-navy);
  font-size: 26px;
  font-weight: 700;
  line-height: 32px;
}

.service-benefit {
  margin: 12px 0 0;
  color: var(--wh-text);
  font-size: 14px;
  line-height: 1.65;
}

.service-benefit strong {
  color: var(--wh-primary);
}

.service-block .lower-content .icon {
  font-family: "Font Awesome 6 Pro" !important;
  font-weight: 900 !important;
  font-size: 30px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  line-height: 1 !important;
  color: var(--wh-white) !important;
  width: 60px;
  height: 60px;
  background: var(--wh-navy);
  border-radius: 0;
  z-index: 3;
}

.service-block .lower-content .icon::before {
  font-family: "Font Awesome 6 Pro" !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  display: block;
}

.service-block .inner-box:hover .icon {
  background: linear-gradient(135deg, var(--wh-primary), var(--wh-secondary)) !important;
  color: #fff !important;
}

.service-block .title a {
  color: var(--wh-navy);
}

.service-block:hover .title a,
.service-block:hover .icon {
  color: var(--wh-primary);
}

/* ---------- About / progress bars ---------- */
.skill-header {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.about-section-two .skills-column .skills .skill-title {
  margin-bottom: 8px;
}

.about-section-two .skills-column .skills .skill-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--wh-primary);
  white-space: nowrap;
  flex: 0 0 auto;
}

.about-section-two .skills-column .skills .bar-inner .skill-percentage {
  display: none !important;
}

.about-section-two .skills-column .skills .progress-line {
  background: linear-gradient(90deg, var(--wh-primary), var(--wh-secondary)) !important;
}

.about-section-two .skills-column .skills .bar-inner {
  overflow: hidden;
}

/* ---------- Office / contact details ---------- */
.office-details {
  margin-top: 30px;
  padding: 28px 30px;
  background: rgba(255, 255, 255, .97);
  border: 1px solid var(--wh-border);
  box-shadow: 0 10px 35px var(--wh-shadow);
  color: var(--wh-ink);
}

.office-details h5 {
  margin: 0 0 12px;
  font-size: 20px;
  color: var(--wh-navy);
}

.office-details p {
  margin: 0 0 4px;
  line-height: 1.6;
}

.office-details a {
  color: var(--wh-primary);
}

.office-details .emergency {
  font-weight: 700;
  color: var(--wh-primary);
}

.quick-action {
  margin: 0 0 25px;
  color: var(--wh-text);
  font-size: 16px;
  line-height: 1.7;
}

.quick-action strong {
  color: var(--wh-primary);
}

/* ---------- Why Choose Us ---------- */
.feature-block-two .icon {
  color: var(--wh-white);
}

.feature-block-two .title {
  color: var(--wh-white);
}

/* ---------- Trusted Clients slider ---------- */
.commitment-text {
  margin: 0 0 16px;
  color: var(--wh-text);
  line-height: 1.65;
}

.home1-team-slider .owl-nav {
  /* left:0 !important;
  right:auto !important; */
  bottom: -50px !important;
  z-index: 5;
}

.home1-team-slider .owl-nav .owl-prev,
.home1-team-slider .owl-nav .owl-next {
  background: var(--wh-white);
  border: 1px solid var(--wh-primary);
  color: var(--wh-primary);
  box-shadow: 0 4px 14px rgba(0, 74, 130, .10);
}

.home1-team-slider .owl-nav .owl-prev:hover,
.home1-team-slider .owl-nav .owl-next:hover {
  background: var(--wh-primary);
  color: var(--wh-white);
}

/* ---------- Visual bug fixes / brand consistency ---------- */
.banner-section-one .bottom-shape {
  background-size: cover;
  background-position: center bottom;
  height: 169px;
  z-index: 1;
}

.about-section-two .title {
  width: 100%;
  max-width: 100%;
  padding: 0 12px;
  font-size: clamp(44px, 7vw, 100px) !important;
  line-height: .95 !important;
  letter-spacing: .01em !important;
  overflow-wrap: anywhere;
  word-break: normal;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.service-block .lower-content {
  min-height: fit-content;
}

.service-block .image-box {
  z-index: 1;
}

.home1-team-slider .owl-nav .owl-prev,
.home1-team-slider .owl-nav .owl-next {
  width: 46px;
  height: 46px;
  line-height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.main-footer {
  background-color: var(--wh-navy);
}

.footer-widget .user-links li a {
  transition: color .25s ease, padding-left .25s ease;
}

.footer-widget .user-links li a:hover {
  color: var(--wh-secondary) !important;
  padding-left: 4px;
}

/* ---------- Footer ---------- */
.footer-office-details {
  line-height: 1.7;
  color: rgba(255, 255, 255, .82);
  font-size: 14px;
}

.footer-office-details strong {
  color: #fff;
}

.footer-office-details a {
  color: #fff;
}

.footer-office-details em {
  color: var(--wh-secondary);
}

.footer-pillar {
  margin-bottom: 15px;
}

.footer-pillar .entry-title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 15px;
}

.footer-pillar-text {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
  line-height: 1.6;
}

.design-credit {
  color: rgba(255, 255, 255, .75);
  font-size: 14px;
}

.design-credit a {
  color: var(--wh-secondary);
  font-weight: 700;
}

.footer-bottom .inner-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* ---------- Form ---------- */
.service-request-label {
  margin: 0 0 5px;
  color: var(--wh-navy);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.form-control:focus,
input:focus,
select:focus,
textarea:focus {
  border-color: var(--wh-primary) !important;
  box-shadow: 0 0 0 .2rem rgba(0, 105, 183, .12) !important;
}

/* ---------- Dropdowns: retain original hover animation, improve keyboard/touch use ---------- */
@media (min-width:1024px) {
  .main-menu .navigation>li.dropdown {
    position: relative;
  }

  .main-menu .navigation>li.dropdown:focus-within>ul {
    visibility: visible;
    opacity: 1;
    top: 100%;
    margin-top: 0;
    display: block;
  }

  .main-menu .navigation>li.dropdown>ul {
    display: block;
    visibility: hidden;
  }

  .main-menu .navigation>li.dropdown:hover>ul {
    display: block;
  }
}

/* ---------- Mobile ---------- */
@media (max-width:1023px) {
  .main-header .header-lower .main-box {
    min-height: 70px;
  }

  .main-header .logo-box .logo img {
    width: auto;
  }

  .home1-team-slider .owl-nav {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    margin: 25px 0 0;
    max-width: 115px;
  }
}

@media (max-width:767px) {
  .hero-support {
    font-size: 17px;
  }

  .services-intro {
    font-size: 15px;
  }

  .office-details {
    padding: 22px 20px;
  }

  .footer-bottom .inner-container {
    justify-content: center;
    text-align: center;
  }

  .service-benefit {
    font-size: 13px;
  }

  .main-footer .logo-box img {
    width: 90px;
  }

  .skill-header {
    gap: 10px;
  }

  .about-section-two .skills-column .skills .skill-value {
    font-size: 14px;
  }
}

/* Supplied logo has dark lettering; keep it readable on the dark footer without altering the artwork. */
.main-footer .logo-box {
  width: max-content;
  max-width: 100%;
}

/* Final responsive image/icon safeguards */
img {
  max-width: 100%;
}

@media (max-width: 991px) {
  .service-block .lower-content {
    min-height: 235px;
  }

  .about-section-two .title {
    font-size: clamp(46px, 10vw, 80px) !important;
  }
}

@media (max-width: 767px) {
  .banner-section-one .bottom-shape {
    height: 90px;
  }

  .service-block .lower-content {
    min-height: auto;
  }

  .service-block {
    margin-bottom: 40px;
  }

  .service-block .inner-box {
    margin-right: 0;
  }

  .service-block .image-box {
    margin-right: 0;
  }

  .service-block .image-box .image {
    margin-bottom: 0;
    margin-left: 0;
  }

  .service-block .lower-content .read-more {
    height: 44px;
    width: 44px;
  }

  .service-block:last-child {
    margin-bottom: 0;
  }

  .service-block .lower-content .icon {
    width: 60px;
    height: 60px;
    right: 0px;
    top: -20px;
    font-size: 26px !important;
  }

  .about-section-two .title {
    font-size: 44px !important;
    line-height: 1 !important;
  }

  .home1-team-slider .owl-nav {
    max-width: 110px;
    display: flex;
    gap: 8px;
  }

  .service-data-label br {
    display: none;
  }
}

@media (max-width: 576px) {
  .banner-section-one .bottom-shape {
    height: 60px;
  }

  .pb-90 {
    padding-bottom: 20px !important;
  }

  .sec-title.mb-30 {
    margin-bottom: 0px !important;
  }

  .home1-team-slider.mt-md-30.owl-carousel.owl-theme.owl-loaded.owl-drag {
    margin-top: 0px !important;
  }

  a.theme-btn.btn-style-one.mb-50,
  .sec-title.mb-xs-10 {
    margin-bottom: 15px !important;
  }

  .main-footer .widgets-section {
    padding: 30px 0 0;
  }
}

@media only screen and (max-width: 480px) {
  .about-section-two .title {
    font-size: 38px !important;
    line-height: 1.2 !important;
    margin-bottom: 15px;
  }

  .home1-team-slider .owl-nav {
    margin: 0;
  }
}

@media only screen and (max-width: 350px) {
  .about-section-two .title {
    font-size: 32px !important;
  }
}
/* ---------- Floating WhatsApp + AI Assistant ---------- */
.whitehorse-floating-tools {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 110px;
  z-index: 999999;
  pointer-events: none;
}

/* WhatsApp stays on the LEFT */
.whitehorse-whatsapp-widget {
  position: absolute;
  right: 6px;
  bottom: 40px;
  width: 68px;
  height: 68px;
  pointer-events: none;
}

.whitehorse-whatsapp-float {
  position: absolute;
  inset: 0;
  width: 62px;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #25D366;
  color: #fff !important;
  font-size: 32px;
  line-height: 1;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0,0,0,.25);
  pointer-events: auto;
  transition: transform .25s ease, box-shadow .25s ease;
}

.whitehorse-whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -5px;
  border: 2px solid rgba(37,211,102,.28);
  border-radius: 50%;
  animation: whitehorseWhatsappPulse 2s infinite;
}

.whitehorse-whatsapp-float:hover,
.whitehorse-whatsapp-float:focus {
  color: #fff !important;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,.30);
}

/* AI Assistant stays on the RIGHT */
.whitehorse-ai-widget {
  position: absolute;
  right: 70px;
  bottom: 0;
  width: 150px;
  height: 110px;
  pointer-events: none;
  display: none;
}

/* One round clickable launcher: curved text + hand + chat icon */
.whitehorse-ai-launcher {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 150px;
  height: 90px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
  overflow: visible;
  -webkit-appearance: none;
  appearance: none;
}

.whitehorse-ai-launcher:focus-visible {
  outline: 3px solid rgba(8,169,79,.35);
  outline-offset: 4px;
  border-radius: 50%;
}

.whitehorse-ai-curved-text {
  position: absolute;
  left: 0px;
  top: -4px;
  width: 160px;
  height: 92px;
  pointer-events: none;
  overflow: visible;
}

.whitehorse-ai-curved-text svg {
  width: 160px;
  height: 92px;
  overflow: visible;
}

.whitehorse-ai-curved-text text {
  fill: #fff;
  stroke: #111;
  stroke-width: 2.8px;
  paint-order: stroke fill;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 21px;
  font-weight: 900;
  letter-spacing: .2px;
}

.whitehorse-ai-wave {
  position: absolute;
  left: -4px;
  top: 49px;
  z-index: 3;
  display: block;
  font-size: 27px;
  line-height: 1;
  transform: rotate(-18deg);
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.35));
  pointer-events: none;
}

.whitehorse-ai-chat-trigger {
  position: absolute;
  right: 36px;
  bottom: 0;
  width: 68px;
  height: 68px;
  margin: 0;
  border-radius: 50%;
  background: var(--wh-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  transition: transform .25s ease, box-shadow .25s ease;
  pointer-events: none;
}

.whitehorse-ai-chat-trigger i {
  font-size: 31px;
  line-height: 1;
  color: #fff;
}

.whitehorse-ai-launcher:hover .whitehorse-ai-chat-trigger,
.whitehorse-ai-launcher:focus .whitehorse-ai-chat-trigger {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 12px 28px rgba(0,0,0,.32);
}

@keyframes whitehorseWhatsappPulse {
  0%,100% { opacity:.25; transform:scale(.96); }
  50% { opacity:0; transform:scale(1.18); }
}

@media (max-width: 767px) {
  .whitehorse-floating-tools {
    bottom: 14px;
    height: 100px;
  }

  .whitehorse-whatsapp-widget {
    right: 10px;
    width: 60px;
    height: 60px;
    bottom: 50px;
  }

  .whitehorse-whatsapp-float {
    width: 56px;
    height: 56px;
    font-size: 29px;
  }

  .whitehorse-ai-widget {
        right: 15px;
        width: 60px;
        height: 60px;
        bottom: 60px;
  }
  .whitehorse-ai-chat-trigger {
    right: 0;
  }

  .whitehorse-ai-launcher {
    width: 60px;
    height: 60px;
  }

  .whitehorse-ai-curved-text {
    left: -31px;
    top: 0;
    width: 164px;
    height: 84px;
            display: none;
  }

  .whitehorse-ai-curved-text svg {
    width: 164px;
    height: 84px;
  }

  .whitehorse-ai-curved-text text {
    font-size: 19px;
  }

  .whitehorse-ai-wave {
    left: -2px;
    top: 47px;
    font-size: 24px;
         display: none;
  }

  .whitehorse-ai-chat-trigger {
    width: 60px;
    height: 60px;
  }

  .whitehorse-ai-chat-trigger i {
    font-size: 28px;
  }
}

@media (max-width: 430px) {
  .whitehorse-floating-tools { bottom: 10px; }
  .whitehorse-ai-launcher { width: 92px; height: 92px; }
  .whitehorse-ai-curved-text { left: -27px; top: 1px; width: 150px; height: 77px; }
  .whitehorse-ai-curved-text svg { width: 150px; height: 77px; }
  .whitehorse-ai-curved-text text { font-size: 17px; }
  .whitehorse-ai-wave { top: 43px; font-size: 22px; }
  .whitehorse-ai-chat-trigger { width: 56px; height: 56px; }
  .whitehorse-ai-chat-trigger i { font-size: 26px; }
}

@media (max-width: 360px) {
  .whitehorse-ai-curved-text { left: -24px; width: 140px; }
  .whitehorse-ai-curved-text svg { width: 140px; }
  .whitehorse-ai-curved-text text { font-size: 16px; }
}


/* ---------- Service request form: responsive + email submission status ---------- */
#contact_form {
  width: 100%;
  max-width: 100%;
}

#contact_form .row {
  margin-left: -7.5px;
  margin-right: -7.5px;
}

#contact_form .form-group {
  min-width: 0;
  padding-left: 7.5px;
  padding-right: 7.5px;
}

#contact_form input,
#contact_form select,
#contact_form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

#contact_form textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 20px;
}

#contact_form button[type="submit"] {
  max-width: 100%;
  min-width: 180px;
}

#contact_form button[type="submit"]:disabled {
  opacity: .7;
  cursor: wait;
}

.whitehorse-form-status {
  display: none;
  width: 100%;
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 14px;
  line-height: 1.45;
}

.whitehorse-form-status.is-sending,
.whitehorse-form-status.is-success,
.whitehorse-form-status.is-error {
  display: block;
}

.whitehorse-form-status.is-sending {
  background: #f3f6f8;
  color: #233142;
}

.whitehorse-form-status.is-success {
  background: #eaf8ef;
  color: #146c35;
}

.whitehorse-form-status.is-error {
  background: #fff0f0;
  color: #9b1c1c;
}

.office-details a[href^="mailto:"],
.footer-office-details a[href^="mailto:"] {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 767px) {
  #contact_form .row {
    margin-left: -5px;
    margin-right: -5px;
  }

  #contact_form .form-group {
    padding-left: 5px;
    padding-right: 5px;
    width: 100%;
  }

  #contact_form .col-md-6,
  #contact_form .col-md-12,
  #contact_form .col-lg-12 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  #contact_form input,
  #contact_form select,
  #contact_form textarea {
    font-size: 15px;
  }

  #contact_form button[type="submit"] {
    width: 100%;
    min-width: 0;
  }

  .whitehorse-form-status {
    font-size: 13px;
  }
}

@media (max-width: 380px) {
  #contact_form .form-group {
    padding-left: 4px;
    padding-right: 4px;
  }

  #contact_form input,
  #contact_form select,
  #contact_form textarea {
    font-size: 14px;
  }
}
