/* -------------------------------
   Fontana Bros - Split menu logo sizing + sticky shrink + raised logo (between top & middle bars)
   ------------------------------- */

/* Make sure the logo can sit above other header rows if it overlaps */
.header-center-bg,
.header-center-bg .header-center,
.header-center-bg .header-container-box{
  position: relative;
  z-index: 30;
  overflow: visible; /* prevents clipping in non-sticky state */
}

/* Keep the bottom bar underneath the center bar/logo */
.header-bottom-bg{
  position: relative;
  z-index: 10;
}

/* Ensure the logo LI/anchor participates in stacking and centers nicely */
.dng-megamenu.header-split .primary_structure > li.menu-logo{
  position: relative;
  z-index: 50;
}

/* Raise logo upward in NON-sticky state so it sits between top + middle bars */
header:not(.floating-active) .dng-megamenu.header-split .primary_structure > li.menu-logo{
  margin-top: -50px;   /* tweak: -10 to -28 */
  margin-bottom: -6px; /* optional: tweak or remove */
}

/* Reset logo offset in sticky state */
header.floating-active .dng-megamenu.header-split .primary_structure > li.menu-logo{
  margin-top: 0;
  margin-bottom: 0;
}

.dng-megamenu.header-split .primary_structure > li.menu-logo > a{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;  /* adjust if needed */
}

/* NORMAL (non-sticky) logo size */
.header-split .menu-logo img{
  height: auto;
  width: auto;
  max-height: 150px; /* your big logo */
  transition: max-height 200ms ease, transform 200ms ease;
}

/* STICKY state: shrink logo so it fits in the reduced header height */
header.floating-active .header-split .menu-logo img,
header.floating-nav-sticky.floating-active .header-split .menu-logo img{
  max-height: 64px !important;  /* tweak: 56-72 usually perfect */
}


/* BUSINESS LIST */
.Business13-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: index;
}
.Business13-list li {
    background-color: #eeeeee;
    border: 1px solid #d3d3d3;
    border-radius: 3px;
    padding: 20px 15px;
    color: #333333;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
}
.Business13-list li::before {
    content: "0"counter(index)".";
    counter-increment: index;
    font-size: 24px;
    color: var(--accent-color3);
    margin-right: 10px;
    flex: 0 0 35px;
}
.Business13-list li::before:nth-child(9)~li::after {
    content: counter(index)".";
}
@media only screen and (max-width:767px) {
    .Business13-list {
        grid-template-columns: repeat(1, 1fr);
    }
}


/* ACCORDION */
.accordion07 .panel-heading{
    margin-bottom: 0;
}
.accordion07 .panel-heading button{
    position: relative;
    color: #333333;
    font-size: 1.125rem;
    padding: 27px 60px 27px 30px;
    font-weight: 600;
    display: block;
    overflow: hidden;
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    border-radius: 0;
    transition: all ease 300ms;
}
.accordion07 .accordion-content{
    color: #272727;
    display: none;
    padding: 0 30px 26px 30px;
    margin-top: -10px;
    text-align: left;
}
.accordion07 .dg-accordion{
    counter-reset: none !important;
}
.accordion07 .accordion-item{
    border-bottom: none;
    transition: all ease 300ms;
    position: relative;
    margin-bottom: 20px;
    border-radius: 9px;
    background-color: #ffffff;
    counter-increment: none !important;
    border: 2px solid transparent;
}
.accordion07 .accordion-content p{
    margin: 0;
}
.accordion07 .panel-heading .arrow{
    position: absolute;
    top: 0;
    right: 14px;
    width: 34px;
    height: 100%;
}
.accordion07 .panel-heading .arrow::after{
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    z-index: 1;
    transition: all ease 300ms;
    width: 8px;
    height: 8px;
    border-bottom: 2px solid #000000;
    border-right: 2px solid #000000;
    margin: -3px 0 0 -3px;
    transform: rotate(-135deg);
}
.accordion07 .accordion-item.opened .panel-heading .arrow::after{
    transform: rotate(45deg);
    margin-top: -6px;
}
.accordion07 .accordion-item button::before{
    content: none !important;
    display: none !important;
}
.accordion07 .accordion-item::before{
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    box-shadow: 0 0 18px rgba(15, 23, 42, 0.18);
    opacity: 0;
    pointer-events: none;
    border-radius: 9px;
}
.accordion07 .accordion-item.opened{
    border-color: transparent !important;
}
.accordion07 .accordion-item.opened::before{
    opacity: 1;
    box-shadow: 0 0 22px rgba(15, 23, 42, 0.22);
}
.accordion07 .accordion-item.opened .arrow::before{
    opacity: 0;
}
.accordion07 .accordion-item:last-child{
    margin-bottom: 0;
}


/* CTA HEADER */
.hvac-free-estimate-btn{
  display:inline-flex;
  align-items:center;
  gap:12px;
  padding:12px 16px;
  border-radius:14px;
  border:1px solid rgba(0,0,0,.14);
  background:#ffffff;
  color:#0f172a;
  text-decoration:none;
  font-weight:900;
  line-height:1.05;
  position:relative;
  overflow:hidden;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

/* subtle "sheen" sweep */
.hvac-free-estimate-btn::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width:60%;
  height:180%;
  background: linear-gradient(115deg, transparent 0%, rgba(0,0,0,.06) 40%, rgba(0,0,0,.03) 60%, transparent 100%);
  transform: translateX(-40%) skewX(-12deg);
  opacity:0;
  transition: opacity 180ms ease;
  pointer-events:none;
}

.hvac-free-estimate-btn:hover{
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0,0,0,.14);
  border-color: rgba(0,0,0,.22);
}

.hvac-free-estimate-btn:hover::before{
  opacity:1;
  animation: hvacSheen 650ms ease forwards;
}

@keyframes hvacSheen{
  from{ transform: translateX(-40%) skewX(-12deg); }
  to{ transform: translateX(220%) skewX(-12deg); }
}

/* Icon swap */
.hvac-free-estimate-ico{
  position:relative;
  width:28px;
  height:28px;
  flex:0 0 28px;
}

.hvac-free-estimate-ico img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:contain;
  transition: opacity 180ms ease, transform 180ms ease;
}

.hvac-free-estimate-ico .ico-hover{ opacity:0; transform: scale(.92) rotate(-6deg); }

.hvac-free-estimate-btn:hover .hvac-free-estimate-ico .ico-hover{
  opacity:1;
  transform: scale(1) rotate(0deg);
}

.hvac-free-estimate-btn:hover .hvac-free-estimate-ico .ico-normal{
  opacity:0;
  transform: scale(1.06) rotate(6deg);
}

/* Text layout (2 lines) */
.hvac-free-estimate-text{
  display:flex;
  flex-direction:column;
  gap:2px;
  letter-spacing:.2px;
}

.hvac-free-estimate-text .line1{
  font-size:12px;
  opacity:.85;
  font-weight:800;
  text-transform:uppercase;
}

.hvac-free-estimate-text .line2{
  font-size:16px;
  font-weight:950;
}

/* Optional: animate text slightly on hover */
.hvac-free-estimate-btn:hover .hvac-free-estimate-text{
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

/* Keyboard focus */
.hvac-free-estimate-btn:focus-visible{
  outline:3px solid rgba(0,0,0,.25);
  outline-offset:3px;
}


.icon-box28 {
    background: var(--accent-color);
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, .2);
    padding: 60px 30px;
    border-radius: 5px;
    margin-bottom: 35px;
}
.icon-box28 .custom-module {
    color: #FFF;
    font-size: 47px;
}
.icon-box28 .title {
    font-size: 1.5rem;
    color: #ffffff;
    margin: 0;
}
.icon-box28 .custom-module .number {
    color: currentColor;
}
.icon-box28 .icon {
    margin-bottom: 10px;
}
@media only screen and (min-width: 1200px) {
    .icon-box28 {
        width: 390px;
    }
    .icon-box28.box-02 {
        transform: translateX(-40px) translateY(-110px);
    }
    .icon-box28.box-03 {
        transform: translateX(90px);
    }
}


