/*
Theme Name: HVAC Service Birmingham Blog
Theme URI: https://www.hvacservicebirmingham.com/
Description: Kadence child theme for the HVAC Service Birmingham blog.
Author: Loyal Web Solutions
Template: kadence
Version: 1.0.0
Text Domain: hvac-service-birmingham
*/

/* Blog templates: use the source site's black/white/red design tokens. */
.blog-hero{background:var(--ink);color:#e4e5e8;border-bottom:4px solid var(--red);padding:42px 0}
.blog-hero__inner{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,300px);gap:32px;align-items:center}
.blog-hero h1{color:#fff;font-size:clamp(2.2rem,5vw,3.6rem);margin:0 0 14px}
.blog-hero p{max-width:760px;color:#d6d7db}
.blog-hero__logo{background:#fff;padding:12px;border-radius:var(--r-l);max-width:300px;justify-self:end}
.blog-hero__logo img{width:100%;height:auto}
.blog-section,.single-section{padding:var(--sec) 0}
.blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.blog-card{border:1px solid var(--line);background:#fff;display:flex;flex-direction:column;min-width:0;transition:box-shadow .2s,transform .2s}
.blog-card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}
.blog-card__image{display:block;aspect-ratio:16/10;overflow:hidden;background:var(--paper)}
.blog-card__image img{width:100%;height:100%;object-fit:cover}
.blog-card__placeholder{height:100%;display:grid;place-items:center;color:var(--red);font:700 1.4rem var(--display)}
.blog-card__body{padding:22px;display:flex;flex-direction:column;align-items:flex-start;flex:1}
.blog-card__meta{font-size:.78rem;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.07em;margin-bottom:8px}
.blog-card h2{font-size:1.35rem;line-height:1.2;margin:0 0 12px}
.blog-card h2 a{color:var(--ink);text-decoration:none}
.blog-card h2 a:hover{color:var(--red-600)}
.blog-card p{color:var(--muted);font-size:.96rem}
.blog-card .more{margin-top:auto}
.blog-pagination{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:34px}
.blog-pagination .page-numbers{min-width:42px;min-height:42px;padding:8px 12px;border:1px solid var(--line);display:inline-flex;align-items:center;justify-content:center;text-decoration:none;font-weight:700}
.blog-pagination .current{background:var(--ink);border-color:var(--ink);color:#fff}
.post-layout{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:42px;align-items:start}
.post-content{min-width:0}.post-content h1{font-size:clamp(2.1rem,4.6vw,3.6rem);line-height:1.08;margin:0 0 12px}
.post-meta{font-size:.88rem;color:var(--muted);margin-bottom:16px}
.post-featured{margin:0 0 28px}.post-featured img{width:100%;max-height:560px;object-fit:cover}
.post-prose{max-width:800px}.post-prose h2{font-size:clamp(1.55rem,3.6vw,2.2rem);margin:38px 0 14px}.post-prose h3{margin:28px 0 10px}
.post-prose p,.post-prose li{color:var(--text)}.post-prose blockquote{border-left:5px solid var(--red);background:var(--paper);padding:18px 22px;margin:24px 0}
.post-sidebar{min-width:0;align-self:stretch}.emergency-box{position:sticky;top:calc(var(--header-h) + 24px);background:var(--ink);color:#d5d6da;padding:24px 22px;border-top:5px solid var(--red);box-shadow:var(--shadow);margin-bottom:22px}
.emergency-box h2{font-size:1.55rem;color:#fff;margin:8px 0 12px}.emergency-box p{font-size:.92rem;color:#c8c9ce}.emergency-box .eyebrow{color:var(--red-on-dark)}
.emergency-box__phone{display:block;color:#fff;text-decoration:none;font:700 1.45rem/1.2 var(--display);margin:16px 0}.emergency-box .btn{width:100%;color:#fff}
.blog-sidebar-card{border:1px solid var(--line);padding:20px;margin-top:18px}.blog-sidebar-card h3{font-size:1rem;text-transform:uppercase;letter-spacing:.08em}
.blog-sidebar-links{list-style:none;margin:0;padding:0}.blog-sidebar-links li{border-bottom:1px solid var(--line)}.blog-sidebar-links li:last-child{border:0}.blog-sidebar-links a{display:block;padding:10px 0;color:var(--ink);text-decoration:none;font-weight:600}.blog-sidebar-links a:hover{color:var(--red-600)}
.post-bottom-cta{margin-top:36px}
/* Combined hover/focus area and visible red chevron match source menu interactions. */
.nav__row:has(> .nav__toggle:hover) > .nav__link,.nav__row:has(> .nav__link:hover) > .nav__toggle,.nav__item:focus-within > .nav__row > .nav__toggle{color:var(--red-600)}
.nav__toggle .ico{display:block;opacity:1;visibility:visible;color:currentColor;stroke:currentColor}
@media(min-width:1200px){.nav__row:hover > .nav__link,.nav__row:hover > .nav__toggle,.nav__item:focus-within > .nav__row > .nav__link,.nav__item:focus-within > .nav__row > .nav__toggle{color:var(--red-600)}.has-mega:hover > .mega,.has-mega:focus-within > .mega{opacity:1;visibility:visible;transform:translate(-50%,0);transition:opacity .16s ease,transform .16s ease,visibility 0s}.has-mega:hover > .nav__row .nav__toggle .ico,.has-mega:focus-within > .nav__row .nav__toggle .ico{transform:rotate(180deg)}}
@media(max-width:1199px){.nav__row:has(> .nav__toggle:hover) > .nav__toggle{color:var(--red-600)}.nav__toggle .ico{width:20px;height:20px}}
@media(max-width:900px){.blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.post-layout{grid-template-columns:minmax(0,1fr) 280px;gap:24px}.blog-hero__inner{grid-template-columns:1fr 220px}}
@media(max-width:700px){.blog-grid{grid-template-columns:1fr}.post-layout{grid-template-columns:1fr}.emergency-box{position:static;top:auto}.blog-hero__inner{grid-template-columns:1fr}.blog-hero__logo{justify-self:start;max-width:240px}.blog-section,.single-section{padding:42px 0}}


/* FINAL NAV ICON FALLBACK: CSS chevrons are independent of inline SVG rendering. */
.header .nav__row > .nav__toggle {
  position: relative !important;
  display: inline-flex !important;
  flex: 0 0 30px !important;
  width: 30px !important;
  min-width: 30px !important;
  height: 36px !important;
  padding: 0 !important;
  margin: 0 !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: visible !important;
  opacity: 1 !important;
  visibility: visible !important;
  color: var(--ink, #141416) !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
  line-height: 1 !important;
}
.header .nav__row > .nav__toggle > svg,
.header .nav__row > .nav__toggle > .ico {
  display: none !important;
}
.header .nav__row > .nav__toggle::after {
  content: "" !important;
  display: block !important;
  width: 7px !important;
  height: 7px !important;
  flex: 0 0 7px !important;
  border: 0 !important;
  border-right: 2px solid currentColor !important;
  border-bottom: 2px solid currentColor !important;
  background: transparent !important;
  transform: translateY(-2px) rotate(45deg);
  transform-origin: center;
  transition: transform .18s ease, color .18s ease;
  pointer-events: none;
  opacity: 1 !important;
  visibility: visible !important;
}
.header .nav__row:hover > .nav__link,
.header .nav__row:hover > .nav__toggle,
.header .nav__row:focus-within > .nav__link,
.header .nav__row:focus-within > .nav__toggle,
.header .nav__row > .nav__toggle:hover,
.header .nav__row > .nav__toggle:focus-visible,
.header .nav__item.is-hover > .nav__row > .nav__toggle,
.header .nav__item.is-open > .nav__row > .nav__toggle {
  color: var(--red-600, #b9141a) !important;
}
.header .nav__row > .nav__toggle[aria-expanded="true"]::after,
.header .nav__item.is-hover > .nav__row > .nav__toggle::after,
.header .nav__item.is-open > .nav__row > .nav__toggle::after {
  transform: translateY(2px) rotate(225deg);
}
@media (min-width: 1200px) {
  .header .nav__row { gap: 0 !important; }
  .header .nav__row > .nav__link { flex: 0 1 auto !important; }
  .header .nav__row > .nav__toggle { flex-basis: 22px !important; width: 22px !important; min-width: 22px !important; height: 34px !important; }
}
@media (max-width: 1199px) {
  .header .nav__row > .nav__toggle { flex-basis: 48px !important; width: 48px !important; min-width: 48px !important; height: 48px !important; }
}
@media (prefers-reduced-motion: reduce) {
  .header .nav__row > .nav__toggle::after { transition: none; }
}
