/*
Theme Name: Fixrn Kadence Child
Theme URI: https://fixrn.com
Description: AdSense-optimized child theme for Fixrn.com (emergency plumbing & HVAC directory). Built on Kadence. Adds five manual ad slots, Core-Web-Vitals-safe lazy loading, a virtual ads.txt handler, and the 3-image auto-injection system for programmatic city/service pages.
Author: IGNE Publishing, LLC
Template: kadence
Version: 1.0.0
Text Domain: fixrn-child
*/

/* ==========================================================================
   Ad slot containers — fixed dimensions reserve layout space up front so
   ads never cause a Cumulative Layout Shift (CLS) penalty once they load.
   ========================================================================== */

.fixrn-ad-slot {
  display: block;
  margin: 24px auto;
  text-align: center;
  overflow: hidden;
}

.fixrn-ad-slot .fixrn-ad-label {
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9aa0a6;
  margin-bottom: 6px;
}

/* sidebar_below_cta — 300x250 */
.fixrn-ad-sidebar_below_cta {
  min-height: 250px;
  max-width: 300px;
}

/* below_faq — 728x90 (responsive down to 320x50 on mobile) */
.fixrn-ad-below_faq {
  min-height: 90px;
  max-width: 728px;
}
@media (max-width: 500px) {
  .fixrn-ad-below_faq { min-height: 50px; }
}

/* between_why_cards — fluid in-article unit */
.fixrn-ad-between_why_cards {
  min-height: 100px;
  max-width: 100%;
}

/* footer_pre_copyright — 728x90 */
.fixrn-ad-footer_pre_copyright {
  min-height: 90px;
  max-width: 728px;
}
@media (max-width: 500px) {
  .fixrn-ad-footer_pre_copyright { min-height: 50px; }
}

/* state_hub_feed — 300x250, repeated between city cards */
.fixrn-ad-state_hub_feed {
  min-height: 250px;
  max-width: 300px;
  grid-column: span 1;
}

/* ==========================================================================
   3-image auto-injection — basic responsive treatment
   ========================================================================== */

.fixrn-auto-img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  background-color: #eef1f4; /* visible placeholder tone while loading / if a fallback is used */
}

/* ==========================================================================
   Social share bar (Font Awesome icons)
   ========================================================================== */

.fixrn-share-bar {
  display: flex;
  gap: 10px;
  margin: 16px 0;
}

.fixrn-share-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1E293B;
  color: #fff;
  font-size: 15px;
  text-decoration: none;
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.fixrn-share-icon:hover {
  transform: translateY(-2px);
  background: #0D9488;
}

/* ==========================================================================
   Logo — two-tone wordmark + wrench badge, shared by header and footer
   ========================================================================== */

.fixrn-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  line-height: 1;
}

.fixrn-logo__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #0D9488;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.fixrn-logo__text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.fixrn-logo__fix {
  color: #1E293B;
}

.fixrn-logo__rn {
  color: #0D9488;
}

/* ==========================================================================
   Header — logo + CTA only, no navigation
   ========================================================================== */

.fixrn-header {
  background: #fff;
  border-bottom: 1px solid #E2E8F0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.fixrn-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.fixrn-header__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #0D9488;
  color: #fff;
  text-decoration: none;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  transition: background-color 0.15s ease;
  white-space: nowrap;
}

.fixrn-header__cta:hover {
  background: #0F766E;
  color: #fff;
}

.fixrn-header__cta i {
  font-size: 16px;
}

.fixrn-header__cta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.fixrn-header__cta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.85;
}

.fixrn-header__cta-number {
  font-size: 15px;
  font-weight: 700;
}

@media (max-width: 480px) {
  .fixrn-header__cta-label { display: none; }
  .fixrn-header__cta { padding: 10px 14px; }
}

/* ==========================================================================
   Footer — logo, quick links, social, sitemap
   ========================================================================== */

.fixrn-footer {
  background: #1E293B;
  color: #CBD5E1;
  margin-top: 48px;
}

.fixrn-footer .fixrn-logo__fix {
  color: #fff;
}

.fixrn-footer .fixrn-logo__rn {
  color: #2DD4BF;
}

.fixrn-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 24px 32px;
  display: grid;
  grid-template-columns: 1.3fr 1fr auto;
  gap: 32px;
  align-items: start;
}

@media (max-width: 780px) {
  .fixrn-footer__inner {
    grid-template-columns: 1fr;
    padding: 40px 20px 24px;
  }
}

.fixrn-footer__tagline {
  margin: 14px 0 0;
  font-size: 14px;
  color: #94A3B8;
  max-width: 320px;
}

.fixrn-footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}

.fixrn-footer__links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 14px;
}

.fixrn-footer__links a:hover {
  color: #2DD4BF;
}

.fixrn-footer__social {
  display: flex;
  gap: 10px;
}

.fixrn-footer__social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.fixrn-footer__social-icon:hover {
  background: #0D9488;
  color: #fff;
}

.fixrn-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

.fixrn-footer__bottom p {
  margin: 0;
  color: #94A3B8;
}

.fixrn-footer__bottom a {
  color: #2DD4BF;
  text-decoration: none;
}

.fixrn-footer__bottom a:hover {
  text-decoration: underline;
}
