/* === Red Barn Media Group - Combined Optimized Styles - Smart Air Heating & Cooling === */

/* === CSS Custom Properties === */
:root {
  /* Colors */
  --color-deep-orange-brown: #221f20;
  --color-white: #ffffff;
  --color-orange: #e17438;
  --color-orange-cream: #f0a478;
  --color-blue: #5987c3;
  --color-light-blue: #77a1d8;
  --color-light-gray: #eae8e9;
  --color-gray-666: #666;
  --color-333: #333;

  /* Typography */
  --font-arvo: arvo, serif;
  --font-roboto: roboto, sans-serif;

  /* Layout */
  --hero-height: 650px;
  --hero-padding: 3rem;
  --transition-standard: 0.25s;
  --border-radius-standard: 0.65rem;
  --border-radius-large: 1rem;
  --border-radius-card: 1rem;
  --box-shadow-dropdown: 0 3rem 3rem rgba(0, 0, 0, 0.175);
  --margin-bottom: 0.5rem;
}

/* === Base Styles === */
html,
body {
  width: 100%;
  height: 100%;
}

body {
  color: var(--color-deep-orange-brown);
  font-family: var(--font-roboto);
  font-weight: 400;
  background-color: var(--color-white);
}

/* === Typography === */
/* OPTIMIZED: Grouped all Barlow-based headings to set shared properties once. */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6,
.arvo {
  font-family: var(--font-arvo);
  text-transform: uppercase;
  font-weight: 700;
}
.roboto {
  font-family: var(--font-roboto);
}
p,
ul li,
ol li,
table {
  font-size: 0.85rem;
  font-weight: 400;
}
.fs-8 {
  font-size: 0.65rem;
}

/* === Menu Styles === */
.menu-container {
  background: var(--color-white);
  margin-top: 0 !important;
}

.menu-container.shrink-menu {
  border-bottom: 1px solid var(--color-orange-cream);
}

.navbar-nav {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 5rem;
  transition: height var(--transition-standard);
}

.shrink-menu .navbar-nav {
  height: 4rem;
}

/* Navigation Links */
.menu-container .navbar-light .navbar-nav .nav-link {
  color: var(--color-deep-orange-brown);
  font-family: var(--font-roboto);
  font-weight: 500;
  font-size: 1rem;
}

.menu-container .navbar-light .navbar-nav .nav-link:is(:hover, :active, :focus) {
  color: var(--color-orange);
}

/* Dropdown Styles */
.nav-item .dropdown-item {
  color: var(--color-deep-orange-brown);
  font-family: var(--font-roboto);
  font-weight: 500;
  font-size: 0.9rem;
}
.nav-item .dropdown-item:is(:focus, :hover) {
  background-color: var(--color-white);
  border-radius: 0.25rem;
}
.dropdown-item:is(:active) {
  color: var(--color-orange) !important;
  background-color: #eee !important;
}

.dropdown-toggle::after,
.dropend .dropdown-item::after,
.dropstart .dropdown-toggle::before {
  display: none !important;
}

.navbar-expand-xl .navbar-nav .dropdown-menu {
  background: var(--color-white);
  border: 0;
  box-shadow: var(--box-shadow-dropdown);
  padding: 0.5rem;
}

.navbar-expand-xl .navbar-nav .dropdown-menu.main-dropdown {
  top: 2rem;
  padding: 1rem 0.5rem 0.5rem;
  border-radius: 0 0 var(--border-radius-large) var(--border-radius-large);
  transition: top var(--transition-standard);
}

.navbar-expand-xl .navbar-nav .dropdown-menu.sub-dropdown {
  border-radius: var(--border-radius-large);
}

/* Logo Styles */
.menu-container .container-fluid.sahc-logo-row {
  transition: all var(--transition-standard);
}

.sahc-logo-desktop {
  position: absolute;
  width: 244px;
  height: 65px;
  top: -2rem;
  left: 0;
  right: 0;
  margin: 0 auto;
  transition: all var(--transition-standard);
}

.shrink-menu .sahc-logo-desktop {
  width: 188px;
  height: 50px;
  top: -1.5rem;
}

/* Menu Layout */
.sahc-menu-top-row,
.sahc-menu-padding {
  padding: 0 4rem;
  transition: padding var(--transition-standard);
}

.sahc-menu-top-row .sahc-menu-top-col {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  transition: padding var(--transition-standard);
}

.shrink-menu .sahc-menu-top-row .sahc-menu-top-col {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.sahc-menu-top-row .sahc-menu-top-col p {
  font-family: var(--font-roboto);
  font-weight: 500;
  font-size: 0.85rem;
  margin-bottom: 0;
}

.nav-fill .nav-item .dropdown-item {
  text-align: left !important;
  color: var(--color-blue);
}

/* === Home Hero Styles === */
.sahc-hero-intro {
  margin-top: 125px;
  background: url(../img/sahc-hero-2000-650.webp) center left/cover;
  width: 100%;
  height: var(--hero-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sahc-hero-icon {
  position: absolute;
  right: 25px;
  background: url(../img/sahc-hero-icon.svg) no-repeat;
  width: 756px;
  height: 650px;
  top: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}
.text-content {
  position: relative;
  z-index: 2;
}
.sahc-hero-intro h6 {
  color: var(--color-white);
}
.sahc-hero-intro h1 {
  font-size: 3rem;
  line-height: 1;
  color: var(--color-white);
}
.sahc-hero-intro p {
  color: var(--color-white);
}

/* === Navigation Pills Styles === */
.nav-pills .nav-link.sahc-nav-link-selector {
  color: var(--color-blue);
  background: transparent;
  border: 0px;
  padding: 1rem;
  font-family: var(--font-roboto);
  font-weight: 700;
  font-size: 0.9rem;
}
.nav-pills .nav-link.sahc-nav-link-selector:hover,
.nav-pills .nav-link.active.sahc-nav-link-selector {
  color: var(--color-orange);
  background: transparent;
  border-color: transparent;
}
.nav-pills .nav-link.sahc-nav-link-selector path.st0 {
  fill: var(--color-deep-orange-brown);
  transition: var(--transition-standard);
}
.nav-pills .nav-link.sahc-nav-link-selector path.st1 {
  fill: var(--color-blue);
  transition: var(--transition-standard);
}
.nav-pills .nav-link:is(:hover, .active) svg.sahc-rollover-icon path.st0 {
  fill: var(--color-orange-cream);
}
.nav-pills .nav-link:is(:hover, .active) svg.sahc-rollover-icon path.st1 {
  fill: var(--color-orange);
}
.sahc-rollover-card-border-start {
  border-left: 35px solid var(--color-orange) !important;
}
img.sahc-rollover-img-sizing {
  width: 595px;
  height: 164px;
}
/* === Banner Styles === */
.sahc-banner-van {
  background: url(../img/sahc-banner-van-636.webp);
  width: 636px;
  height: 460px;
  background-repeat: no-repeat;
}
.sahc-banner-financing {
  background: url(../img/sahc-banner-financing-636.webp);
  width: 636px;
  height: 435px;
  background-repeat: no-repeat;
}
.sahc-banner-service-area {
  background: url(../img/sahc-banner-service-area-636.webp);
  width: 636px;
  height: 360px;
  background-repeat: no-repeat;
}

/* === Button Styles === */
.btn {
  padding: 0.5rem 1.5rem;
  font-family: var(--font-roboto);
  font-weight: 700;
  border-radius: 50rem;
  margin-bottom: var(--margin-bottom);
}

.btn.btn-menu {
  padding: 0.75rem 0.85rem;
  font-size: 0.85rem;
}
.btn.btn-lg {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}
.btn.btn-xl {
  padding: 1.25rem 1.75rem;
  font-size: 1.5rem;
}

.btn-orange {
  color: var(--color-white);
  background: var(--color-orange);
  border-color: var(--color-orange);
}
.btn-orange:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-orange-cream);
  border-color: var(--color-orange-cream);
}
.btn-outline-orange {
  color: var(--color-orange);
  background: transparent;
  border-color: var(--color-orange);
}
.btn-outline-orange:is(:hover, :active, :focus) {
  color: var(--color-deep-orange-brown);
  background: var(--color-orange-cream);
  border-color: var(--color-orange-cream);
}

.btn-blue {
  color: var(--color-white);
  background: var(--color-blue);
  border-color: var(--color-blue);
}
.btn-blue:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-light-blue);
  border-color: var(--color-light-blue);
}
.btn-outline-blue {
  color: var(--color-blue);
  background: transparent;
  border-color: var(--color-blue);
}
.btn-outline-blue:is(:hover, :active, :focus) {
  color: var(--color-deep-orange-brown);
  background: var(--color-light-blue);
  border-color: var(--color-light-blue);
}

.btn-333 {
  color: var(--color-white);
  background: var(--color-333);
  border-color: var(--color-333);
}
.btn-333:is(:hover, :active, :focus) {
  color: var(--color-white);
  background: var(--color-gray-666);
  border-color: var(--color-gray-666);
}

.btn-anti-flex {
  align-self: flex-start;
}

/* === Color Utility Classes === */
/* NOTE: !important is generally acceptable for utility classes to ensure they override component styles. */
.text-orange {
  color: var(--color-orange) !important;
}
.bg-orange {
  background-color: var(--color-orange) !important;
}
.border-orange {
  border-color: var(--color-orange) !important;
}

.text-orange-cream {
  color: var(--color-orange-cream) !important;
}
.bg-orange-cream {
  background-color: var(--color-orange-cream) !important;
}
.border-orange-cream {
  border-color: var(--color-orange-cream) !important;
}

.text-deep-orange-brown {
  color: var(--color-deep-orange-brown) !important;
}
.bg-deep-orange-brown {
  background-color: var(--color-deep-orange-brown) !important;
}
.border-deep-orange-brown {
  border-color: var(--color-deep-orange-brown) !important;
}

.text-333 {
  color: var(--color-333) !important;
}
.bg-333 {
  background-color: var(--color-333) !important;
}
.border-333 {
  border-color: var(--color-333) !important;
}

.text-blue {
  color: var(--color-blue) !important;
}
.bg-blue {
  background-color: var(--color-blue) !important;
}
.border-blue {
  border-color: var(--color-blue) !important;
}

.text-light-blue {
  color: var(--color-light-blue) !important;
}
.bg-light-blue {
  background-color: var(--color-light-blue) !important;
}
.border-light-blue {
  border-color: var(--color-light-blue) !important;
}

.text-light-gray {
  color: var(--color-light-gray) !important;
}
.bg-light-gray {
  background-color: var(--color-light-gray) !important;
}
.border-light-gray {
  border-color: var(--color-light-gray) !important;
}

.text-666 {
  color: var(--color-gray-666) !important;
}
.bg-666 {
  background-color: var(--color-gray-666) !important;
}

/* === Component Styles === */
.img-fluid {
  margin-bottom: 2rem;
}

ul.list-group,
ol.list-group,
.card,
.table-responsive,
table.table-bordered {
  background: var(--color-white);
  border: 1px solid var(--color-orange);
  border-radius: var(
    --border-radius-card
  ) !important; /* Keep !important if overriding BS component children */
  margin-bottom: 1.5rem;
  color: var(--color-deep-orange-brown);
}

ul.list-group li.list-group-item,
ol.list-group li.list-group-item,
table.table.table-bordered thead tr th,
table.table.table-bordered tbody tr td {
  background: transparent !important;
  border-color: var(--color-orange);
  color: var(--color-deep-orange-brown);
}

.sahc-card-deep-orange-brown {
  background: var(--color-deep-orange-brown);
  border: var(--color-deep-orange-brown);
  color: var(--color-white);
}

.accordion {
  background: transparent;
  border: none;
  color: var(--color-deep-orange-brown);
}
.accordion-item,
.accordion-header,
.accordion-button {
  background: transparent;
  border: none;
  color: var(--color-white);
}
.accordion-item {
  border-bottom: 0.25px solid var(--color-orange);
}
.accordion-button {
  font-size: 0.9rem;
}
.accordion-body {
  font-size: 0.8rem;
}

/* OPTIMIZED: Grouped accordion radius resets */
.accordion-item:last-of-type,
.accordion-item:last-of-type .accordion-button,
.accordion-item:last-of-type .accordion-collapse {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}

.accordion-button:not(.collapsed) {
  color: var(--color-orange);
  box-shadow: none;
  background: transparent;
}
.accordion-button::after {
  display: none !important;
}

/* === Utility Classes === */
strong,
em,
u {
  font-weight: inherit !important;
  font-style: inherit !important;
  text-decoration: inherit !important;
}
a {
  text-decoration: none;
}
.dashed {
  border-style: dashed !important;
}
.form-control.bg-666 {
  color: var(--color-white);
}
.form-control::placeholder {
  color: #fff;
  opacity: 1; /* Ensures full opacity in Firefox */
}
.sahc-body-img {
  width: 416px;
  height: 300px;
}
.card .card-body ul {
  list-style: none; /* Remove default list style */
}
.card .card-body ul li {
  text-indent: 0.5rem !important;
}
.card .card-body ul li::marker {
  font-family: 'Font Awesome 6 Pro';
  font-weight: 900;
  content: '\f061';
  color: var(--color-orange);
}
.card .card-body ul li.NO-ARROW,
ul.dropdown-menu li {
  text-indent: 0rem !important;
}
.card .card-body ul li.NO-ARROW::marker,
ul.dropdown-menu li::marker {
  font-family: none !important;
  font-weight: none !important;
  content: none !important;
  color: transparent !important;
}

.card .card-body ol li {
  text-indent: 0.25rem !important;
}
.card .card-body ol li::marker {
  color: var(--color-orange);
  font-weight: 700;
  font-family: var(--font-arvo);
}

.card .card-body h2,
.card .card-body h3,
.card .card-body h4,
.card .card-body h5,
.card .card-body h6 {
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: solid 0.235rem var(--color-orange-cream);
}
/* === Sub Page Stlyes === */

/* === Footer Styles === */
footer h6 {
  color: var(--color-white);
  font-weight: 700;
  margin-bottom: 1rem;
}
footer p {
  margin-bottom: 0.25rem;
}
footer p a {
  color: var(--color-white);
  font-family: var(--font-roboto);
  font-weight: 400;
}
footer p a:is(:hover, :active, :focus) {
  color: var(--color-orange);
}

/* === Media Queries === */
/* OPTIMIZED: Each media query now only contains the styles that need to change at that breakpoint. */
@media (max-width: 1600px) {
  .sahc-hero-intro {
    background-image: url(../img/sahc-hero-1400-650.webp);
  }
}

@media (max-width: 1400px) {
  .sahc-menu-top-row,
  .sahc-menu-padding {
    padding: 0 5rem;
  }
  .navbar-light .navbar-nav .nav-link {
    font-size: 0.85rem;
  }
  .sahc-logo-desktop {
    position: absolute;
    width: 188px;
    height: 50px;
    top: -1.5rem;
  }

  .shrink-menu .sahc-logo-desktop {
    width: 150px;
    height: 40px;
    top: -1.25rem;
  }

  img.sahc-rollover-img-sizing {
    width: 505px;
    height: 139px;
  }

  .sahc-body-img {
    width: 356px;
    height: 257px;
  }

  /* === Banner Styles === */
  .sahc-banner-van {
    background: url(../img/sahc-banner-van-546.webp);
    width: 546px;
    height: 395px;
  }
  .sahc-banner-financing {
    background: url(../img/sahc-banner-financing-546.webp);
    width: 546px;
    height: 373px;
  }
  .sahc-banner-service-area {
    background: url(../img/sahc-banner-service-area-636.webp);
    width: 546px;
    height: 309px;
  }
  .sahc-body-img {
    width: 296px;
    height: 213px;
  }
}

@media (max-width: 1200px) {
  .sahc-menu-top-row .sahc-menu-top-col {
    padding-block: 0.5rem;
  }
  .shrink-menu .sahc-menu-top-row .sahc-menu-top-col {
    padding-block: 0.35rem;
  }

  .navbar-nav,
  .shrink-menu .navbar-nav {
    height: fit-content;
  }
  .navbar-nav {
    width: auto;
  }

  .navbar {
    height: 80px;
    transition: height var(--transition-standard);
  }
  .shrink-menu .navbar {
    height: 65px;
  }

  .sahc-logo {
    position: absolute;
    background: url(../img/sahc-logo.svg);
    width: 244px;
    height: 65px;
    left: 0;
    right: 0;
    margin: 0 auto;
    top: 2.85rem;
    transition: all var(--transition-standard);
    z-index: 10;
  }
  .shrink-menu .sahc-logo {
    width: 188px;
    height: 50px;
    top: 2.5rem;
  }

  .nav-fill .nav-item,
  .nav-fill > .nav-link {
    flex: 1 1 auto;
    text-align: left;
  }
  .rotate-at-mobile {
    transform: rotate(90deg);
  }
  .navbar-light .navbar-nav .nav-link {
    font-size: 1.25rem;
  }

  .sahc-hero-intro {
    margin-top: 117px;
    background-image: url(../img/sahc-hero-1200-650.webp);
  }
  .sahc-hero-intro h1 {
    font-size: 3.5rem;
  }
  .sahc-hero-intro h2 {
    font-size: 1.25rem;
  }
  img.sahc-rollover-img-sizing {
    display: none;
  }

  /* === Banner Styles === */
  .sahc-banner-van {
    background: url(../img/sahc-banner-van-456.webp);
    width: 456px;
    height: 330px;
  }
  .sahc-banner-financing {
    background: url(../img/sahc-banner-financing-456.webp);
    width: 456px;
    height: 312px;
  }
  .sahc-banner-service-area {
    background: url(../img/sahc-banner-service-area-456.webp);
    width: 456px;
    height: 258px;
  }
  .sahc-body-img {
    width: 216px;
    height: 156px;
  }
}

@media (max-width: 991px) {
  .sahc-menu-top-row,
  .sahc-menu-padding {
    padding: 0 3.5rem;
  }
  .navbar-light .navbar-nav .nav-link {
    font-size: 1.35rem;
    color: var(--color-deep-orange-brown) !important;
  }

  .sahc-hero-intro {
    background-image: url(../img/sahc-hero-991-650.webp);
    height: fit-content;
  }
  .sahc-hero-icon {
    background: url(../img/sahc-hero-icon.svg) no-repeat;
    width: 508px;
    height: 437px;
  }
  .sahc-hero-intro .container {
    padding-block: var(--hero-padding);
  }
  .sahc-hero-intro h1 {
    font-size: 3rem;
  }
  .sahc-hero-intro h2 {
    font-size: 1rem;
  }
  .sahc-hero-intro-form-field {
    font-size: 0.85rem;
  }
}

@media (max-width: 767px) {
  .sahc-logo {
    width: 188px;
    height: 50px;
    top: 3.25rem;
  }
  .shrink-menu .sahc-logo {
    width: 169px;
    height: 45px;
    top: 2.75rem;
  }

  .sahc-hero-intro {
    background: url(../img/sahc-hero-mobile.svg) center center;
    background-size: cover;
    height: fit-content;
    z-index: 1;
  }
  .sahc-hero-icon {
    display: none;
  }
  .sahc-hero-intro .container {
    padding-block: var(--hero-padding);
  }
  .sahc-hero-intro h1 {
    font-size: 2.5rem;
  }

  .sahc-body-img {
    width: 156px;
    height: 113px;
  }
}

@media (max-width: 576px) {
  .sahc-menu-top-row,
  .sahc-menu-padding {
    padding: 0 1rem;
  }
  .sahc-hero-intro h1 {
    font-size: 2.25rem;
  }
  .sahc-hero-intro h2 {
    font-size: 0.85rem;
  }
}

@media (max-width: 450px) {
  .sahc-hero-intro h1 {
    font-size: 2rem;
  }
}
