/* TheRenoCo brand color override */
:root {
  --primary-color: #f87c2e;
}

/* TheRenoCo header & footer logo (horizontal mark) */
.header__logo img,
.offset-logo img {
  max-height: 64px;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.footer-widget__about-logo img,
.footer-four__top-logo img {
  max-height: 80px;
  max-width: 260px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* CEO profile photo (Kane Herlihy) */
.aboutone__profile-thumb img,
.team-cardthree__thumb img,
.team-details__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 8px;
}

.aboutone__profile-thumb {
  width: 72px;
  height: 72px;
  overflow: hidden;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-cardthree__thumb {
  overflow: hidden;
}

.team-details__thumb img {
  max-height: 420px;
}

/* Footer four — aligned grid (fixes staggered newsletter/copyright) */
.footer-four .therenoco-footer-main {
  display: block;
  width: 100%;
}

.footer-four .therenoco-footer-main .row {
  margin-left: 0;
  margin-right: 0;
}

.footer-four .therenoco-footer-widget {
  padding-top: 48px;
  width: 100%;
}

.footer-four .therenoco-footer-newsletter {
  padding-left: 0 !important;
  padding-top: 24px;
  width: 100% !important;
  max-width: 640px;
}

.footer-four .therenoco-footer-newsletter .footer-four__newsletter-form {
  margin-bottom: 24px;
}

.footer-four .therenoco-footer-copyright {
  color: var(--text-primary);
  margin: 0;
  padding-top: 8px;
  opacity: 0.85;
}

@media (max-width: 991.98px) {
  .footer-four .therenoco-footer-widget,
  .footer-four .therenoco-footer-newsletter {
    padding-top: 32px;
  }
}

/* Header layout one — grid alignment, no overlap with logo wedge */
.header-layoutone .header-area__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  flex-wrap: nowrap;
  overflow: visible;
  --therenoco-logo-skew-x: 38.87deg;
  --therenoco-logo-skew-x-text: -38.87deg;
}

.header-layoutone .header__logo {
  grid-column: 1;
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  width: 175px;
  max-width: 175px;
  padding-right: 8px;
}

.header-layoutone .header__logo img {
  display: block;
  max-width: 100%;
  height: auto;
}

.header-layoutone .header__nav {
  grid-column: 2;
  min-width: 0;
  position: relative;
  z-index: 3;
  margin-left: 0;
  padding-left: 12px;
  overflow: hidden;
}

.header-layoutone .header-right {
  grid-column: 3;
  flex: 0 0 auto;
  flex-shrink: 0;
  gap: 16px;
  padding: 16px 0;
}

.header-layoutone .main-menu > ul {
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
  gap: 28px;
  margin: 0;
}

.header-layoutone .main-menu > ul > li {
  flex-shrink: 0;
}

.header-layoutone .main-menu > ul > li > a {
  white-space: nowrap;
  font-size: 15px;
  letter-spacing: 0.35px;
  padding: 32px 10px !important;
}

/* 1200–1439px: tighter menu, hide search to prevent crush */
@media (min-width: 1200px) and (max-width: 1439.98px) {
  .header-layoutone .header-area__inner {
    margin-left: -50px !important;
    padding-left: 56px !important;
    padding-right: 12px !important;
    column-gap: 8px;
    --therenoco-logo-skew-x: 32.01deg;
    --therenoco-logo-skew-x-text: -32.01deg;
  }

  .header-layoutone .header-area__inner::before {
    width: 280px;
    clip-path: polygon(0 0, 86% 0, 66% 100%, 0% 100%);
  }

  .header-layoutone .header__logo {
    width: 150px;
    max-width: 150px;
  }

  .header-layoutone .header__nav {
    padding-left: 8px;
  }

  .header-layoutone .header__search {
    display: none !important;
  }

  .header-layoutone .main-menu > ul {
    gap: 10px;
  }

  .header-layoutone .main-menu > ul > li > a {
    font-size: 12px;
    letter-spacing: 0.2px;
    padding: 28px 5px !important;
  }

  .header-layoutone .header-right {
    gap: 10px;
  }

  .header-layoutone .header-right .custom-btn.custom-btn--primary {
    padding: 14px 18px;
    font-size: 12px;
  }
}

/* 1440–1599px: medium desktops */
@media (min-width: 1440px) and (max-width: 1599.98px) {
  .header-layoutone .header-area__inner {
    margin-left: -70px !important;
    padding-left: 72px !important;
    padding-right: 20px !important;
    --therenoco-logo-skew-x: 32.48deg;
    --therenoco-logo-skew-x-text: -32.48deg;
  }

  .header-layoutone .header-area__inner::before {
    width: 320px;
    clip-path: polygon(0 0, 88% 0, 70% 100%, 0% 100%);
  }

  .header-layoutone .header__logo {
    width: 165px;
    max-width: 165px;
  }

  .header-layoutone .main-menu > ul {
    gap: 18px;
  }

  .header-layoutone .main-menu > ul > li > a {
    font-size: 13px;
    padding: 30px 8px !important;
  }

  .header-layoutone .header-right {
    gap: 14px;
  }
}

/* 1600px+ */
@media (min-width: 1600px) {
  .header-layoutone .header-area__inner {
    margin-left: -80px !important;
    padding-left: 88px !important;
    padding-right: 28px !important;
  }

  .header-layoutone .header-area__inner::before {
    width: 360px;
  }

  .header-layoutone .header__logo {
    width: 185px;
    max-width: 185px;
  }

  .header-layoutone .header__nav {
    padding-left: 16px;
  }

  .header-layoutone .main-menu > ul {
    gap: 32px;
  }

  .header-layoutone .main-menu > ul > li > a {
    font-size: 15px;
    padding: 32px 12px !important;
  }

  .header-layoutone .header-right {
    gap: 20px;
  }
}

@media (min-width: 1800px) {
  .header-layoutone .main-menu > ul {
    gap: 40px;
  }
}

@media (max-width: 1199.98px) {
  .header-layoutone .header-area__inner {
    display: flex;
    margin-left: 0 !important;
    padding: 10px 20px !important;
    gap: 16px;
  }

  .header-layoutone .header-area__inner::before {
    width: min(72vw, 280px);
    clip-path: polygon(0 0, 92% 0, 78% 100%, 0% 100%);
  }

  .header-layoutone .header__logo {
    width: auto;
    max-width: min(180px, 42vw);
  }
}

/* Header — Shop nav button (skewed orange tab) */
.header-layoutone .main-menu > ul {
  align-items: stretch;
}

.header-layoutone .main-menu > ul > li.therenoco-nav-shop-item {
  margin-left: 10px;
  display: flex;
  align-items: stretch;
}

.header-layoutone .main-menu > ul > li.therenoco-nav-shop-item > a.therenoco-nav-shop-link {
  position: relative;
  z-index: 2;
  margin: 0 -12px 0 0;
  padding: 0 44px 0 36px !important;
  min-height: 100%;
  background-color: var(--primary-color);
  color: var(--white-color, #fff) !important;
  transform: skewX(var(--therenoco-logo-skew-x));
  transform-origin: center center;
  border-bottom: 3px solid var(--white-color, #fff);
  transition: background-color 0.25s ease, filter 0.25s ease;
}

.header-layoutone .main-menu > ul > li.therenoco-nav-shop-item > a.therenoco-nav-shop-link .therenoco-nav-shop-text {
  display: inline-block;
  transform: skewX(var(--therenoco-logo-skew-x-text));
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.header-layoutone .main-menu > ul > li.therenoco-nav-shop-item:hover > a.therenoco-nav-shop-link,
.header-layoutone .main-menu > ul > li.therenoco-nav-shop-item > a.therenoco-nav-shop-link:hover {
  color: var(--white-color, #fff) !important;
  background-color: #e06a1f;
  filter: brightness(1.05);
}

@media (min-width: 1200px) and (max-width: 1439.98px) {
  .header-layoutone .main-menu > ul > li.therenoco-nav-shop-item {
    margin-left: 6px;
  }

  .header-layoutone .main-menu > ul > li.therenoco-nav-shop-item > a.therenoco-nav-shop-link {
    margin-right: -8px;
    padding: 0 32px 0 26px !important;
  }
}

@media (min-width: 1440px) and (max-width: 1599.98px) {
  .header-layoutone .main-menu > ul > li.therenoco-nav-shop-item > a.therenoco-nav-shop-link {
    margin-right: -10px;
    padding: 0 38px 0 32px !important;
  }
}

@media (max-width: 1199.98px) {
  .header-layoutone .main-menu > ul > li.therenoco-nav-shop-item > a.therenoco-nav-shop-link {
    margin-right: -15px;
    padding: 0 36px 0 28px !important;
  }
}

/* Services listing — section headings */
.therenoco-services-group .section-top h2 {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* Mobile offcanvas navigation (all items visible, incl. Blog + Shop) */
.therenoco-mobile-nav {
  margin-top: 24px;
  margin-bottom: 8px;
}

.therenoco-mobile-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.therenoco-mobile-nav__item:not(.therenoco-mobile-nav__item--has-children) {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.therenoco-mobile-nav__link {
  display: block;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.therenoco-mobile-nav__link:hover {
  color: #fff;
}

/* Collapsible sections (click to expand) */
.therenoco-mobile-nav__details {
  border-top: inherit;
}

.therenoco-mobile-nav__item--has-children {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.therenoco-mobile-nav__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  list-style: none;
}

.therenoco-mobile-nav__summary::-webkit-details-marker {
  display: none;
}

.therenoco-mobile-nav__summary::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--primary-color);
  transition: transform 0.2s ease;
}

.therenoco-mobile-nav__details[open] > .therenoco-mobile-nav__summary::after {
  content: "−";
}

.therenoco-mobile-nav__summary--nested {
  padding: 10px 0;
  font-size: 15px;
  font-weight: 600;
  text-transform: none;
  color: rgba(255, 255, 255, 0.92);
}

.therenoco-mobile-nav__summary--nested::after {
  font-size: 18px;
}

.therenoco-mobile-nav__details--nested {
  margin-bottom: 4px;
}

.therenoco-mobile-nav__sub,
.therenoco-mobile-nav__sub-nested {
  list-style: none;
  margin: 0 0 8px;
  padding: 0 0 0 12px;
}

.therenoco-mobile-nav__details:not([open]) > .therenoco-mobile-nav__sub,
.therenoco-mobile-nav__details:not([open]) > .therenoco-mobile-nav__sub-nested {
  display: none;
}

.therenoco-mobile-nav__sub-link {
  display: block;
  padding: 10px 0;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  text-transform: none;
}

.therenoco-mobile-nav__sub-link:hover {
  color: var(--primary-color);
}

.therenoco-mobile-nav__sub-nested {
  padding-left: 12px;
}

.therenoco-mobile-nav__sub-nested .therenoco-mobile-nav__sub-link {
  font-size: 14px;
  padding: 8px 0;
}

/* Shop — full-width orange button in mobile drawer */
.therenoco-mobile-nav__item.therenoco-nav-shop-item {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-top: 8px;
  padding-top: 4px;
}

.therenoco-mobile-nav__item.therenoco-nav-shop-item > .therenoco-nav-shop-link {
  display: block;
  margin-top: 8px;
  padding: 14px 20px !important;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--white-color, #fff) !important;
  transform: none;
  border: none;
}

.therenoco-mobile-nav__item.therenoco-nav-shop-item > .therenoco-nav-shop-link:hover {
  color: var(--white-color, #fff) !important;
  background-color: #e06a1f;
}

.therenoco-mobile-nav__item.therenoco-nav-shop-item .therenoco-nav-shop-text {
  display: inline-block;
  transform: none;
  font-weight: 700;
  letter-spacing: 0.08em;
}

/* Services nav — nested category sub-menus */
.main-menu > ul > li:hover > ul.dp-menu.therenoco-services-menu {
  width: 280px;
  min-width: 280px;
}

.main-menu ul.dp-menu.therenoco-services-menu ul {
  width: 300px;
  min-width: 300px;
}

.main-menu ul.dp-menu.therenoco-services-menu > li.menu-item-has-children > a {
  font-weight: 600;
  color: var(--primary-color);
}

.main-menu ul.dp-menu.therenoco-services-menu > li:not(.menu-item-has-children) > a {
  font-weight: 500;
}

/* Blog article detail */
.blog-detail__body p {
  margin-bottom: 1.25rem;
  line-height: 1.75;
}

.blog-detail__body h2 {
  margin-top: 2.5rem;
}

.blog-detail__body h3 {
  margin-top: 1.5rem;
}

.blog-detail__body .blog-lead {
  font-size: 1.05rem;
}

.blog-detail__thumb img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.blog-detail__related li {
  line-height: 1.4;
}

.blog-detail__sidebar.sidebar .sidebar__categories,
.blog-detail__sidebar.sidebar .sidebar__recent,
.blog-detail__sidebar.sidebar .sidebar__download {
  background: var(--bg-color-primary, #f5f5f5);
}

.blog-detail-page .blog-detail__sidebar {
  position: sticky;
  top: 120px;
}

/* Active category — do not use .text-primary-color (that is white text for dark backgrounds) */
.blog-detail__sidebar .sidebar__list li a.sidebar__link--active,
.blog-detail__sidebar .sidebar__list li a.sidebar__link--active span {
  color: var(--primary-color);
  font-weight: 600;
}

.blog-detail__sidebar .sidebar__list li a.sidebar__link--active i {
  background-color: var(--primary-color);
  color: var(--white-color, #fff);
}

@media (max-width: 575.98px) {
  .header__logo img,
  .offset-logo img {
    max-height: 48px;
    max-width: 160px;
  }

  .footer-widget__about-logo img,
  .footer-four__top-logo img {
    max-height: 64px;
    max-width: 200px;
  }
}

/* Form feedback */
.therenoco-flash-wrap {
  padding: 16px 0 0;
}

.therenoco-alert {
  border-radius: 6px;
  padding: 14px 18px;
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.5;
}

.therenoco-alert--success {
  background: #edf7ed;
  border: 1px solid #b7dfb9;
  color: #1b5e20;
}

.therenoco-alert--error {
  background: #fdecea;
  border: 1px solid #f5c6c6;
  color: #7f1d1d;
}

.therenoco-alert__list {
  padding-left: 18px;
}

.therenoco-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* CTA consultation — anchor worker figures to bottom (fix “floating” cut-off) */
.ctaone > .container > .row {
  align-items: flex-end;
}

.ctaone__thumb {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  margin-bottom: 0;
  padding-bottom: 0;
  line-height: 0;
}

.ctaone__thumb img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  margin-left: auto;
  margin-right: 0;
  object-fit: contain;
  object-position: bottom right;
  margin-bottom: -18px;
}

@media (max-width: 1499.98px) {
  .ctaone__thumb {
    margin-right: 0;
    margin-left: 0;
  }

  .ctaone__thumb img {
    max-width: 520px;
    margin-bottom: -12px;
  }
}

@media (max-width: 1199.98px) {
  .ctaone__thumb {
    justify-content: center;
    margin-top: 24px;
  }

  .ctaone__thumb img {
    margin-left: auto;
    margin-right: auto;
    max-width: 480px;
    transform: none;
  }
}
