/* ==========================================================================
   Boorite brand overrides & portal components
   Primary:   #ff5e15
   Secondary: #173e2c
   ========================================================================== */

.bg-dark,
.top-bar-dark {
  background: #173e2c;
}

/* Top bar: brighter, aligned, clickable contact items */
.top-bar-dark .left-top-bar p {
  color: rgba(255, 255, 255, .92);
  font-size: 13px;
  line-height: 40px;
  margin: 0 28px 0 0;
  display: inline-flex;
  align-items: center;
}
.top-bar-dark .left-top-bar p a {
  color: rgba(255, 255, 255, .92);
  display: inline-flex;
  align-items: center;
}
.top-bar-dark .left-top-bar p a:hover {
  color: #ff5e15;
  text-decoration: none;
}
.top-bar-dark .left-top-bar p a:hover .topbar-text {
  color: #ff5e15;
}
.top-bar-dark .left-top-bar .lnr {
  font-size: 15px;
  margin-right: 8px;
  position: relative;
  top: 0;
  color: #ff5e15;
}
.top-bar-dark .left-top-bar .topbar-text {
  letter-spacing: .2px;
}
.header .navi-desktop-site .navi-level-1 li .navi-level-2 {
  background-color: #173e2c;
}
.header .navi-desktop-site .navi-level-2 li:hover {
  background: #ff5e15;
}
.header .navi-desktop-site .navi-level-2 li {
  border-color: #1f5138;
}
/* Pre-footer CTA: full-width brand band, white heading, orange button */
.cta-strip {
  background: #173e2c;
  padding: 0;
}
.cta-strip .quote-warp {
  background: transparent;
}
.cta-strip .quote-warp h2 {
  color: #fff;
}
@media only screen and (max-width: 767px) {
  .cta-strip .quote-warp {
    height: auto;
    padding: 40px 0;
  }
  .cta-strip .quote-warp .quote-text {
    top: 0;
    transform: none;
  }
  .cta-strip .quote-warp h2 {
    font-size: 22px;
    line-height: 32px;
  }
}
ul.social li a {
  color: #fff;
}

/* Slider text: template's dark headline on light imagery; kicker line in brand orange */
.slider-home-1 .tp-caption.h2-text {
  color: #ff5e15;
}
/* Long headlines wrap on small screens — the template's fixed caption
   line-height makes wrapped lines overlap. Normalise it. */
@media only screen and (max-width: 767px) {
  .slider-home-1 .tp-caption.h1-text {
    line-height: 1.25 !important;
    white-space: normal !important;
    max-width: 85% !important;
  }
  .slider-home-1 .tp-caption.h2-text {
    line-height: 1.3 !important;
  }
  /* leave room for two-line headlines above the buttons */
  .slider-home-1 .group-btn-slider {
    top: 330px !important;
  }
}

/* Services grid: clear float rows so uneven excerpt heights can't
   collapse the grid (Bootstrap 3 float wrap). */
@media (min-width: 992px) {
  .services-warp .media-left-icon-item:nth-of-type(3n+1) { clear: left; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .services-warp .media-left-icon-item:nth-of-type(2n+1) { clear: left; }
}
/* Equalise intro card text blocks so the three cards read as one row */
.services-home-1 .item-blog .caption {
  min-height: 150px;
}

/* Blog list: contain each article's floated thumbnail and crop images
   to fill the 370x277 frame so every entry lines up identically. */
.itemBlogList {
  clear: both;
  overflow: hidden;
}
.itemBlogList .img-news-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Generic content pages (Terms, Privacy, ...) */
.page-content h3 {
  color: #173e2c;
  font-weight: 700;
  margin: 30px 0 12px;
}
.page-content h3:first-child {
  margin-top: 0;
}
.page-content p {
  line-height: 26px;
  margin-bottom: 15px;
}

/* ==========================================================================
   Portal (client dashboard + auth) components
   ========================================================================== */
.portal-section {
  padding: 50px 0 70px;
  background: #f5f6f7;
  min-height: 60vh;
}
.portal-card {
  background: #fff;
  border: 1px solid #e7e9ec;
  border-radius: 4px;
  padding: 25px;
  margin-bottom: 25px;
}
.portal-card h4 {
  margin-top: 0;
  color: #173e2c;
  font-weight: 700;
}
.portal-card .big-number {
  font-size: 34px;
  font-weight: 700;
  color: #173e2c;
  margin: 5px 0 0;
}
.portal-card.stat-card {
  border-top: 3px solid #ff5e15;
  text-align: center;
}
.portal-sidebar {
  background: #173e2c;
  border-radius: 4px;
  padding: 15px 0;
  margin-bottom: 25px;
}
.portal-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.portal-sidebar ul li a {
  display: block;
  color: #cfe0d7;
  padding: 11px 22px;
  font-size: 13px;
  letter-spacing: .3px;
  transition: all .2s;
}
.portal-sidebar ul li a:hover,
.portal-sidebar ul li.active a {
  background: rgba(255, 94, 21, .95);
  color: #fff;
  text-decoration: none;
}
.portal-sidebar ul li a i {
  width: 20px;
  margin-right: 8px;
}
.portal-page-title {
  margin: 0 0 25px;
  color: #173e2c;
  font-weight: 700;
}

/* Status badges */
.status-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  color: #fff;
}
.status-pending      { background: #8d99ae; }
.status-under_review { background: #f0ad4e; }
.status-approved     { background: #2e86de; }
.status-rejected     { background: #d64545; }
.status-registered   { background: #1d8a4e; }
.status-open               { background: #2e86de; }
.status-in_progress        { background: #f0ad4e; }
.status-waiting_for_client { background: #8d99ae; }
.status-resolved           { background: #1d8a4e; }
.status-closed             { background: #555; }
.status-paid   { background: #1d8a4e; }
.status-unpaid { background: #d64545; }

/* Registration timeline */
.reg-timeline {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}
.reg-timeline li {
  position: relative;
  padding: 0 0 30px 40px;
}
.reg-timeline li:before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: 0;
  width: 2px;
  background: #dfe3e8;
}
.reg-timeline li:last-child:before { display: none; }
.reg-timeline .tl-dot {
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cfd6dd;
  color: #cfd6dd;
  text-align: center;
  line-height: 20px;
  font-size: 12px;
}
.reg-timeline li.done .tl-dot {
  background: #1d8a4e;
  border-color: #1d8a4e;
  color: #fff;
}
.reg-timeline li.current .tl-dot {
  background: #ff5e15;
  border-color: #ff5e15;
  color: #fff;
}
.reg-timeline li.rejected-step .tl-dot {
  background: #d64545;
  border-color: #d64545;
  color: #fff;
}
.reg-timeline h5 {
  margin: 2px 0 3px;
  font-weight: 700;
  color: #173e2c;
}
.reg-timeline .tl-date {
  font-size: 12px;
  color: #999;
}
.reg-timeline .tl-comment {
  font-size: 13px;
  color: #666;
  margin-top: 4px;
}

/* Ticket conversation */
.ticket-msg {
  border: 1px solid #e7e9ec;
  border-radius: 4px;
  margin-bottom: 15px;
  background: #fff;
}
.ticket-msg .msg-head {
  padding: 8px 15px;
  background: #f5f6f7;
  border-bottom: 1px solid #e7e9ec;
  font-size: 12px;
  color: #777;
}
.ticket-msg .msg-head strong { color: #173e2c; }
.ticket-msg .msg-body { padding: 15px; }
.ticket-msg.msg-staff { border-left: 3px solid #ff5e15; }
.ticket-msg.msg-client { border-left: 3px solid #173e2c; }
.ticket-msg.msg-internal { border-left: 3px solid #f0ad4e; background: #fffcf5; }

/* Portal forms & tables */
.portal-card .form-control {
  border-radius: 3px;
  box-shadow: none;
  height: 42px;
}
.portal-card textarea.form-control { height: auto; }
.portal-card label {
  color: #173e2c;
  font-size: 13px;
}
.btn-boorite {
  background: #ff5e15;
  color: #fff !important;
  border: none;
  border-radius: 3px;
  padding: 10px 26px;
  font-weight: 700;
  letter-spacing: .5px;
  display: inline-block;
  transition: background .2s;
}
.btn-boorite:hover,
.btn-boorite:focus {
  background: #cc4a10;
  color: #fff;
  text-decoration: none;
}
.btn-boorite-outline {
  background: transparent;
  color: #173e2c !important;
  border: 1px solid #173e2c;
  border-radius: 3px;
  padding: 9px 25px;
  font-weight: 700;
  display: inline-block;
  transition: all .2s;
}
.btn-boorite-outline:hover {
  background: #173e2c;
  color: #fff !important;
  text-decoration: none;
}
.table-portal {
  background: #fff;
  margin-bottom: 0;
}
.table-portal > thead > tr > th {
  background: #173e2c;
  color: #fff;
  border: none;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 12px 15px;
}
.table-portal > tbody > tr > td {
  vertical-align: middle;
  padding: 12px 15px;
  font-size: 13px;
}
.alert-boorite-success {
  background: #e8f5ee;
  border: 1px solid #1d8a4e;
  color: #14663a;
  padding: 12px 18px;
  border-radius: 3px;
  margin-bottom: 20px;
}
.alert-boorite-error {
  background: #fdeeee;
  border: 1px solid #d64545;
  color: #a53030;
  padding: 12px 18px;
  border-radius: 3px;
  margin-bottom: 20px;
}

/* Auth pages */
.auth-wrap {
  max-width: 480px;
  margin: 0 auto;
}
.auth-wrap .portal-card { padding: 35px; }
.auth-wrap .auth-links {
  margin-top: 15px;
  font-size: 13px;
}
.auth-wrap .auth-links a { color: #ff5e15; }

/* Header account button */
.navi-right .btn-account {
  margin-left: 10px;
}

/* Hide theme demo switcher remnants if any */
#switcher { display: none !important; }

/* ==========================================================================
   Showcase bands (Estate & Gardens, Boorite Shop)
   ========================================================================== */
.showcase-band {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: #173e2c;
  padding: 70px 0 80px;
}
.showcase-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, .55);
}
.showcase-inner { position: relative; }
.showcase-heading {
  color: #fff;
  text-align: center;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0 0 10px;
}
.showcase-subheading {
  color: rgba(255, 255, 255, .85);
  text-align: center;
  margin-bottom: 10px;
}
.showcase-band .row { margin-top: 40px; }
.showcase-card {
  border: 4px solid #fff;
  padding: 35px 25px 30px;
  text-align: center;
  color: #fff;
  min-height: 300px;
  margin-bottom: 25px;
}
.showcase-card-orange { background: #ff5e15; }
.showcase-card-green  { background: #173e2c; }
.showcase-card-icon i {
  font-size: 44px;
  color: #fff;
  margin-bottom: 18px;
}
.showcase-card-img img {
  max-height: 90px;
  width: auto;
  margin: 0 auto 15px;
}
.showcase-card h4 {
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 12px 0 15px;
}
.showcase-card p {
  color: rgba(255, 255, 255, .92);
  line-height: 24px;
  margin: 0;
}
.showcase-btn-wrap { text-align: center; margin-top: 15px; }
@media only screen and (max-width: 767px) {
  .showcase-card { min-height: 0; }
}

/* ==========================================================================
   Popup
   ========================================================================== */
.bpopup-overlay {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(15, 25, 20, .72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s;
}
.bpopup-overlay.bpopup-show { opacity: 1; }
.bpopup {
  position: relative;
  max-width: 520px;
  width: 100%;
  transform: translateY(14px);
  transition: transform .25s;
}
.bpopup-show .bpopup { transform: translateY(0); }
.bpopup-graphic { max-width: 560px; width: auto; }
.bpopup-graphic img {
  max-width: 100%;
  max-height: 80vh;
  display: block;
  border-radius: 6px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
}
.bpopup-text .bpopup-body {
  background: #fff;
  border-radius: 6px;
  border-top: 4px solid #ff5e15;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .45);
  padding: 40px 35px 35px;
  text-align: center;
}
.bpopup-brand { height: 46px; width: auto; margin-bottom: 14px; }
.bpopup-text h3 {
  color: #173e2c;
  font-weight: 700;
  margin: 0 0 12px;
}
.bpopup-text p {
  color: #555;
  line-height: 25px;
  margin-bottom: 20px;
}
.bpopup-close {
  position: absolute;
  top: -14px;
  right: -14px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: #ff5e15;
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .3);
}
.bpopup-close:hover { background: #cc4a10; }

/* ==========================================================================
   Floating WhatsApp button
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 9990;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ==========================================================================
   Branded page loader (inside jPreLoader splash)
   ========================================================================== */
.boorite-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.boorite-loader img {
  width: 64px;
  height: 64px;
  animation: boorite-pulse 1.1s ease-in-out infinite;
}
@keyframes boorite-pulse {
  0%, 100% { transform: scale(1);    opacity: 1; }
  50%      { transform: scale(0.72); opacity: .55; }
}

/* Team carousel (shares the experts layout) */
.owl-team .item-experts .avatar img {
  border-radius: 50%;
}
@media (min-width: 992px) {
  .clear-md { clear: left; }
}

/* ==========================================================================
   Shop
   ========================================================================== */
.product-card {
  background: #fff;
  border: 1px solid #e7e9ec;
  border-radius: 4px;
  margin-bottom: 30px;
  overflow: hidden;
  transition: box-shadow .2s;
}
.product-card:hover {
  box-shadow: 0 10px 28px rgba(0, 0, 0, .1);
}
.product-card-img {
  position: relative;
  display: block;
  height: 260px;
  background: #f5f6f7;
}
.product-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-discount {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #ff5e15;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 3px;
}
.product-card-body {
  padding: 22px;
}
.product-card-body h4 { margin: 8px 0 4px; }
.product-card-body h4 a { color: #173e2c; font-weight: 700; }
.product-card-body h4 a:hover { color: #ff5e15; text-decoration: none; }
.product-tag {
  display: inline-block;
  background: #173e2c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 3px;
}
.product-author {
  color: #888;
  font-size: 13px;
  margin-bottom: 8px;
}
.product-price {
  font-size: 20px;
  color: #ff5e15;
  margin-bottom: 10px;
}
.product-price s {
  color: #aaa;
  font-size: 15px;
  margin-left: 8px;
}
.product-price-lg { font-size: 28px; }
.product-detail-img {
  position: relative;
  border: 1px solid #e7e9ec;
  border-radius: 4px;
  overflow: hidden;
}
.product-description { line-height: 26px; color: #555; }
.product-description h3 { color: #173e2c; font-weight: 700; margin: 22px 0 10px; }

/* ==========================================================================
   Testimonials panel (brand-green block + white photo cards)
   ========================================================================== */
.tpanel-wrap {
  padding: 90px 0 60px;
  background: #f5f6f7;
}
.tpanel {
  position: relative;
  background: #173e2c;
  padding: 55px 45px 45px;
  border-radius: 4px;
}
.tpanel-quote {
  position: absolute;
  top: -42px;
  left: 38px;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #ff5e15;
  color: #fff;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
}
.tpanel-intro h2 {
  color: #fff;
  font-weight: 700;
  font-size: 26px;
  line-height: 34px;
  margin: 20px 0 18px;
}
.tpanel-intro p {
  color: rgba(255, 255, 255, .78);
  line-height: 25px;
  margin-bottom: 22px;
}
.tpanel-link {
  color: #ff5e15;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
}
.tpanel-link:hover {
  color: #fff;
  text-decoration: none;
}
.tpanel-link i { margin-left: 6px; }

.tcard {
  background: #fff;
  border-radius: 4px;
  overflow: visible;
  margin: 0 12px 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.tcard-photo {
  position: relative;
  height: 170px;
  border-radius: 4px 4px 0 0;
  overflow: hidden;
}
.tcard-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tcard-quote {
  position: absolute;
  left: 16px;
  bottom: -16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #ff5e15;
  color: #fff;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
}
.tcard-body {
  padding: 28px 20px 20px;
}
.tcard-text {
  font-size: 13px;
  color: #666;
  line-height: 22px;
  min-height: 110px;
  margin-bottom: 12px;
}
.tcard-body h5 {
  font-weight: 700;
  color: #173e2c;
  margin: 0 0 3px;
  font-size: 15px;
}
.tcard-role {
  font-size: 12px;
  font-style: italic;
  color: #999;
}
/* owl pagination dots inside the dark panel */
.owl-tcards .owl-controls { margin-top: 18px; }
.owl-tcards .owl-controls .owl-page span {
  width: 9px;
  height: 9px;
  background: rgba(255, 255, 255, .35);
  opacity: 1;
}
.owl-tcards .owl-controls .owl-page.active span,
.owl-tcards .owl-controls .owl-page:hover span {
  background: #ff5e15;
}
.tpanel-nav {
  position: absolute;
  bottom: 28px;
  left: 45px;
}
.btn-tcard {
  display: inline-block;
  width: 34px;
  height: 34px;
  background: #ff5e15;
  color: #fff !important;
  text-align: center;
  line-height: 34px;
  font-size: 18px;
  border-radius: 3px;
  margin-right: 6px;
  cursor: pointer;
  transition: background .2s;
}
.btn-tcard:hover { background: #cc4a10; }
@media only screen and (max-width: 991px) {
  .tpanel { padding: 50px 25px 35px; }
  .tpanel-nav { position: static; margin-top: 5px; }
  .tcard-text { min-height: 0; }
}
