html {
  scroll-behavior: smooth;
}

:root {
  --cr-accent: #b85b2c;
  --cr-accent-dark: #7e3318;
  --cr-ink: #17212b;
  --cr-panel: #f6f2ec;
}

a {
  color: inherit;
}

.button.primary,
.button.secondary,
.header .highlight > a,
.hero-sub .wrapper > h1,
.hero-sub .wrapper > h1 strong,
.side-form .gform_button {
  background: var(--cr-accent) !important;
  border-color: var(--cr-accent) !important;
  color: #fff !important;
}

.button.primary:hover,
.button.secondary:hover,
.header .highlight > a:hover,
.side-form .gform_button:hover {
  background: var(--cr-accent-dark) !important;
  border-color: var(--cr-accent-dark) !important;
}

.module-h2 strong,
.quick-hit h2 strong,
.eyebrow span,
.pathway-list .desktop a.link.is-active,
.pathway-list .desktop a.link:hover,
.page-breadcrumbs a,
.taxonomy-card span {
  color: var(--cr-accent) !important;
}

body,
.standard-text h1,
.standard-text h2,
.standard-text h3,
.module-h2,
.pathway-cards h3,
.featured-posts h3,
.taxonomy-card h3,
.header nav .nav-element > a,
.footer nav .nav-element > a {
  color: var(--cr-ink) !important;
}

.header {
  background: #f7f4ef !important;
}

.header .highlight > a,
.hero-sub .wrapper > h1,
.hero-sub .wrapper > h1 strong {
  color: #fff !important;
}

.breadcrumbs,
.standard-text,
.taxonomy-index {
  background: #f4f1ec !important;
}

.hero-sub .wrapper > h1::before,
.hero-sub .wrapper > h1::after,
.standard-text h1::before,
.module-h2::before,
.module-h2::after,
.module-h2 strong::before,
.module-h2 strong::after,
.module-header::before,
.module-header::after {
  background: var(--cr-accent) !important;
  border-color: var(--cr-accent) !important;
}

.site-logo img,
.footer__logo img {
  display: block;
  width: 152px;
  max-width: 100%;
  height: auto;
}

.header nav .nav-element a,
.footer nav .nav-element a {
  cursor: pointer;
}

.hero-home .swiper-wrapper {
  position: relative;
}

.hero-home .swiper-slide {
  display: none;
}

.hero-home .swiper-slide.is-active,
.hero-home .swiper-slide:first-child {
  display: block;
}

.js-ready .hero-home .swiper-slide:first-child:not(.is-active) {
  display: none;
}

.pathway-list .desktop figure img {
  transition: opacity 180ms ease;
}

.pathway-list .desktop figure img.is-swapping {
  opacity: 0.15;
}

.mobile-link,
.pathway-cards a,
.featured-posts a {
  text-decoration: none;
}

.footer__bottom .social {
  display: none;
}

.footer__bottom aside a {
  pointer-events: none;
}

.swiper-featured-posts,
.swiper-pathway-list {
  position: relative;
}

.swiper-featured-posts .swiper-wrapper > .swiper-slide,
.swiper-pathway-list .swiper-wrapper > .swiper-slide {
  display: none;
}

.swiper-featured-posts .swiper-wrapper > .swiper-slide.is-active,
.swiper-pathway-list .swiper-wrapper > .swiper-slide.is-active {
  display: block;
}

.swiper-featured-posts .swiper-prev,
.swiper-featured-posts .swiper-next {
  align-items: center;
  background: var(--cr-ink);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 0;
  height: 46px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  transition: background 180ms ease, transform 180ms ease;
  width: 46px;
  z-index: 4;
}

.swiper-featured-posts .swiper-prev {
  left: -18px;
}

.swiper-featured-posts .swiper-next {
  right: -18px;
}

.swiper-featured-posts .swiper-prev::before,
.swiper-featured-posts .swiper-next::before {
  font-size: 24px;
  font-weight: 700;
}

.swiper-featured-posts .swiper-prev::before {
  content: "←";
}

.swiper-featured-posts .swiper-next::before {
  content: "→";
}

.swiper-featured-posts .swiper-prev:hover,
.swiper-featured-posts .swiper-next:hover {
  background: var(--cr-accent);
  transform: translateY(-50%) scale(1.04);
}

.swiper-pagination button {
  background: rgba(23, 33, 43, 0.28);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 9px;
  margin: 0 5px;
  padding: 0;
  width: 9px;
}

.swiper-pagination button.is-active {
  background: var(--cr-accent);
  width: 24px;
}

.side-form form {
  margin-top: 1.25rem;
}

.side-form {
  border-top-color: var(--cr-accent) !important;
}

.side-form .form-note {
  display: none;
  margin-top: 1rem;
  color: var(--cr-accent-dark);
  font-weight: 700;
}

.side-form.is-sent .form-note {
  display: block;
}

.roof-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 34px;
}

.roof-detail-grid .item {
  border-top: 2px solid var(--cr-accent);
  padding-top: 18px;
}

.taxonomy-index {
  padding: 24px 0 84px;
}

.taxonomy-index__grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.taxonomy-card {
  background: #fff;
  border-top: 4px solid var(--cr-accent);
  box-shadow: 0 18px 42px rgba(23, 33, 43, 0.08);
  display: block;
  min-height: 220px;
  padding: 28px;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.taxonomy-card:hover {
  box-shadow: 0 24px 54px rgba(23, 33, 43, 0.14);
  transform: translateY(-4px);
}

.taxonomy-card span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.taxonomy-card h3 {
  margin: 0 0 14px;
}

.taxonomy-card p {
  margin-bottom: 0;
}

.location-cta {
  margin-top: -44px;
  padding-bottom: 68px;
  text-align: center;
}

.contact-map {
  background: var(--cr-panel);
  min-height: 340px;
  overflow: hidden;
}

.contact-map iframe {
  border: 0;
  display: block;
  height: 340px;
  width: 100%;
}

.roof-detail-grid h3 {
  margin-top: 0;
}

@media (max-width: 760px) {
  .roof-detail-grid {
    grid-template-columns: 1fr;
  }

  .taxonomy-index__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  body.nav-open {
    overflow: hidden;
  }

  .header .wrapper {
    align-items: center;
  }

  .header .nav-toggle {
    align-items: center;
    background: var(--cr-accent);
    border: 0;
    border-radius: 0;
    cursor: pointer;
    display: flex;
    height: 54px;
    justify-content: center;
    position: relative;
    width: 62px;
    z-index: 1002;
  }

  .header .nav-toggle i,
  .header .nav-toggle i::before,
  .header .nav-toggle i::after {
    background: #fff;
    content: "";
    display: block;
    height: 3px;
    position: absolute;
    transition: transform 180ms ease, opacity 180ms ease;
    width: 30px;
  }

  .header .nav-toggle i::before {
    transform: translateY(-10px);
  }

  .header .nav-toggle i::after {
    transform: translateY(10px);
  }

  body.nav-open .header .nav-toggle i {
    background: transparent;
  }

  body.nav-open .header .nav-toggle i::before {
    transform: rotate(45deg);
  }

  body.nav-open .header .nav-toggle i::after {
    transform: rotate(-45deg);
  }

  #masthead.header aside {
    background: #101820;
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.34);
    color: #fff;
    display: block !important;
    height: 100vh;
    max-width: 430px;
    overflow-y: auto;
    padding: 104px 28px 36px;
    left: auto !important;
    position: fixed !important;
    right: 0 !important;
    top: 0 !important;
    transform: translateX(110%) !important;
    transition: transform 240ms ease !important;
    width: min(88vw, 430px);
    z-index: 1001;
  }

  body.nav-open #masthead.header aside {
    transform: translateX(0) !important;
  }

  .header aside nav {
    display: block;
  }

  .header aside .nav-element {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    display: block;
    margin: 0;
  }

  .header aside .nav-element > a {
    align-items: center;
    color: #fff !important;
    display: flex;
    font-size: 1rem;
    font-weight: 800;
    justify-content: space-between;
    letter-spacing: 0.04em;
    padding: 16px 0;
    text-decoration: none;
    text-transform: uppercase;
    white-space: normal;
  }

  .header aside .sub-menu {
    background: rgba(255, 255, 255, 0.06);
    display: block !important;
    margin: 0 0 12px;
    padding: 8px 16px;
    position: static !important;
    transform: none !important;
    visibility: visible !important;
  }

  .header aside .sub-menu .nav-element {
    border-bottom: 0;
  }

  .header aside .sub-menu .nav-element > a {
    color: rgba(255, 255, 255, 0.88) !important;
    font-size: 0.88rem;
    font-weight: 650;
    letter-spacing: 0;
    padding: 10px 0;
    text-transform: none;
  }

  .header aside .side-nav {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 22px;
  }

  .header aside .side-nav a {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    padding: 13px 14px;
    text-decoration: none;
  }
}

@media (max-width: 560px) {
  .site-logo img,
  .footer__logo img {
    width: 132px;
  }

  .swiper-featured-posts .swiper-prev {
    left: 8px;
  }

  .swiper-featured-posts .swiper-next {
    right: 8px;
  }

  .swiper-featured-posts .swiper-prev,
  .swiper-featured-posts .swiper-next {
    height: 42px;
    width: 42px;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 260px;
    height: 260px;
  }
}
    color: #fff !important;

/* === Restored header utility icons (replaces removed brand icon font) === */
.header i.icon-pin,
.header i.icon-envelope,
.header i.icon-search {
  display: inline-block;
  width: 22px;
  height: 22px;
  font-size: 0 !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 22px 22px;
}
.header i.icon-pin::before,
.header i.icon-envelope::before,
.header i.icon-search::before {
  content: none !important;
}
.header i.icon-pin {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5z'/%3E%3C/svg%3E");
}
.header i.icon-envelope {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M20 4H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2zm0 4l-8 5-8-5V6l8 5 8-5z'/%3E%3C/svg%3E");
}
.header i.icon-search {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M15.5 14h-.79l-.28-.27a6.5 6.5 0 1 0-.7.7l.28.27v.79l5 5 1.49-1.49-5-5zm-6 0a4.5 4.5 0 1 1 0-9 4.5 4.5 0 0 1 0 9z'/%3E%3C/svg%3E");
}

/* === Header layout: visible logo + single-line nav that fits the bar === */
.header .site-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}
.header .site-logo img {
  width: 132px;
  height: auto;
  max-width: 132px;
  display: block;
}
.header .side-nav { gap: 6px !important; }
.header .side-nav > a { width: 42px !important; height: 42px !important; }
.header aside > nav {
  gap: 0 !important;
  justify-content: flex-start !important;
  column-gap: 0 !important;
}
.header nav > .nav-element {
  width: auto !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
}
.header nav > .nav-element > a {
  white-space: nowrap !important;
  font-size: 15px !important;
  padding: 0 11px !important;
  margin: 0 !important;
  letter-spacing: .01em;
}
/* folded section dividers inside dropdowns (Capabilities, Property Types) */
.header nav .sub-menu .nav-group {
  border-top: 1px solid rgba(0, 0, 0, .12);
  margin-top: 6px;
  padding-top: 2px;
}
.header nav .sub-menu .nav-group > a > span {
  color: #b85b2c;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .08em;
}
/* utility icons only collapse on true mobile */
@media (max-width: 1024px) {
  .header .side-nav { display: none !important; }
}

/* === Working hover dropdowns (theme JS that opened them is dead) === */
@media (min-width: 1025px) {
  .header nav > .nav-element.has-sub { position: relative; }
  .header nav > .nav-element.has-sub:hover > .sub-menu,
  .header nav > .nav-element.has-sub:focus-within > .sub-menu { display: block !important; }
  .header nav > .nav-element.has-sub > .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    width: max-content;
    min-width: 248px;
    max-width: 360px;
    background: #fff;
    border-top: 3px solid #b85b2c;
    box-shadow: 0 14px 36px rgba(16, 24, 32, .18);
    padding: 6px 0;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    scrollbar-gutter: stable;
  }
  .header nav .sub-menu .nav-element { margin: 0 !important; border: 0 !important; }
  /* right-align the last two dropdowns so they don't run off-screen */
  .header nav > .nav-element.has-sub:nth-last-child(-n+3) > .sub-menu { left: auto; right: 0; }
  .header nav .sub-menu .nav-element { display: block; width: auto; }
  .header nav .sub-menu .nav-element > a {
    display: block;
    padding: 8px 20px !important;
    white-space: nowrap;
    font-size: 13px !important;
    line-height: 1.25;
    color: #17212b;
  }
  .header nav .sub-menu .nav-element > a:hover { background: #f4f1ec; color: #b85b2c; }
  .header nav .sub-menu .nav-group { padding-top: 6px; }
}
