/*
Theme Name: HVAC Repair Huntsville Blog
Theme URI: https://www.hvacrepairhuntsville.com/
Description: Kadence child theme for the HVAC Repair Huntsville blog, based on the supplied homepage HTML and stylesheet.
Author: Loyal Web Solutions
Version: 1.0.0
Template: kadence
Text Domain: hvac-repair-huntsville-blog
*/

/* Parent theme is loaded by functions.php. Source design tokens and styles follow. */
@import url("assets/css/source-style.css");

/* Blog layout extensions */
.blog-hero { background: linear-gradient(135deg, #f3f6fa 0%, #e8f1fc 100%); border-bottom: 1px solid #e1e6ee; padding: 42px 0 36px; }
.blog-hero .eyebrow { color: #c2410c; }
.blog-hero h1 { margin-bottom: .45rem; }
.blog-hero p { max-width: 760px; margin-bottom: 0; color: #586274; }
.blog-main { padding: 44px 0 64px; }
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.post-grid { display: grid; grid-template-columns: repeat(1, minmax(0,1fr)); gap: 24px; }
.post-card { background: #fff; border: 1px solid #e1e6ee; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(11,37,69,.08); display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s, transform .2s; }
.post-card:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(11,37,69,.13); }
.post-card__image { display:block; aspect-ratio: 16/9; overflow:hidden; background:#e9eff6; }
.post-card__image img { width:100%; height:100%; object-fit:cover; }
.post-card__body { padding: 20px; display:flex; flex-direction:column; flex:1; }
.post-card__meta { color:#586274; font-size:.84rem; display:flex; flex-wrap:wrap; gap:8px 14px; margin-bottom:10px; }
.post-card h2 { font-size:1.28rem; line-height:1.3; margin:0 0 .6rem; }
.post-card h2 a { color:#0b2545; text-decoration:none; }
.post-card h2 a:hover { color:#1565c0; }
.post-card__excerpt { color:#586274; font-size:.96rem; margin-bottom:1rem; }
.post-card__more { margin-top:auto; font-weight:700; text-decoration:none; color:#b23b0a; display:inline-flex; gap:8px; align-items:center; }
.blog-sidebar > * + * { margin-top:22px; }
.blog-side-call { position:sticky; top:110px; background:#0b2545; color:#cfd9ea; border-radius:14px; padding:24px 21px; box-shadow:0 16px 40px rgba(11,37,69,.13); border-top:5px solid #f26b1d; }
.blog-side-call h2 { color:#fff; font-size:1.35rem; margin:0 0 .55rem; }
.blog-side-call p { color:#cfd9ea; font-size:.94rem; }
.blog-side-call .btn { width:100%; white-space:normal; }
.blog-side-call .side-note { color:#aebbd0; font-size:.82rem; margin:12px 0 0; }
.blog-side-box { border:1px solid #e1e6ee; border-radius:14px; padding:20px; background:#fff; }
.blog-side-box h2 { font-size:1rem; margin:0 0 12px; }
.blog-side-box ul { list-style:none; margin:0; padding:0; }
.blog-side-box li { border-bottom:1px solid #e1e6ee; padding:8px 0; }
.blog-side-box li:last-child { border-bottom:0; }
.blog-side-box a { color:#0b2545; text-decoration:none; font-weight:600; }
.blog-side-box a:hover { color:#1565c0; }
.blog-single__content { min-width:0; }
.blog-single__content .entry-content { font-size:1.06rem; line-height:1.8; }
.blog-single__content .entry-content h2, .blog-single__content .entry-content h3 { margin-top:1.5em; }
.blog-single__content .featured-image { margin:0 0 26px; border-radius:14px; overflow:hidden; }
.blog-single__content .featured-image img { width:100%; height:auto; }
.blog-single__content .entry-content img { height:auto; border-radius:8px; }
.blog-single__content .post-meta { color:#586274; font-size:.9rem; margin-bottom:20px; }
.blog-pagination { margin-top:34px; }
.blog-pagination .page-numbers { display:inline-flex; align-items:center; justify-content:center; min-width:42px; min-height:42px; padding:8px 12px; margin:0 4px 4px 0; border:1px solid #cdd5e1; border-radius:8px; text-decoration:none; color:#0b2545; }
.blog-pagination .current { background:#0b2545; color:#fff; border-color:#0b2545; }
.blog-empty { border:1px dashed #cdd5e1; padding:28px; border-radius:14px; background:#f3f6fa; }
.blog-crumbs { font-size:.86rem; margin-bottom:16px; color:#586274; }
.blog-crumbs a { color:#b23b0a; text-decoration:none; }
.blog-nav-links { display:flex; justify-content:space-between; gap:16px; margin:32px 0; padding-top:20px; border-top:1px solid #e1e6ee; }
.blog-nav-links a { font-weight:700; text-decoration:none; }
@media (min-width:650px) { .post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (min-width:1024px) {
  .blog-grid { grid-template-columns:minmax(0,1fr) 310px; align-items:start; gap:36px; }
  .post-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (min-width:1200px) {
  .nav { margin-left:auto; }
  .nav__list { display:flex; align-items:center; gap:.1rem; }
  .nav__item { border:0; position:static; }
  .nav__row { gap:0; }
  .nav__link { padding:.55rem .5rem; font:600 .95rem/1.2 var(--sans); white-space:nowrap; position:relative; color:var(--navy); }
  .nav__link:hover, .nav__item:hover > .nav__row .nav__link, .nav__item:focus-within > .nav__row .nav__link { color:var(--blue); }
  .nav__toggle { width:30px; height:34px; padding:0; border:0; border-radius:4px; background:transparent; color:var(--navy); display:inline-flex; align-items:center; justify-content:center; cursor:pointer; }
  .nav__toggle .ico { display:none !important; }
  .nav__toggle::after { content:""; display:block; width:7px; height:7px; border-right:2px solid currentColor; border-bottom:2px solid currentColor; transform:translateY(-2px) rotate(45deg); transition:transform .18s,color .18s; pointer-events:none; }
  .nav__item:hover > .nav__row .nav__toggle, .nav__item:focus-within > .nav__row .nav__toggle, .nav__toggle[aria-expanded="true"] { color:var(--blue); }
  .nav__toggle[aria-expanded="true"]::after { transform:translateY(2px) rotate(225deg); }
  .has-mega { position:static; }
  .mega { display:block; position:absolute; top:100%; left:50%; transform:translate(-50%,10px); margin-top:0; padding:1.4rem 1.6rem 1.1rem; background:#fff; border:1px solid var(--line); border-top:4px solid var(--orange); box-shadow:var(--shadow); min-width:440px; max-width:calc(100vw - 32px); opacity:0; visibility:hidden; transition:opacity .16s ease,transform .16s ease,visibility 0s linear .16s; z-index:120; border-radius:0 0 var(--r-l) var(--r-l); }
  .mega::before { content:""; position:absolute; left:0; right:0; top:-32px; height:32px; }
  .mega--3 { min-width:760px; }
  .mega__cols { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem 2rem; }
  .has-mega:hover > .mega, .has-mega:focus-within > .mega, .has-mega.is-open > .mega, .has-mega.is-hover > .mega { opacity:1; visibility:visible; transform:translate(-50%,0); transition:opacity .16s ease,transform .16s ease,visibility 0s; }
  .nav__item.has-mega > .nav__row { display:flex; align-items:center; }
  .nav__item.has-mega > .nav__row > .nav__link { flex:0 1 auto; }
  .nav__item.has-mega > .nav__row > .nav__toggle { flex:0 0 30px; }
}
@media (max-width:1199px) {
  .nav__item.has-mega > .nav__row > .nav__toggle { min-width:48px; min-height:48px; }
  .nav__item.has-mega > .nav__row > .nav__toggle .ico { display:block !important; width:20px; height:20px; }
}
@media (max-width:767px) {
  body { padding-bottom:calc(78px + env(safe-area-inset-bottom)); }
  .blog-main { padding:28px 0 44px; }
  .blog-hero { padding:30px 0 26px; }
  .blog-side-call { position:static; }
  .blog-nav-links { flex-direction:column; }
}
