/* Frontier Metal Roofing site overrides */
:root {
  --frontier-orange: #ff840c;
  --frontier-charcoal: #111111;
  --frontier-dark: #1b1b1b;
  --frontier-metal: #6f7478;
  --frontier-light: #f7f6f2;
  --frontier-offwhite: #fffaf3;
}

body {
  color: #303030;
}

.header-logo img {
  max-width: 300px;
  height: auto;
}

.mobile-nav .logo img,
.preloader img,
.footer-style-one img {
  max-width: 210px;
  height: auto;
}

.desktop-nav .nav-bar > ul > li > a,
.mobile-nav > ul > li > a {
  text-transform: none;
}

.header-style-one .desktop-nav .d-flex-all {
  gap: 34px;
}

.header-style-one .desktop-nav .header-logo {
  flex: 0 0 300px;
  width: 300px;
}

.header-style-one .desktop-nav .nav-bar {
  flex: 1;
  justify-content: space-between;
}

.desktop-nav .nav-bar > ul {
  flex: 1;
  justify-content: center;
}

.desktop-nav .nav-bar .extras {
  flex: 0 0 auto;
  margin-left: 28px;
}

.header-style-one .theme-btn,
.frontier-cta .theme-btn,
.frontier-form button.theme-btn {
  white-space: nowrap;
}

.theme-btn {
  background-color: var(--frontier-orange);
  border-color: var(--frontier-orange);
}

.theme-btn:after,
.desktop-nav .nav-bar .extras .theme-btn:after {
  border-top-color: var(--frontier-orange);
}

.theme-btn:hover {
  border-color: var(--frontier-orange);
}

.featured-slider-one .owl-nav button {
  border-color: var(--frontier-orange);
}

.featured-slider-one .owl-nav button.owl-prev:before,
.featured-slider-one .owl-nav button.owl-next:before,
.featured-slider-one .owl-nav button.owl-prev:hover:before,
.featured-slider-one .owl-nav button.owl-next:hover:before {
  border-color: var(--frontier-orange);
}

.frontier-hero {
  position: relative;
  overflow: hidden;
  background: #111;
  color: #fff;
}

.frontier-hero .hero-slide {
  min-height: 820px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  position: relative;
}

.frontier-hero .hero-slide:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(17,17,17,.86), rgba(17,17,17,.58), rgba(17,17,17,.25));
}

.frontier-hero.featured-slider-one .owl-item.active:before,
.frontier-hero.featured-slider-one .owl-item.active:after {
  display: none;
}

.frontier-hero .container {
  position: relative;
  z-index: 1;
}

.frontier-eyebrow {
  color: var(--frontier-orange);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.frontier-hero h1,
.frontier-hero h2,
.frontier-page-hero h1 {
  font-size: clamp(44px, 6vw, 82px);
  line-height: 1.03;
  margin-bottom: 20px;
  color: #fff;
}

.frontier-hero p,
.frontier-page-hero p {
  max-width: 780px;
  font-size: 20px;
  line-height: 1.7;
  color: #fff;
}

.frontier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.frontier-hero .frontier-actions,
.frontier-page-hero .frontier-actions {
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.frontier-phone-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 70px 18px 50px;
  border: 2px solid var(--frontier-orange);
  border-right: 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  position: relative;
  min-height: 65px;
  white-space: nowrap;
}

.frontier-phone-link:before {
  content: "\f095";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  width: 40px;
  height: 100%;
  position: absolute;
  top: 0;
  right: 0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.frontier-phone-link:after {
  content: "";
  width: 34px;
  height: calc(100% + 4px);
  position: absolute;
  right: -18px;
  top: -2px;
  border: 2px solid var(--frontier-orange);
  border-left: 0;
  background: transparent;
  transform: skew(-23deg, 0deg);
}

.frontier-phone-link:hover {
  color: var(--frontier-orange);
  border-color: var(--frontier-orange);
}

.frontier-phone-link:hover:before {
  color: var(--frontier-orange);
}

.mobile-nav .frontier-phone-link.nav-call-link {
  margin-top: 24px;
  color: #fff;
}

.mobile-nav .frontier-phone-link.nav-call-link:before {
  color: #fff;
}

.mobile-nav .menu-item-has-children.active > ul.sub-menu {
  display: block;
}

.mobile-nav .frontier-phone-link.nav-call-link:hover {
  color: var(--frontier-orange);
}

.mobile-nav .frontier-phone-link.nav-call-link:hover:before {
  color: var(--frontier-orange);
}

.mobile-nav {
  z-index: 10000;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav.desktop-menu {
  z-index: 10001;
  background: var(--frontier-charcoal);
  color: #fff;
  box-shadow: 18px 0 45px rgba(0, 0, 0, .35);
}

.mobile-nav.desktop-menu .desktop-menu-logo {
  display: inline-block;
  margin-bottom: 34px;
}

.mobile-nav.desktop-menu .desktop-menu-logo img {
  max-width: 230px;
  width: 100%;
  height: auto;
}

.mobile-nav.desktop-menu h2,
.mobile-nav.desktop-menu h3,
.mobile-nav.desktop-menu p,
.mobile-nav.desktop-menu li,
.mobile-nav.desktop-menu a {
  color: #fff;
}

.mobile-nav.desktop-menu h2 {
  line-height: 1.2;
}

.mobile-nav.desktop-menu p {
  color: #d7d7d7;
  line-height: 1.7;
}

.mobile-nav.desktop-menu .desktop-menu-section {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .16);
}

.mobile-nav.desktop-menu .desktop-menu-section ul {
  margin: 0;
  padding: 0;
}

.mobile-nav.desktop-menu .desktop-menu-section li {
  margin-bottom: 9px;
}

.mobile-nav.desktop-menu .desktop-menu-section a:hover,
.mobile-nav.desktop-menu .desktop-menu-social:hover {
  color: var(--frontier-orange);
}

.mobile-nav.desktop-menu .theme-btn {
  margin-top: 30px;
}

.mobile-nav.desktop-menu .desktop-menu-social {
  display: inline-block;
  margin-top: 24px;
  font-weight: 700;
}

.mobile-nav .desktop-menu-close {
  display: block;
  position: absolute;
  top: 18px;
  right: 22px;
  width: 35px;
  height: 35px;
  z-index: 2;
}

.mobile-nav .desktop-menu-close:before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background-image: url('../images/remove.svg');
  background-repeat: no-repeat;
  background-size: contain;
}

@media (max-width: 1200px) {
  .frontier-header-social {
    display: none;
  }

  .header-style-one .desktop-nav .d-flex-all {
    align-items: center;
  }

  .header-style-one .desktop-nav .nav-bar {
    justify-content: flex-end;
  }

  .desktop-nav .nav-bar .extras {
    margin-left: auto;
  }

  .desktop-nav .nav-bar .extras .menu-start svg {
    margin-left: 0;
    margin-right: 0;
  }

  .header-logo img {
    max-width: 250px;
  }

  .header-style-one .desktop-nav .header-logo {
    flex: 0 0 250px;
    width: 250px;
  }
}

.frontier-page-hero {
  background: linear-gradient(90deg, rgba(17,17,17,.88), rgba(17,17,17,.62)), url('../../img/03.jpg');
  background-size: cover;
  background-position: center;
  padding: 185px 0 110px;
  color: #fff;
}

.frontier-page-hero[data-bg="homebase"] { background-image: linear-gradient(90deg, rgba(17,17,17,.88), rgba(17,17,17,.62)), url('../../img/04.jpg'); }
.frontier-page-hero[data-bg="services"] { background-image: linear-gradient(90deg, rgba(17,17,17,.88), rgba(17,17,17,.62)), url('../../img/08.jpg'); }
.frontier-page-hero[data-bg="service-detail"] { background-image: linear-gradient(90deg, rgba(17,17,17,.88), rgba(17,17,17,.62)), url('../../img/10.jpg'); }
.frontier-page-hero[data-bg="location"] { background-image: linear-gradient(90deg, rgba(17,17,17,.88), rgba(17,17,17,.62)), url('../../img/11.jpg'); }

.frontier-section {
  padding: 100px 0;
}

.frontier-section.light {
  background: var(--frontier-light);
}

.frontier-kicker {
  color: var(--frontier-orange);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: 10px;
}

.frontier-section h2 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  margin-bottom: 20px;
}

.frontier-lead {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

.frontier-card {
  height: auto;
  background: #fff;
  border: 1px solid #ece7df;
  padding: 34px;
  transition: .25s ease;
  position: relative;
  overflow: hidden;
}

.row.g-4 > [class*="col"] > .frontier-card {
  height: 100%;
}

.frontier-card:before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--frontier-orange);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: .25s ease;
}

.frontier-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 45px rgba(17,17,17,.08);
}

.frontier-card:hover:before {
  transform: scaleY(1);
}

.frontier-card h3 {
  font-size: 25px;
  line-height: 1.25;
  margin-bottom: 12px;
}

.frontier-card p,
.frontier-card li,
.frontier-rich-text li {
  color: #555;
  line-height: 1.75;
}

.frontier-card a:not(.theme-btn),
.frontier-inline-link {
  font-weight: 800;
  color: var(--frontier-charcoal);
}

.frontier-card a:not(.theme-btn):hover,
.frontier-inline-link:hover {
  color: var(--frontier-orange);
}

.frontier-image {
  position: relative;
  overflow: hidden;
  min-height: 380px;
}

.frontier-image img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.frontier-gallery-item {
  display: block;
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: #111;
}

.frontier-gallery-item img {
  width: 100%;
  height: 310px;
  object-fit: cover;
  transition: transform .35s ease, opacity .35s ease;
}

.frontier-gallery-item span {
  position: absolute;
  left: 22px;
  bottom: 22px;
  z-index: 1;
  background: var(--frontier-orange);
  color: #111;
  font-weight: 800;
  padding: 10px 16px;
  transform: translateY(12px);
  opacity: 0;
  transition: transform .35s ease, opacity .35s ease;
}

.frontier-gallery-item:hover img {
  transform: scale(1.05);
  opacity: .72;
}

.frontier-gallery-item:hover span {
  transform: translateY(0);
  opacity: 1;
}

.frontier-list {
  list-style: none;
  padding: 0;
  margin: 22px 0 0;
}

.frontier-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
}

.frontier-list li:before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 12px;
  background: var(--frontier-orange);
}

.frontier-band {
  background: var(--frontier-charcoal);
  color: #fff;
}

.frontier-band h1,
.frontier-band h2,
.frontier-band h3,
.frontier-band h4 {
  color: #fff;
}

.frontier-band p,
.frontier-band li {
  color: #d7d7d7;
}

.frontier-stat {
  border-left: 4px solid var(--frontier-orange);
  padding-left: 22px;
}

.frontier-stat strong {
  display: block;
  color: #fff;
  font-size: 34px;
}

.frontier-cta {
  background: linear-gradient(90deg, rgba(17,17,17,.9), rgba(17,17,17,.72)), url('../../img/13.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  padding: 90px 0;
}

.frontier-cta h1,
.frontier-cta h2,
.frontier-cta h3,
.frontier-cta h4 {
  color: #fff;
}

.frontier-cta p {
  color: #e6e6e6;
  font-size: 18px;
}

.frontier-form .form-control,
.frontier-form .form-select,
.frontier-form textarea {
  border: 1px solid #ded8cf;
  min-height: 58px;
  border-radius: 0;
  padding: 15px 18px;
}

.frontier-form textarea {
  min-height: 160px;
}

.frontier-contact-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #20201e 0%, #2c2c29 100%);
  color: #fff;
  padding: 42px 38px;
  height: 100%;
  border-bottom: 4px solid var(--frontier-orange);
}

/* Slanted orange corner echoing the theme's button shape */
.frontier-contact-panel:after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  border-top: 58px solid var(--frontier-orange);
  border-left: 58px solid transparent;
}

.frontier-contact-panel h3 {
  color: #fff;
  margin-bottom: 14px;
}

.frontier-contact-panel p,
.frontier-contact-panel li {
  color: rgba(255, 255, 255, .82);
}

.frontier-contact-panel a {
  color: #fff;
}

.frontier-contact-panel a:hover {
  color: var(--frontier-orange);
}

.frontier-contact-items {
  list-style: none;
  margin: 30px 0 26px;
  padding: 0;
  display: grid;
  gap: 20px;
}

.frontier-contact-items li {
  display: flex;
  align-items: center;
  gap: 16px;
}

.frontier-contact-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 132, 12, .12);
  border: 1px solid rgba(255, 132, 12, .4);
  color: var(--frontier-orange);
  font-size: 19px;
}

.frontier-contact-items small {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
  margin-bottom: 3px;
}

.frontier-contact-items a,
.frontier-contact-items div > span {
  display: block;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  color: #fff;
}

.frontier-contact-items li:first-child a {
  font-size: 22px;
  color: var(--frontier-orange);
}

.frontier-contact-items li:first-child a:hover {
  color: #fff;
}

.frontier-contact-panel .frontier-social-icon {
  margin-top: 0;
}

.footer-style-one .footer-p-2,
.footer-style-one .footer-p-3 {
  background: #111;
}

.footer-style-one .footer-p-2 .footer-col p,
.footer-style-one .footer-p-2 .footer-col ul li,
.footer-style-one .footer-p-3 .footer-col p {
  color: #d7d7d7;
}

.footer-style-one .footer-p-2 .footer-col figure {
  margin-bottom: 24px;
}

.footer-style-one .footer-p-2 .footer-col figure + p {
  font-size: 15px;
  line-height: 1.55;
}

.frontier-footer-social {
  margin-top: 28px;
  padding: 22px 20px;
  border: 1px solid rgba(255, 132, 12, .35);
  border-left: 4px solid var(--frontier-orange);
  background: rgba(255, 132, 12, .08);
}

.frontier-footer-social-text {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.65;
  color: #e6e6e6;
}

.frontier-footer-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  background: var(--frontier-orange);
  color: #111 !important;
  font-weight: 700;
  font-size: 15px;
  transition: background .2s ease, color .2s ease;
}

.frontier-footer-social-btn:hover {
  background: #fff;
  color: var(--frontier-orange) !important;
}

.frontier-header-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  color: #fff !important;
  border: 2px solid var(--frontier-orange);
  margin-right: 12px;
  flex-shrink: 0;
}

.frontier-header-social:hover {
  background: var(--frontier-orange);
  color: #111 !important;
}

.frontier-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-top: 10px;
  background: var(--frontier-orange);
  color: #111 !important;
}

.frontier-social-icon:hover {
  background: #fff;
  color: var(--frontier-orange) !important;
}

.footer-style-one a,
.footer-style-one .footer-p-2 .footer-col ul li a,
.footer-style-one .footer-p-2 .footer-col p a,
.footer-style-one .footer-p-3 .footer-col a {
  color: #fff;
}

.footer-style-one a:hover,
.footer-style-one .footer-p-2 .footer-col ul li a:hover,
.footer-style-one .footer-p-2 .footer-col p a:hover,
.footer-style-one .footer-p-3 .footer-col a:hover {
  color: var(--frontier-orange);
}

/* FAQ accordion (theme .acc2 on light sections) */
.frontier-faq .accordion-item {
  border: 0;
  background: transparent;
}

.frontier-faq .accordion-item button {
  background: #fff;
}

.frontier-faq .accordion-button:not(.collapsed) {
  color: #111;
  box-shadow: none;
}

.frontier-faq .accordion-body {
  background: #fff;
  line-height: 1.7;
}

.frontier-faq .accordion-body p {
  margin: 0;
}

/* Nearby communities link pills */
.frontier-nearby {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.frontier-nearby a {
  display: inline-block;
  padding: 10px 22px;
  border: 1px solid #ddd;
  color: #111;
  font-weight: 600;
}

.frontier-nearby a:hover {
  border-color: var(--frontier-orange);
  color: var(--frontier-orange);
}

@media (max-width: 991px) {
  .frontier-hero .hero-slide { min-height: 720px; }
  .frontier-section { padding: 72px 0; }
  .frontier-page-hero { padding: 100px 0 85px; }
}

@media (max-width: 767px) {
  /* Full-height hero on phones; svh accounts for mobile browser chrome */
  .frontier-hero .hero-slide {
    min-height: 90vh;
    min-height: 90svh;
    padding: 120px 0 70px;
  }

  .frontier-hero .hero-slide .container {
    transform: translateY(-40px);
  }

  .frontier-hero h1,
  .frontier-hero h2 {
    font-size: clamp(34px, 9vw, 44px);
    line-height: 1.1;
  }

  .frontier-hero p {
    font-size: 17px;
    line-height: 1.65;
  }
}

@media (max-width: 575px) {
  .frontier-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .frontier-phone-link,
  .frontier-actions .theme-btn {
    width: auto;
    max-width: 330px;
    text-align: center;
  }
}
