/*
  40th Anniversary Site-Wide Styling
  Gold & Navy celebration branding throughout the site
  Loaded when anniversary_banner_enabled is true
*/

:root {
  /* Anniversary Color Palette */
  --anniv-gold: #d4af37;
  --anniv-gold-light: #f6e27f;
  --anniv-gold-dark: #b8962f;
  --anniv-navy: #011635;
  --anniv-navy-light: #042452;
  --anniv-gradient-gold: linear-gradient(135deg, #d4af37 0%, #f6e27f 50%, #d4af37 100%);
  --anniv-gradient-navy: linear-gradient(135deg, #011635 0%, #042452 100%);
  --anniv-shimmer: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.4) 50%, transparent 100%);
}

/* ===== HEADER ANNIVERSARY ENHANCEMENTS ===== */

/* Anniversary notification bar with shimmer effect */
.header-notification-bar--anniversary {
  background: var(--anniv-gradient-gold);
  position: relative;
  overflow: hidden;
  color: var(--anniv-navy) !important;
}

/* Fix VIEW ALL PROMOTIONS link visibility - use WHITE text for high contrast */
.header-notification-bar--anniversary a,
.header-notification-bar--anniversary a:hover {
  color: #ffffff !important;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.header-notification-bar--anniversary a i {
  color: #ffffff !important;
}

.header-notification-bar--anniversary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--anniv-shimmer);
  animation: anniv-shimmer 3s infinite;
}

@keyframes anniv-shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

/* Anniversary logo styling - sized properly for all screens */
.logo .anniversary-logo {
  max-height: 45px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

@media (min-width: 768px) {
  .logo .anniversary-logo {
    max-height: 55px;
  }
}

@media (min-width: 1200px) {
  .logo .anniversary-logo {
    max-height: 65px;
  }
}

/* ===== FIX HEADER LAYOUT ===== */

/* Make the header layout properly */
.page-header .header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 20px;
}

/* Constrain logo width to prevent overflow */
.page-header .logo {
  flex-shrink: 0;
  max-width: 180px;
}

@media (min-width: 768px) {
  .page-header .logo {
    max-width: 220px;
  }
}

@media (min-width: 1200px) {
  .page-header .logo {
    max-width: 260px;
  }
}

/* Header right section - flex properly */
.page-header .header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: nowrap;
}

@media (min-width: 1200px) {
  .page-header .header-right {
    gap: 25px;
  }
}

/* ===== BUTTON ANNIVERSARY STYLING ===== */

.btn-primary {
  background: var(--anniv-gradient-gold);
  color: var(--anniv-navy);
  border: none;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: var(--anniv-shimmer);
  animation: anniv-shimmer 2.5s infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #c9a430 0%, #ebd86f 50%, #c9a430 100%);
  color: var(--anniv-navy);
}

/* ===== STICKY MOBILE CTA - ANNIVERSARY ===== */

.hales-sticky-mobile-cta {
  background: var(--anniv-gradient-navy) !important;
  border-top: 3px solid var(--anniv-gold);
}

.hales-sticky-cta-call {
  background: #fff !important;
  color: var(--anniv-navy) !important;
}

.hales-sticky-cta-book {
  background: var(--anniv-gradient-gold) !important;
  color: var(--anniv-navy) !important;
}

.hales-sticky-cta-book:hover {
  background: linear-gradient(135deg, #c9a430 0%, #ebd86f 50%, #c9a430 100%) !important;
}

/* ===== EXIT POPUP - ANNIVERSARY (API-driven multi-category) ===== */

.rahs-exit-popup {
  border: 3px solid var(--anniv-gold) !important;
  border-radius: 20px !important;
}

.rahs-exit-header h2 {
  color: var(--anniv-navy) !important;
}

.rahs-exit-header p {
  color: var(--anniv-gold-dark) !important;
}

.rahs-cat-btn:hover {
  border-color: var(--anniv-gold) !important;
}

.rahs-offer-badge {
  background: var(--anniv-gradient-gold) !important;
  color: var(--anniv-navy) !important;
}

.rahs-offer-code,
.hales-exit-popup-schedule {
  background: var(--anniv-navy) !important;
  color: #fff !important;
}

.hales-exit-popup-schedule:hover {
  background: var(--anniv-navy-light) !important;
}

.hales-exit-popup-schedule-note {
  color: var(--anniv-gold-dark) !important;
}

.hales-exit-popup-call {
  background: transparent !important;
  color: var(--anniv-navy) !important;
  border-color: var(--anniv-gold) !important;
}

.hales-exit-popup-call:hover {
  background: rgba(212, 175, 55, 0.1) !important;
  border-color: var(--anniv-gold-dark) !important;
}

.rahs-action-btn.primary {
  background: var(--anniv-gradient-gold) !important;
  color: var(--anniv-navy) !important;
  border-color: var(--anniv-gold) !important;
}

.rahs-action-btn:hover {
  border-color: var(--anniv-gold) !important;
}

.rahs-send-submit {
  background: var(--anniv-gradient-gold) !important;
  color: var(--anniv-navy) !important;
}

/* ===== FLOATING REVIEW BADGE - ANNIVERSARY ===== */

.hales-review-badge-inner {
  border: 2px solid var(--anniv-gold);
  background: linear-gradient(135deg, #fff 0%, #fffdf5 100%);
}

.hales-review-badge-rating {
  color: var(--anniv-navy);
}

/* ===== INTERNAL LINKS - ANNIVERSARY ===== */

.hales-internal-links {
  background: linear-gradient(135deg, #fffdf5 0%, #f8f4e3 100%);
  border-left-color: var(--anniv-gold);
}

.hales-internal-links h3 {
  color: var(--anniv-navy);
}

.hales-internal-links a:hover {
  background: var(--anniv-navy);
  border-color: var(--anniv-navy);
}

/* ===== 40TH ANNIVERSARY BADGE - FLOATING ===== */

.anniversary-floating-badge {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%) translateX(calc(100% - 24px)) rotate(-90deg);
  transform-origin: center center;
  z-index: 9990;
  background: var(--anniv-gradient-gold);
  color: var(--anniv-navy);
  padding: 12px 24px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 8px 8px 0 0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  display: none;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.anniversary-floating-badge:hover {
  transform: translateY(-50%) translateX(calc(100% - 30px)) rotate(-90deg);
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

@media (min-width: 1200px) {
  .anniversary-floating-badge {
    display: block;
  }
}

/* ===== FLOATING GOOGLE REVIEW BADGE ===== */

.hales-review-badge {
  position: fixed;
  bottom: 80px;
  right: 15px;
  z-index: 9989;
  max-width: calc(100vw - 30px);
}

.hales-review-badge-inner {
  background: #fff;
  border: 2px solid var(--anniv-gold);
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

@media (max-width: 1399px) {
  .hales-review-badge {
    bottom: 80px;
    right: 15px;
  }
}

/* ===== SECTION HEADERS - ANNIVERSARY ===== */

.section-title,
h2.section-heading {
  position: relative;
}

/* ===== FOOTER - ANNIVERSARY ACCENTS ===== */

.site-footer {
  border-top: 4px solid var(--anniv-gold);
}

/* ===== MASTHEAD - ANNIVERSARY ===== */

.masthead--innerpage {
  position: relative;
}

.masthead--innerpage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--anniv-gradient-gold);
  z-index: 10;
}

/* ===== CARDS & BLOCKS - GOLD ACCENTS ===== */

.service-card:hover,
.offer-card:hover {
  border-color: var(--anniv-gold);
  box-shadow: 0 8px 30px rgba(212, 175, 55, 0.2);
}

/* ===== PHONE NUMBER - ANNIVERSARY ===== */

.header-phone a {
  color: var(--anniv-gold-dark);
  font-weight: 700;
}

.header-phone a:hover {
  color: var(--anniv-gold);
}

/* ===== NAVBAR - ANNIVERSARY ACCENT ===== */

.navbar {
  border-bottom: 2px solid var(--anniv-gold);
  background: #EDF7FC;
}

/* Ensure navigation text is always visible - never white on light */
.nav-primary ul li a,
.nav-primary ul li a::after {
  color: #333333 !important;
}

.nav-primary ul li:hover > a,
.nav-primary ul li:hover > a::after {
  color: var(--anniv-navy) !important;
}

.nav-primary ul li .sub-menu li a {
  color: #333333 !important;
}

.nav-primary ul li .sub-menu li:hover a {
  color: var(--anniv-navy) !important;
  background-color: #f8f4e3;
}

/* Navigation dropdown gold accent on hover */
.nav-primary ul li .sub-menu {
  border-top: 3px solid var(--anniv-gold);
}

/* ===== PRELOADER - ANNIVERSARY ===== */

.logo-svg__preloader {
  background: var(--anniv-navy);
}

/* ===== FORM BUTTONS - ANNIVERSARY ===== */

form .btn-primary,
.wpcf7 .btn-primary,
input[type="submit"] {
  background: var(--anniv-gradient-gold);
  color: var(--anniv-navy);
  border: none;
}

form .btn-primary:hover,
.wpcf7 .btn-primary:hover,
input[type="submit"]:hover {
  background: linear-gradient(135deg, #c9a430 0%, #ebd86f 50%, #c9a430 100%);
}

/* ===== ANNIVERSARY 40 WATERMARK ===== */

body::after {
  content: '40';
  position: fixed;
  bottom: 20px;
  left: 20px;
  font-size: 120px;
  font-weight: 900;
  color: rgba(212, 175, 55, 0.05);
  pointer-events: none;
  z-index: 0;
  line-height: 1;
  display: none;
  /* Reset properties inherited from main CSS body:after overlay */
  top: auto;
  width: auto;
  height: auto;
  background: none;
}

@media (min-width: 1400px) {
  body::after {
    display: block;
  }
}

/* ===== RESPONSIVE LAYOUT FIXES ===== */

/* Mobile-first responsive adjustments */
@media (max-width: 767px) {
  /* Tighten header spacing on mobile */
  .page-header .header-wrap {
    padding: 12px 0;
    gap: 10px;
  }

  .page-header .logo {
    max-width: 150px;
  }

  .logo .anniversary-logo {
    max-height: 40px;
  }

  .page-header .header-right {
    gap: 8px;
  }

  /* Hide text portion of phone on small screens */
  .header-phone .hidden-xs-down {
    font-size: 14px;
  }

  /* Ensure buttons scale properly */
  .header-btn .btn {
    padding: 10px 14px;
    font-size: 13px;
  }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 1199px) {
  .page-header .header-wrap {
    padding: 15px 0;
  }

  .page-header .header-right {
    gap: 15px;
  }

  .header-phone {
    font-size: 16px;
  }
}

/* ===== CTA BUTTON ENHANCEMENTS ===== */

/* Ensure all CTAs are prominent and visible */
.btn-primary,
.btn-secondary,
.header-btn .btn {
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-primary:hover,
.header-btn .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.3);
}

/* Header Book Now button - gold anniversary style */
.header-btn .btn-primary {
  background: var(--anniv-gradient-gold);
  color: var(--anniv-navy);
  font-weight: 700;
  border: none;
}

.header-btn .btn-primary:hover {
  background: linear-gradient(135deg, #c9a430 0%, #ebd86f 50%, #c9a430 100%);
}

/* Secondary buttons - navy with gold accent */
.btn-secondary {
  background: var(--anniv-navy);
  color: #fff;
  border: 2px solid var(--anniv-navy);
}

.btn-secondary:hover {
  background: var(--anniv-navy-light);
  border-color: var(--anniv-gold);
}

/* Tertiary buttons (phone CTA) */
.btn-tertiary {
  background: transparent;
  color: var(--anniv-gold-dark);
  border: 2px solid var(--anniv-gold);
}

.btn-tertiary:hover {
  background: var(--anniv-gradient-gold);
  color: var(--anniv-navy);
}

/* ===== MASTHEAD CTA IMPROVEMENTS ===== */

.masthead .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.masthead .btn-group .btn {
  min-width: 140px;
  text-align: center;
  justify-content: center;
}

@media (max-width: 575px) {
  .masthead .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .masthead .btn-group .btn {
    width: 100%;
  }
}

/* ===== HEADER PHONE NUMBER VISIBILITY ===== */

.header-phone {
  color: #333333;
}

.header-phone i {
  color: var(--anniv-gold-dark);
}

/* ===== FIX TEXT VISIBILITY THROUGHOUT ===== */

/* Ensure all text on light backgrounds is dark */
.navbar,
.page-header,
.header-wrap {
  color: #333333;
}

/* Ensure links in header area are visible */
.page-header a:not(.btn) {
  color: #333333;
}

.page-header a:not(.btn):hover {
  color: var(--anniv-gold-dark);
}

/* ===== MOBILE STICKY CTA IMPROVEMENTS ===== */

.hales-sticky-mobile-cta {
  padding: 12px 15px;
  gap: 10px;
}

.hales-sticky-cta-call,
.hales-sticky-cta-book {
  flex: 1;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* ===== GLOBAL CTA ACCESSIBILITY ===== */

/* Focus states for accessibility */
.btn:focus,
.btn-primary:focus,
.btn-secondary:focus,
a:focus {
  outline: 3px solid var(--anniv-gold);
  outline-offset: 2px;
}

/* ===== HERO SECTION IMPROVEMENTS ===== */

.masthead--homepage .masthead__text,
.masthead--anniversary .masthead__text {
  max-width: 100%;
}

/* "40 Years" heading - GOLD with gradient */
.masthead--anniversary .masthead__years-number,
.masthead--anniversary .masthead__text span {
  background: var(--anniv-gradient-gold) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: none !important;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.4));
}

/* "St. Petersburg & Tampa Bay's HVAC Heroes" - WHITE for contrast */
.masthead--homepage .masthead__tagline h1,
.masthead--anniversary .masthead__tagline h1,
.masthead--homepage h1,
.masthead--anniversary h1,
.masthead--homepage .hero-text h1,
.masthead--anniversary .hero-text h1 {
  color: #ffffff !important;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.5) !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Shadow text behind H1 - hide it or make it subtle */
.masthead--anniversary .hero-text p.shadow {
  color: rgba(255,255,255,0.15) !important;
  text-shadow: none;
}

/* Subcopy text - ensure white and readable */
.masthead--anniversary .masthead__subcopy,
.masthead--anniversary .masthead__anniversary-subcopy {
  color: rgba(255, 255, 255, 0.95) !important;
}

.masthead--homepage .sub-heading,
.masthead--anniversary .sub-heading {
  background: var(--anniv-gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== FIX HERO PHONE BUTTON - MATCH GOLD STYLE ===== */

.masthead .btn-tertiary,
.masthead--anniversary .btn-tertiary {
  background: var(--anniv-gradient-gold) !important;
  color: var(--anniv-navy) !important;
  -webkit-text-fill-color: var(--anniv-navy) !important;
  border: none !important;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  transition: all 0.3s ease;
}

.masthead .btn-tertiary:hover,
.masthead--anniversary .btn-tertiary:hover {
  background: linear-gradient(135deg, #c9a430 0%, #ebd86f 50%, #c9a430 100%) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* ===== FIX TESTIMONIALS BOX ===== */

/* Remove unwanted box/border from VIEW ALL TESTIMONIALS link */
.testimonials .btn-tertiary {
  background: transparent !important;
  color: var(--anniv-navy) !important;
  -webkit-text-fill-color: var(--anniv-navy) !important;
  border: 2px solid var(--anniv-gold) !important;
  font-weight: 700;
}

.testimonials .btn-tertiary:hover {
  background: var(--anniv-gradient-gold) !important;
  color: var(--anniv-navy) !important;
  border-color: transparent !important;
}

/* ===== FOOTER LAYOUT ===== */

.page-footer {
  position: relative;
  padding: 40px 0 0;
}

.page-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Footer logo - constrain the anniversary logo */
.page-footer .footer-logo {
  margin-bottom: 0;
}

.page-footer .footer-logo__img,
.page-footer .footer-logo .anniversary-logo {
  max-width: 180px;
  height: auto;
  display: block;
}

.page-footer .footer-social {
  margin-top: 12px;
}

.page-footer .footer-social ul {
  gap: 10px;
}

.page-footer .footer-social ul li a {
  font-size: 22px;
}

/* Footer grid - 3 columns on desktop */
.page-footer .footer-top {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 24px 40px;
  align-items: start;
}

.page-footer .footer-top__left {
  margin-bottom: 0;
}

.page-footer .footer-top__center {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
}

.page-footer .footer-top__center__left {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 40px;
}

.page-footer .footer-top__center__right {
  gap: 8px;
}

.page-footer .footer-top__right {
  margin-top: 0;
  text-align: right;
}

.page-footer .footer-top__right .btn {
  position: static;
}

.page-footer .footer-top h3 {
  font-size: 14px;
  margin: 0 0 4px;
  letter-spacing: 0.5px;
}

.page-footer .footer-link-col ul {
  gap: 4px;
}

.page-footer .footer-link-col ul li a {
  font-size: 14px;
  line-height: 1.4;
  max-width: none;
}

.page-footer .footer-link-col--info h3 {
  margin: 0 0 6px;
}

.page-footer .footer-review-location {
  margin-top: 4px;
}

.page-footer .footer-review-location .footer-review-location__item + .footer-review-location__item {
  margin-top: 4px;
}

.page-footer .footer-review-location .footer-review-location__item > a {
  font-size: 14px;
}

.page-footer .footer-certificate {
  margin-top: 16px;
  gap: 10px;
  justify-content: flex-end;
}

.page-footer .footer-certificate img {
  width: 64px;
  height: 64px;
  max-width: 64px;
  object-fit: contain;
}

/* Footer bottom bar */
.page-footer .footer-bottom {
  margin-top: 24px;
  padding: 12px 0;
}

.page-footer .footer-bottom__wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-footer .footer-bottom__wrapper ul {
  gap: 8px 24px;
}

.page-footer .footer-bottom__wrapper ul li,
.page-footer .footer-bottom__wrapper ul li a {
  font-size: 13px;
}

.page-footer .back-to-top {
  position: static;
}

.page-footer .back-to-top a {
  font-size: 14px;
}

/* Mobile: stack footer columns */
@media (max-width: 767px) {
  .page-footer .footer-top {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-footer .footer-top__right {
    text-align: left;
  }

  .page-footer .footer-certificate {
    justify-content: flex-start;
  }

  .page-footer .footer-bottom__wrapper {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }
}

/* Tablet: 2 columns */
@media (min-width: 768px) and (max-width: 1199px) {
  .page-footer .footer-top {
    grid-template-columns: 180px 1fr;
    gap: 20px 30px;
  }

  .page-footer .footer-top__right {
    grid-column: 1 / -1;
    text-align: left;
  }

  .page-footer .footer-certificate {
    justify-content: flex-start;
  }
}

.footer-top__brand,
.footer-top__left,
.footer-link-col {
  text-align: left;
}

/* ===== FIX BREADCRUMB STYLING ===== */

.breadcrumbs {
  position: relative;
  z-index: 10;
  margin-top: 0;
}

.masthead--innerpage .breadcrumbs {
  position: relative;
  z-index: 20;
}

/* Standalone breadcrumb bar styling - see also lines ~1150+ for more overrides */
.hales-breadcrumb {
  background: #ffffff !important;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  z-index: 100;
}

.hales-breadcrumb__link {
  color: #042452;
  text-decoration: none;
}

.hales-breadcrumb__link:hover {
  color: var(--anniv-gold-dark);
  text-decoration: underline;
}

/* ===== FIX PAGE BACKGROUNDS - WHITE NOT GREY ===== */

body,
.page-content,
.page-template-default .page-content,
article.page-content {
  background-color: #ffffff !important;
}

.bg-light,
.bg-grey,
.bg-gray {
  background-color: #f8f9fa !important;
}

/* Fix service page backgrounds */
.service-v2-page,
.service-page-content,
main.page-content {
  background-color: #ffffff;
}

/* Inner page sections default to white */
section:not(.bg-light-blue):not(.bg-dark):not(.bg-dark-blue):not(.bg-navy):not(.masthead):not(.full-width-cta) {
  background-color: #ffffff;
}

/* ===== SERVICE & LOCAL SEO PAGE FIXES ===== */

/* Fix content width and alignment on inner pages */
.hales-city-v4,
.hales-city-v4-blueprint {
  background-color: #ffffff;
  padding: 40px 0;
}

.hales-city-v4 .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Fix service area page layout */
.hales-city-service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

/* Fix city chips/tags */
.hales-city-v4-chips,
.hales-city-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.hales-city-v4-chip,
.hales-city-chip {
  display: inline-block;
  padding: 8px 16px;
  background: #f0f4f8;
  border: 1px solid #d0d7de;
  border-radius: 20px;
  color: var(--anniv-navy);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.hales-city-v4-chip:hover,
.hales-city-chip:hover {
  background: var(--anniv-gradient-gold);
  border-color: var(--anniv-gold);
  color: var(--anniv-navy);
}

/* ===== INNER PAGE MASTHEAD FIX ===== */

.masthead--innerpage {
  position: relative;
  z-index: 1;
}

.masthead--innerpage__wrapper {
  position: relative;
  z-index: 2;
}

/* Ensure breadcrumbs are above other elements */
.masthead--innerpage .breadcrumbs {
  position: relative;
  z-index: 30;
  padding-top: 10px;
}

/* ===== SERVICE AREA CITY LINKS - INTERACTIVE ===== */

.accordian-location-links ul li a {
  color: var(--anniv-navy);
  text-decoration: none;
  padding: 4px 0;
  display: inline-block;
  position: relative;
  transition: all 0.2s ease;
}

.accordian-location-links ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--anniv-gold);
  transition: width 0.3s ease;
}

.accordian-location-links ul li a:hover {
  color: var(--anniv-gold-dark);
}

.accordian-location-links ul li a:hover::after {
  width: 100%;
}

/* Accordion panel styling */
.fx-accordion__panel__toggle {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.fx-accordion__panel__toggle:hover {
  background: #fff;
  border-color: var(--anniv-gold);
  color: var(--anniv-navy);
}

.fx-accordion__panel.is-expanded .fx-accordion__panel__toggle {
  background: var(--anniv-gradient-gold);
  color: var(--anniv-navy);
  border-color: var(--anniv-gold);
}

/* Map interaction hint */
.fx-accordion--service-location__map {
  position: relative;
}

/* ===== FIX SERVICE/LOCAL SEO PAGE LAYOUTS ===== */

/* Ensure proper content width */
.page-template-default .page-content .container,
.page-template-page-php .page-content .container {
  max-width: 1140px;
  margin: 0 auto;
}

/* Fix section spacing */
.hales-city-v4 + .hales-city-v4 {
  border-top: 1px solid #e9ecef;
}

/* Better typography for service pages */
.hales-city-v4 h3 {
  color: var(--anniv-navy);
  font-size: 24px;
  margin-bottom: 16px;
}

.hales-city-v4 p {
  color: #333;
  line-height: 1.7;
}

/* Service area details styling */
.hales-service-area-details {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-top: 20px;
}

@media (min-width: 768px) {
  .hales-service-area-details {
    grid-template-columns: 1fr 1fr;
  }
}

.hales-service-area-details__facts p {
  margin-bottom: 12px;
}

.hales-service-area-details__nearby h4 {
  color: var(--anniv-navy);
  margin-bottom: 12px;
}

/* ===== ADDITIONAL HOMEPAGE HERO FIXES ===== */

/* Note: "CELEBRATING" text in .sub-heading is styled as a gold pill badge
   in masthead-static.css - .masthead--anniversary .masthead__text .sub-heading */

/* Fix "St. Petersburg & Tampa Bay's HVAC Heroes" layout */
.masthead--homepage .hero-text h1,
.masthead--anniversary .hero-text h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.15;
  white-space: pre-line;
  text-align: center;
}

@media (min-width: 768px) {
  .masthead--homepage .hero-text h1,
  .masthead--anniversary .hero-text h1 {
    text-align: left;
    font-size: clamp(32px, 4vw, 52px);
  }
}

/* Fix floating badges - keep them on screen */
/* Floating anniversary badge - visible and clickable */
.anniversary-floating-badge {
  right: 0;
  transform: translateY(-50%) translateX(calc(100% - 24px)) rotate(-90deg);
  transform-origin: center center;
}

/* Fix Google review badge positioning - prevent overflow */
.hales-review-badge {
  right: 15px !important;
  bottom: 80px !important;
  max-width: calc(100vw - 30px) !important;
}

@media (min-width: 1200px) {
  .hales-review-badge {
    right: 18px !important;
    bottom: 90px !important;
  }
}

/* ===== BLUE SECTION ABOVE FOOTER - FULL WIDTH ===== */

/* Fixed: 100vw includes scrollbar width, causing horizontal shift + overlay misalignment.
   These sections are already direct children of full-width parents, so 100% works correctly. */
.fx-accordion--service-location,
.cta {
  width: 100%;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
}

/* full-width-cta is already a block-level element that fills its parent width.
   The 100vw break-out pattern causes misalignment on inner pages where the
   section sits directly inside <main> without a constrained container. */
.full-width-cta {
  width: 100%;
  position: relative;
  left: auto;
  right: auto;
  margin-left: 0;
  margin-right: 0;
}

.fx-accordion--service-location .container,
.cta .container,
.full-width-cta .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Ensure service areas section has proper blue background */
.fx-accordion--service-location.bg-dark-blue {
  background: var(--anniv-gradient-navy) !important;
}

/* ===== BUTTON CONSISTENCY - ALL GOLD ===== */

/* Primary buttons - gold gradient */
.btn,
.btn-primary,
.btn-icon,
.load-more__btn,
.masthead .btn-group .btn,
input[type="submit"],
button[type="submit"] {
  background: var(--anniv-gradient-gold) !important;
  color: var(--anniv-navy) !important;
  border: none !important;
  font-weight: 700;
  border-radius: 8px;
}

.btn:hover,
.btn-primary:hover,
.btn-icon:hover,
.load-more__btn:hover,
.masthead .btn-group .btn:hover,
input[type="submit"]:hover,
button[type="submit"]:hover {
  background: linear-gradient(135deg, #c9a430 0%, #ebd86f 50%, #c9a430 100%) !important;
  transform: translateY(-2px);
}

/* Secondary buttons - solid navy */
.btn-secondary {
  background: var(--anniv-navy) !important;
  color: #fff !important;
  border: 2px solid var(--anniv-navy) !important;
  box-shadow: 0 4px 12px rgba(1, 22, 53, 0.15);
  border-radius: 8px;
}

.btn-secondary:hover {
  background: var(--anniv-navy-light) !important;
  border-color: var(--anniv-navy-light) !important;
  box-shadow: 0 6px 24px rgba(1, 22, 53, 0.35);
}

/* Phone/Call buttons - navy solid */
.btn-tertiary:not(.masthead .btn-tertiary) {
  background: var(--anniv-navy) !important;
  color: #fff !important;
  border: none !important;
}

.btn-tertiary:not(.masthead .btn-tertiary):hover {
  background: var(--anniv-navy-light) !important;
}

/* ===== FIX FOOTER ALIGNMENT (layout rules consolidated above) ===== */

/* ===== BREADCRUMB FIXES - INSIDE MASTHEAD ===== */

/* Breadcrumbs should stay inside the masthead, not overlap content */
.breadcrumbs {
  position: relative;
  z-index: 10;
  background: transparent;
  padding: 0 0 11px;
  margin-bottom: 0;
}

/* Keep breadcrumbs relative inside masthead - NOT absolute */
.masthead--innerpage .breadcrumbs {
  position: relative;
  z-index: 10;
}

.breadcrumbs ul {
  margin: 0;
  padding: 0;
}

.breadcrumbs ul li,
.breadcrumbs ul li a {
  color: #fff !important;
  font-size: 14px;
}

.breadcrumbs ul li a:hover {
  color: var(--anniv-gold) !important;
}

/* Standalone breadcrumb bar (below masthead) - white background */
.hales-breadcrumb {
  background: #ffffff !important;
  padding: 12px 0;
  font-size: 14px;
  border-bottom: 1px solid #e9ecef;
  position: relative;
  z-index: 100;
}

.hales-breadcrumb__link {
  color: #042452 !important;
  text-decoration: none;
}

.hales-breadcrumb__link:hover {
  color: var(--anniv-gold-dark) !important;
  text-decoration: underline;
}

.hales-breadcrumb__current {
  color: #333333 !important;
  font-weight: 600;
}

.hales-breadcrumb__separator {
  color: #6c757d;
}

/* ===== PAGE BACKGROUND FIXES ===== */

body {
  background-color: #ffffff !important;
}

.page-content,
article.page-content,
main,
.site-main {
  background-color: #ffffff !important;
}

/* Remove any grey backgrounds from page templates */
.page-template-default,
.page-template-page-php,
.single,
.archive {
  background-color: #ffffff !important;
}

.page-template-default .page-content,
.page-template-page-php .page-content {
  background-color: #ffffff !important;
}

/* Service pages white background */
.hales-city-v4,
.hales-city-v4-blueprint,
section.hales-city-v4 {
  background-color: #ffffff !important;
}

/* Service area lead form section - white background */
.hales-service-area-lead {
  background-color: #ffffff;
}

/* Main content area */
#main-content {
  background-color: #ffffff !important;
}

/* Remove any grey backgrounds from common utility classes */
.bg-light-grey,
.bg-light-gray,
.section-bg-grey,
.section-bg-gray {
  background-color: #ffffff !important;
}

/* ===== FIX TEXT VISIBILITY ON INNER PAGES ===== */

/* Ensure all text on white/light backgrounds is dark and visible */
.page-content,
.page-content p,
.page-content li,
.page-content span,
article.page-content,
article.page-content p,
article.page-content li,
main p,
main li,
section p,
section li {
  color: #333333;
}

/* Fix list items - ensure text is visible */
.page-content ul li,
.page-content ol li,
article ul li,
article ol li,
section ul li,
section ol li,
.half-and-half-text ul li,
.half-and-half-text ol li,
.image-text__text ul li,
.image-text__text ol li,
.wysiwyg ul li,
.wysiwyg ol li {
  color: #333333 !important;
}

/* Headings on white backgrounds */
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6,
article h1,
article h2,
article h3,
article h4,
section h2,
section h3,
section h4 {
  color: var(--anniv-navy, #011635);
}

/* Fix half-and-half sections text visibility */
.half-and-half-text,
.half-and-half-text p,
.half-and-half-text li,
.image-text__text,
.image-text__text p,
.image-text__text li {
  color: #333333 !important;
}

/* Fix accordion content text */
.fx-accordion__panel__content,
.fx-accordion__panel__content p,
.fx-accordion__panel__content li {
  color: #333333;
}

/* Ensure dark blue sections have white text */
.bg-dark-blue,
.bg-dark-blue p,
.bg-dark-blue li,
.bg-dark-blue span,
.bg-dark-blue h2,
.bg-dark-blue h3,
.bg-dark-blue h4 {
  color: #ffffff !important;
}

/* Override dark text on lists inside dark blue image-text sections */
.bg-dark-blue .image-text__text ul li,
.bg-dark-blue .image-text__text ol li,
.bg-dark-blue .image-text__text li {
  color: #ffffff !important;
}

/* Also handle spans inside those list items */
.bg-dark-blue .image-text__text li span {
  color: #ffffff !important;
}

/* ===== FIX ICON-BUTTON CARDS INSIDE DARK-BLUE SECTIONS ===== */
/* The white icon-button cards need dark text even when inside bg-dark-blue.
   The broad ".bg-dark-blue p/h4 { color: #fff !important }" rules above
   make card text white-on-white (invisible). Override here with higher specificity. */
.bg-dark-blue .icons-button,
.bg-dark-blue .icons-button p,
.bg-dark-blue .icons-button span,
.bg-dark-blue .icons-button li {
  color: #5D5D5D !important;
  -webkit-text-fill-color: #5D5D5D !important;
}

.bg-dark-blue .icons-button h4,
.bg-dark-blue .icons-button__title {
  color: #333333 !important;
  -webkit-text-fill-color: #333333 !important;
}

.bg-dark-blue .icons-button__cta,
.bg-dark-blue .icons-button__cta i {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Light blue background sections - ensure dark text */
.bg-light-blue,
.bg-light-blue p,
.bg-light-blue li,
.bg-light-blue span {
  color: #333333 !important;
}

.bg-light-blue h2,
.bg-light-blue h3,
.bg-light-blue h4 {
  color: var(--anniv-navy, #011635) !important;
}

/* Fix grey background sections */
.bg-grey,
.bg-gray,
.gray-bg,
.bg-grey p,
.bg-gray p,
.gray-bg p,
.bg-grey li,
.bg-gray li,
.gray-bg li {
  color: #333333 !important;
}

/* ===== FIX HALF-IMAGE-HALF-ACCORDION SECTIONS ===== */

/* Ensure accordion text on light backgrounds is visible */
.half-image-half-accordion:not(.bg-dark-blue) .fx-accordion__heading,
.half-image-half-accordion:not(.bg-dark-blue) .fx-accordion__heading h2,
.half-image-half-accordion:not(.bg-dark-blue) .fx-accordion__heading p,
.half-image-half-accordion:not(.bg-dark-blue) .fx-accordion__panel__content,
.half-image-half-accordion:not(.bg-dark-blue) .fx-accordion__panel__content p,
.half-image-half-accordion:not(.bg-dark-blue) .fx-accordion__panel__content li {
  color: #333333 !important;
}

/* Fix accordion toggle text on light backgrounds */
.half-image-half-accordion:not(.bg-dark-blue) .fx-accordion__panel__toggle {
  color: #333333;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
}

.half-image-half-accordion:not(.bg-dark-blue) .fx-accordion__panel.is-expanded .fx-accordion__panel__toggle {
  background: var(--anniv-gradient-gold);
  color: var(--anniv-navy);
}

/* ===== ENSURE WHITE BACKGROUNDS ON CONTENT SECTIONS ===== */

/* Override any grey backgrounds on main content areas */
.half-and-half.gray-bg,
.half-and-half.grey-bg,
section.gray-bg,
section.grey-bg {
  background-color: #f8f9fa !important;
}

/* White background for standard content sections */
.half-and-half.white-bg,
section.white-bg,
.image-text,
.home-image-text {
  background-color: #ffffff !important;
}

/* ===== PROMO CTA (Big Chill Upgrade) - TEXT CONTRAST FIX ===== */
/* The promo-cta template applies bg-white class which overrides the dark blue background.
   We need to restore the dark blue background and ensure text is readable. */

/* Force dark blue background - override the bg-white class */
.promo-cta,
.promo-cta.bg-white {
  background: var(--dark-blue) !important;
}

/* Text should be white on dark blue background */
.promo-cta h2,
.promo-cta p {
  color: #ffffff !important;
  background: transparent !important;
}

/* Keep the highlighted text gold for visibility */
.promo-cta .highlighted-text {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
  background: transparent !important;
}

/* Fix the shadow/stroke effect - ensure it's positioned correctly */
.promo-cta .highlighted-text::after {
  color: var(--dark-blue) !important;
  -webkit-text-stroke: 0.5px var(--white) !important;
  background: transparent !important;
}

/* ===== TESTIMONIALS - VIEW ALL TESTIMONIALS BUTTON ===== */

.testimonials .testimonials__heading .btn-tertiary,
.testimonials__heading .btn-tertiary {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  background: var(--anniv-navy) !important;
  border: 2px solid var(--anniv-gold) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 15px !important;
}

.testimonials .testimonials__heading .btn-tertiary:hover,
.testimonials__heading .btn-tertiary:hover {
  background: var(--anniv-gradient-gold) !important;
  color: var(--anniv-navy) !important;
  -webkit-text-fill-color: var(--anniv-navy) !important;
  border-color: transparent !important;
}

/* ===== TESTIMONIALS - REVIEW LINK BUTTONS (Tampa / St. Pete) ===== */
/* Override the big pill buttons to be subtle text links */

.testimonials__heading .additional-cta-buttons .btn,
.testimonials .additional-cta-buttons .btn {
  background: none !important;
  border: none !important;
  border-radius: 0 !important;
  color: var(--anniv-navy) !important;
  -webkit-text-fill-color: var(--anniv-navy) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 4px 0 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  text-decoration-color: rgba(4, 36, 82, 0.3) !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

.testimonials__heading .additional-cta-buttons .btn:hover,
.testimonials .additional-cta-buttons .btn:hover {
  color: var(--anniv-gold) !important;
  -webkit-text-fill-color: var(--anniv-gold) !important;
  text-decoration-color: var(--anniv-gold) !important;
  background: none !important;
}

/* ===== CAPTAIN RIGHT AWAY / FULL-WIDTH-CTA - WHITE TEXT ===== */
/* This section has a dark blue background - all text must be white for readability */
/* Using maximum specificity to override any inline styles from WYSIWYG content */

/* Nuclear option - override ALL elements inside full-width-cta */
html body .full-width-cta,
html body .full-width-cta *:not(.full-width-cta__highlight-text),
.full-width-cta,
.full-width-cta *:not(.full-width-cta__highlight-text) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Force white text with webkit fill for maximum compatibility */
html body .full-width-cta h2,
html body .full-width-cta h3,
html body .full-width-cta h4,
html body .full-width-cta h5,
html body .full-width-cta h6,
html body .full-width-cta .sub-heading,
.full-width-cta h2,
.full-width-cta h3,
.full-width-cta h4 {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Target all paragraph text including WYSIWYG content - maximum specificity */
/* Also target elements with inline style attributes */
html body .full-width-cta p,
html body .full-width-cta__text p,
html body .full-width-cta__content p,
html body .full-width-cta .animated-content p,
html body .full-width-cta .js-animated-content p,
html body .full-width-cta .container p,
html body .full-width-cta p[style],
html body .full-width-cta p[style*="color"],
html body .full-width-cta span[style],
html body .full-width-cta span[style*="color"],
.full-width-cta p,
.full-width-cta p[style],
.full-width-cta p[style*="color"] {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Target spans and list items */
html body .full-width-cta span,
html body .full-width-cta li,
html body .full-width-cta strong,
html body .full-width-cta em,
html body .full-width-cta a:not(.btn),
html body .full-width-cta div:not(.btn-group):not(.full-width-cta__highlight-text),
.full-width-cta span,
.full-width-cta li,
.full-width-cta strong,
.full-width-cta em {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Keep the "WE'RE RIGHT AWAY" highlight text gold - must come AFTER white rules.
   The highlight element is a <div>, so we use div.full-width-cta__highlight-text
   to get specificity 0,0,2,3 — matching the white div:not(.btn-group) rule above.
   Since this rule appears later in source order, it wins the tie. */
html body section.full-width-cta .js-animated-split-text .full-width-cta__highlight-text,
html body .full-width-cta div.full-width-cta__highlight-text,
html body .full-width-cta .full-width-cta__highlight-text,
.full-width-cta div.full-width-cta__highlight-text,
.full-width-cta .full-width-cta__highlight-text,
.full-width-cta__highlight-text {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
}

/* Target GSAP SplitText character divs inside the highlight text.
   SplitText wraps each character in a <div> — these inherit white from
   the .full-width-cta div:not(.btn-group) rule above (specificity 0,0,2,3).
   Using div.full-width-cta__highlight-text div gives specificity 0,0,2,4
   which definitively beats the white rule. */
html body .full-width-cta div.full-width-cta__highlight-text div,
html body .full-width-cta div.full-width-cta__highlight-text span,
html body .full-width-cta .full-width-cta__highlight-text *,
.full-width-cta div.full-width-cta__highlight-text div,
.full-width-cta div.full-width-cta__highlight-text span,
.full-width-cta .full-width-cta__highlight-text *,
.full-width-cta__highlight-text * {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
}

/* Button text should stay as designed */
html body .full-width-cta .btn,
html body .full-width-cta .btn-primary,
html body .full-width-cta .btn-secondary,
.full-width-cta .btn {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Book Now button - gold gradient */
html body .full-width-cta .btn-primary,
.full-width-cta .btn-primary,
.full-width-cta .btn-group .btn-primary {
  background: var(--anniv-gradient-gold) !important;
  color: var(--anniv-navy) !important;
  -webkit-text-fill-color: var(--anniv-navy) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
}

html body .full-width-cta .btn-primary:hover,
.full-width-cta .btn-group .btn-primary:hover {
  background: linear-gradient(135deg, #c9a430 0%, #ebd86f 50%, #c9a430 100%) !important;
}

/* Call Now button - navy with gold border */
html body .full-width-cta .btn-secondary,
.full-width-cta .btn-secondary,
.full-width-cta .btn-group .btn-secondary {
  background: var(--anniv-navy) !important;
  border: 2px solid var(--anniv-gold) !important;
  border-radius: 50px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body .full-width-cta .btn-secondary:hover,
.full-width-cta .btn-group .btn-secondary:hover {
  background: var(--anniv-navy-light) !important;
}

/* ===== FLOATING CTA BAR (Meet Captain Right Away) - WHITE TEXT ===== */
/* Dark blue background section - all text must be white */
/* The broad "section p { color: #333333 }" rule overrides the block CSS */

html body .floating-cta__wrapper,
html body .floating-cta__wrapper *:not(.btn):not(.icon-schedule),
.floating-cta__wrapper,
.floating-cta__wrapper *:not(.btn):not(.icon-schedule) {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

html body .floating-cta__wrapper h2,
html body .floating-cta__wrapper p,
html body .floating-cta__wrapper .sub-heading,
html body .floating-cta__wrapper span,
html body .floating-cta__wrapper li,
.floating-cta__wrapper h2,
.floating-cta__wrapper p,
.floating-cta__wrapper .sub-heading {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* ===== READY TO SCHEDULE SERVICE CTA - BLUE BACKGROUND ===== */
/* Match the blue color from halesac.com which uses #042452 (--dark-blue) */
/* Override the grey tertiary-color background with dark blue */
/* The grey comes from a background IMAGE (.cta__bg) - we need to hide it and use blue */

html body .cta,
html body .cta.section-padding,
.cta,
.cta.section-padding,
html body .full-width-cta,
.full-width-cta {
  background: #042452 !important;
  background-color: #042452 !important;
  position: relative;
}

/* HIDE the grey background image - it's an actual image element, not CSS */
html body .cta .cta__bg,
.cta .cta__bg,
.cta img.cta__bg {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
}

/* Add speed lines effect using CSS instead of the grey image */
html body .cta::before,
.cta::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  /* Radial speed lines emanating from center */
  background:
    repeating-conic-gradient(
      from 0deg at 50% 50%,
      rgba(255, 255, 255, 0.03) 0deg 2deg,
      transparent 2deg 10deg
    ),
    radial-gradient(
      ellipse at 50% 50%,
      rgba(255, 255, 255, 0.08) 0%,
      transparent 70%
    ) !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

html body .cta .container,
.cta .container {
  position: relative;
  z-index: 2 !important;
}

.cta .cta__content {
  position: relative;
  z-index: 2 !important;
}

/* All text white */
.cta h2,
.cta h3,
.cta p,
.cta span,
.cta__content h2,
.cta__content h3,
.cta__content p,
body .cta h2,
body .cta p {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* "WE'RE RIGHT AWAY" highlight text - gold */
.cta .full-width-cta__highlight-text,
.cta__content .full-width-cta__highlight-text {
  color: #d4af37 !important;
  -webkit-text-fill-color: #d4af37 !important;
}

/* CTA buttons - Book Now (gold) and Call Now (navy) */
.cta .btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 24px;
}

/* Book Now button - gold gradient */
.cta .btn-primary,
.cta .btn-group .btn-primary,
body .cta .btn-primary {
  background: var(--anniv-gradient-gold) !important;
  color: var(--anniv-navy) !important;
  -webkit-text-fill-color: var(--anniv-navy) !important;
  border: none !important;
  border-radius: 50px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
}

.cta .btn-primary:hover,
.cta .btn-group .btn-primary:hover {
  background: linear-gradient(135deg, #c9a430 0%, #ebd86f 50%, #c9a430 100%) !important;
}

/* Call Now button - navy with gold border */
.cta .btn-secondary,
.cta .btn-group .btn-secondary,
body .cta .btn-secondary {
  background: var(--anniv-navy) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 2px solid var(--anniv-gold) !important;
  border-radius: 50px !important;
  padding: 14px 28px !important;
  font-weight: 700 !important;
}

.cta .btn-secondary:hover,
.cta .btn-group .btn-secondary:hover {
  background: var(--anniv-navy-light) !important;
}

/* ===== CRITICAL LAYOUT FIXES - INNER PAGES ===== */
/* Fix grey background, right shift, and footer scrolling issues */

/* 1. Ensure main content has white background and proper stacking */
html body,
body {
  background-color: #ffffff !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow-x: hidden !important;
}

/* Main content area - white background with proper z-index for reveal footer */
#main-content,
main#main-content,
main {
  background-color: #ffffff !important;
  position: relative;
  z-index: 10;
}

/* 2. Fix container alignment - no unexpected margins */
.container {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* 3. Fix page-footer positioning - disable sticky footer effect that causes scroll issues */
.page-footer {
  position: relative !important;
  bottom: auto !important;
  z-index: 1 !important;
}

/* 4. Trust Bar - Force correct styling with maximum specificity */
html body .hales-trust-bar,
body .hales-trust-bar,
.hales-trust-bar {
  background: #042452 !important;
  background-color: #042452 !important;
  color: #ffffff !important;
  padding: 10px 0 !important;
  font-size: 12px !important;
  position: relative !important;
  z-index: 100 !important;
  border-bottom: 3px solid #d4af37 !important;
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

html body .hales-trust-bar .container,
.hales-trust-bar .container {
  max-width: 1400px !important;
  margin: 0 auto !important;
  padding: 0 15px !important;
}

html body .hales-trust-bar__inner,
.hales-trust-bar__inner {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 20px !important;
  flex-wrap: wrap !important;
}

html body .hales-trust-bar__breadcrumb,
.hales-trust-bar__breadcrumb {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11px !important;
  color: rgba(255,255,255,0.7) !important;
}

html body .hales-trust-bar__breadcrumb a,
.hales-trust-bar__breadcrumb a {
  color: rgba(255,255,255,0.8) !important;
  text-decoration: none !important;
}

html body .hales-trust-bar__breadcrumb a:hover,
.hales-trust-bar__breadcrumb a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

html body .hales-trust-bar__breadcrumb span,
.hales-trust-bar__breadcrumb span {
  color: rgba(255,255,255,0.6) !important;
}

html body .hales-trust-bar__sep,
.hales-trust-bar__sep {
  color: rgba(255,255,255,0.4) !important;
  margin: 0 2px !important;
}

html body .hales-trust-bar__items,
.hales-trust-bar__items {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

html body .hales-trust-bar__item,
.hales-trust-bar__item {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

html body .hales-trust-bar__stars,
.hales-trust-bar__stars {
  color: #fbbf24 !important;
  font-size: 12px !important;
}

html body .hales-trust-bar__text,
.hales-trust-bar__text {
  color: rgba(255,255,255,0.9) !important;
}

html body .hales-trust-bar__text strong,
.hales-trust-bar__text strong {
  color: #ffffff !important;
}

/* 5. Trust bar responsive - mobile */
@media (max-width: 991px) {
  html body .hales-trust-bar__inner,
  .hales-trust-bar__inner {
    justify-content: center !important;
  }

  html body .hales-trust-bar__breadcrumb,
  .hales-trust-bar__breadcrumb {
    width: 100% !important;
    justify-content: center !important;
    order: 2 !important;
    margin-top: 4px !important;
  }

  html body .hales-trust-bar__items,
  .hales-trust-bar__items {
    order: 1 !important;
    justify-content: center !important;
  }
}

@media (max-width: 767px) {
  html body .hales-trust-bar,
  .hales-trust-bar {
    font-size: 11px !important;
    padding: 8px 0 !important;
  }

  html body .hales-trust-bar__items,
  .hales-trust-bar__items {
    gap: 10px !important;
  }

  html body .hales-trust-bar__item--license,
  .hales-trust-bar__item--license {
    display: none !important;
  }

  html body .hales-trust-bar__breadcrumb,
  .hales-trust-bar__breadcrumb {
    font-size: 10px !important;
  }
}

/* 6. Trust bar positioning - push below fixed header */
/* The header is position:fixed, so trust bar needs margin-top to appear below it */
/* Using padding-top on a wrapper approach instead of margin-top */
html body div.hales-trust-bar,
body div.hales-trust-bar,
div.hales-trust-bar,
.hales-trust-bar {
  margin-top: 170px !important; /* Mobile header height */
  padding-top: 0 !important;
}

@media (min-width: 768px) {
  html body div.hales-trust-bar,
  body div.hales-trust-bar,
  div.hales-trust-bar,
  .hales-trust-bar {
    margin-top: 185px !important; /* Tablet header height */
  }
}

@media (min-width: 992px) {
  html body div.hales-trust-bar,
  body div.hales-trust-bar,
  div.hales-trust-bar,
  .hales-trust-bar {
    margin-top: 190px !important; /* Small desktop header height */
  }
}

@media (min-width: 1200px) {
  html body div.hales-trust-bar,
  body div.hales-trust-bar,
  div.hales-trust-bar,
  .hales-trust-bar {
    margin-top: 168px !important; /* Desktop header: notification(35) + logo(90) + nav(43) */
  }

  body.logged-in div.hales-trust-bar,
  .logged-in .hales-trust-bar {
    margin-top: 200px !important; /* Add 32px for admin bar */
  }
}

/* 7. Masthead on inner pages - no extra margin since trust bar handles positioning */
.masthead--innerpage,
.masthead {
  margin-top: 0 !important;
}

/* 8. Hide the old standalone breadcrumb bar - we now have breadcrumbs in the trust bar */
html body .hales-breadcrumb,
.hales-breadcrumb,
.breadcrumb-bar,
.standalone-breadcrumb {
  display: none !important;
}

/* 9. Service area lead form - reduce negative margin to prevent overlapping hero too much */
.hales-service-area-lead {
  margin-top: -15px !important; /* Reduced from -30px to prevent "Let's get you scheduled" from going too high */
}

@media (max-width: 767px) {
  .hales-service-area-lead {
    margin-top: 0 !important; /* No overlap on mobile */
  }
}

/* ===== HOMEPAGE: Tighten hero → van section spacing ===== */
/* Reduce gap between the hero and the "AC Problems Don't Wait" section */
/* Anniversary mode: badges are inside hero, so .review section is removed */
.masthead--anniversary + .half-image-text-icon-pullouts,
.masthead--homepage + .review + .half-image-text-icon-pullouts,
.masthead--anniversary + .review + .half-image-text-icon-pullouts {
  padding-top: 30px !important;
}

@media (min-width: 768px) {
  .masthead--anniversary + .half-image-text-icon-pullouts,
  .masthead--homepage + .review + .half-image-text-icon-pullouts,
  .masthead--anniversary + .review + .half-image-text-icon-pullouts {
    padding-top: 40px !important;
  }
}

@media (min-width: 1200px) {
  .masthead--anniversary + .half-image-text-icon-pullouts,
  .masthead--homepage + .review + .half-image-text-icon-pullouts,
  .masthead--anniversary + .review + .half-image-text-icon-pullouts {
    padding-top: 50px !important;
  }
}

/* =============================================
   v6 Accordion overrides (homepage + sitewide)
   ============================================= */

/* Accordion toggle border - gold instead of blue */
.fx-accordion__panel__toggle {
  border-color: #d4af37 !important;
}

/* Accordion toggle expand/collapse indicator - gold */
.fx-accordion__panel__toggle:after {
  background: #d4af37 !important;
}

/* Accordion icon dot - gold instead of orange */
.accordian-icon-links ul li a i {
  background: #d4af37 !important;
}

/* Accordion icon link hover - gold tint */
.accordian-icon-links ul li a:hover {
  background: rgba(212, 175, 55, 0.1) !important;
}

/* Accordion arrow/chevron color */
.fx-accordion__panel__toggle .icon-chevron-down,
.fx-accordion__panel__toggle .icon-plus {
  color: #d4af37 !important;
}

/* Hover state border - gold instead of orange */
@media (min-width: 1200px) {
  .fx-accordion__panel:not(.is-expanded):hover .fx-accordion__panel__toggle {
    border-color: #d4af37 !important;
  }

  .fx-accordion__panel:hover .fx-accordion__panel__toggle:after {
    background: #d4af37 !important;
  }
}

/* Service location accordion link hover - gold */
.accordian-location-links__col ul li a:hover {
  color: #d4af37 !important;
}
