/* ============================================================
   HouseFixWise Premium Stylesheet v2.0
   Design system converted from v0 (Next.js/Tailwind/shadcn)
   to WordPress-compatible CSS.
   ============================================================ */

/* ------------------------------------------------------------
   1. CSS VARIABLES (Design Tokens)
   ------------------------------------------------------------ */
:root {
    /* Colors */
    --hfw-navy:          #1d3557;
    --hfw-navy-dark:     #152840;
    --hfw-navy-mid:      #2d5a8e;
    --hfw-amber:         #d4922a;
    --hfw-amber-light:   #e8a83e;
    --hfw-amber-pale:    rgba(212,146,42,0.10);
    --hfw-amber-border:  rgba(212,146,42,0.20);

    --hfw-bg:            #f8f9fb;
    --hfw-card:          #ffffff;
    --hfw-secondary:     #f3f4f6;
    --hfw-muted:         #eff0f2;

    --hfw-text:          #1f2937;
    --hfw-text-muted:    #6b7280;
    --hfw-text-light:    #9ca3af;

    --hfw-border:        #e5e7eb;
    --hfw-border-light:  rgba(229,231,235,0.50);

    /* Navy tints */
    --hfw-navy-5:        rgba(29,53,87,0.05);
    --hfw-navy-10:       rgba(29,53,87,0.10);
    --hfw-navy-20:       rgba(29,53,87,0.20);

    /* Shadows */
    --hfw-shadow-sm:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --hfw-shadow-md:     0 4px 6px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.06);
    --hfw-shadow-lg:     0 10px 15px rgba(0,0,0,0.07), 0 4px 6px rgba(0,0,0,0.05);
    --hfw-shadow-xl:     0 20px 25px rgba(0,0,0,0.08), 0 8px 10px rgba(0,0,0,0.06);
    --hfw-shadow-2xl:    0 25px 50px rgba(0,0,0,0.12);

    /* Spacing */
    --hfw-radius:        12px;
    --hfw-radius-sm:     8px;
    --hfw-radius-lg:     16px;
    --hfw-radius-xl:     20px;
    --hfw-radius-full:   9999px;

    /* Container */
    --hfw-container:     1280px;
    --hfw-container-px:  16px;

    /* Transitions */
    --hfw-transition:    0.2s ease;
    --hfw-transition-md: 0.3s ease;
}

/* ------------------------------------------------------------
   2. RESET & BASE
   ------------------------------------------------------------ */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--hfw-text);
    background-color: var(--hfw-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--hfw-transition);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button, input, select, textarea {
    font: inherit;
    border: none;
    outline: none;
    background: none;
    cursor: pointer;
}

/* Remove default WordPress margins */
.entry-content p,
.entry-content ul,
.entry-content ol {
    margin-bottom: 1em;
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--hfw-muted); }
::-webkit-scrollbar-thumb { background: var(--hfw-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--hfw-text-muted); }

/* ------------------------------------------------------------
   3. TYPOGRAPHY
   ------------------------------------------------------------ */
.hfw-serif {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.25;
    font-weight: 700;
    color: var(--hfw-text);
}

/* ------------------------------------------------------------
   4. LAYOUT UTILITIES
   ------------------------------------------------------------ */
.hfw-container {
    width: 100%;
    max-width: var(--hfw-container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--hfw-container-px);
    padding-right: var(--hfw-container-px);
}

@media (min-width: 640px) {
    :root { --hfw-container-px: 24px; }
}
@media (min-width: 1024px) {
    :root { --hfw-container-px: 32px; }
}

/* ------------------------------------------------------------
   5. BADGE COMPONENT
   ------------------------------------------------------------ */
.hfw-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--hfw-radius-full);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
    border: 1px solid transparent;
}

.hfw-badge--navy {
    background-color: var(--hfw-navy-10);
    color: var(--hfw-navy);
    border-color: var(--hfw-navy-20);
}

.hfw-badge--amber {
    background-color: var(--hfw-amber-pale);
    color: #7c4a00;
    border-color: var(--hfw-amber-border);
}

.hfw-badge--category {
    font-size: 12px;
    padding: 2px 10px;
}

/* ------------------------------------------------------------
   6. BUTTON COMPONENTS
   ------------------------------------------------------------ */
.hfw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--hfw-radius);
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all var(--hfw-transition);
    border: 2px solid transparent;
    white-space: nowrap;
}

.hfw-btn--primary {
    background-color: var(--hfw-navy);
    color: #ffffff;
    border-color: var(--hfw-navy);
}
.hfw-btn--primary:hover {
    background-color: var(--hfw-navy-dark);
    border-color: var(--hfw-navy-dark);
    color: #ffffff;
}

.hfw-btn--amber {
    background-color: var(--hfw-amber);
    color: #ffffff;
    border-color: var(--hfw-amber);
}
.hfw-btn--amber:hover {
    background-color: #b87a20;
    border-color: #b87a20;
    color: #ffffff;
}

.hfw-btn--outline {
    background-color: transparent;
    color: var(--hfw-navy);
    border-color: var(--hfw-border);
}
.hfw-btn--outline:hover {
    background-color: var(--hfw-secondary);
    border-color: var(--hfw-navy-20);
    color: var(--hfw-navy);
}

.hfw-btn--ghost-white {
    background-color: rgba(255,255,255,0.10);
    color: #ffffff;
    border-color: rgba(255,255,255,0.20);
}
.hfw-btn--ghost-white:hover {
    background-color: rgba(255,255,255,0.20);
    color: #ffffff;
}

.hfw-btn--lg {
    padding: 14px 28px;
    font-size: 16px;
    border-radius: var(--hfw-radius);
}

.hfw-btn--icon {
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: var(--hfw-radius-full);
}

/* ------------------------------------------------------------
   7. CARD COMPONENT
   ------------------------------------------------------------ */
.hfw-card {
    background-color: var(--hfw-card);
    border: 1px solid var(--hfw-border-light);
    border-radius: var(--hfw-radius-lg);
    box-shadow: var(--hfw-shadow-sm);
    transition: box-shadow var(--hfw-transition-md), border-color var(--hfw-transition-md), transform var(--hfw-transition-md);
    overflow: hidden;
}

.hfw-card:hover {
    box-shadow: var(--hfw-shadow-lg);
    border-color: rgba(29,53,87,0.20);
}

.hfw-card--hover-lift:hover {
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
   8. HEADER
   ------------------------------------------------------------ */
.hfw-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
    border-bottom: 1px solid rgba(229,231,235,0.40);
    background-color: rgba(248,249,251,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.hfw-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

/* Logo */
.hfw-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.hfw-logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background-color: var(--hfw-navy);
    border-radius: var(--hfw-radius-sm);
    flex-shrink: 0;
}

.hfw-logo__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-logo__text {
    font-size: 18px;
    font-weight: 700;
    color: var(--hfw-text);
    letter-spacing: -0.02em;
    line-height: 1;
}

.hfw-logo__text span {
    color: var(--hfw-amber);
}

/* Desktop nav */
.hfw-nav {
    display: none;
    align-items: center;
    gap: 2px;
}

@media (min-width: 768px) {
    .hfw-nav { display: flex; }
}

.hfw-nav__link {
    padding: 8px 14px;
    border-radius: var(--hfw-radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--hfw-text-muted);
    transition: background-color var(--hfw-transition), color var(--hfw-transition);
}

.hfw-nav__link:hover,
.hfw-nav__link.current-menu-item,
.hfw-nav__link.current_page_item {
    background-color: var(--hfw-secondary);
    color: var(--hfw-text);
}

/* Header CTA */
.hfw-header__cta {
    display: none;
    align-items: center;
    gap: 12px;
}

@media (min-width: 768px) {
    .hfw-header__cta { display: flex; }
}

/* Mobile menu toggle */
.hfw-header__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--hfw-radius-sm);
    color: var(--hfw-text);
    cursor: pointer;
    transition: background-color var(--hfw-transition);
}

.hfw-header__mobile-toggle:hover {
    background-color: var(--hfw-secondary);
}

.hfw-header__mobile-toggle svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (min-width: 768px) {
    .hfw-header__mobile-toggle { display: none; }
}

/* Mobile menu drawer */
.hfw-mobile-menu {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}

.hfw-mobile-menu.is-open {
    display: block;
}

.hfw-mobile-menu__overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0,0,0,0.40);
}

.hfw-mobile-menu__panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 300px;
    background-color: var(--hfw-card);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
}

.hfw-mobile-menu__close {
    align-self: flex-end;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--hfw-radius-sm);
    color: var(--hfw-text-muted);
    cursor: pointer;
    transition: background-color var(--hfw-transition);
    margin-bottom: 16px;
}

.hfw-mobile-menu__close:hover {
    background-color: var(--hfw-secondary);
}

.hfw-mobile-menu__close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.hfw-mobile-menu__link {
    display: block;
    padding: 12px 14px;
    border-radius: var(--hfw-radius-sm);
    font-size: 16px;
    font-weight: 500;
    color: var(--hfw-text);
    transition: background-color var(--hfw-transition);
}

.hfw-mobile-menu__link:hover {
    background-color: var(--hfw-secondary);
}

.hfw-mobile-menu__divider {
    height: 1px;
    background-color: var(--hfw-border);
    margin: 8px 0;
}

/* ------------------------------------------------------------
   9. HERO SECTION
   ------------------------------------------------------------ */
.hfw-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--hfw-bg);
    padding-top: 64px;
    padding-bottom: 80px;
}

@media (min-width: 768px) {
    .hfw-hero {
        padding-top: 88px;
        padding-bottom: 104px;
    }
}

.hfw-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 20%, rgba(29,53,87,0.05), transparent 50%);
    pointer-events: none;
}

.hfw-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 70% 80%, rgba(212,146,42,0.04), transparent 50%);
    pointer-events: none;
}

.hfw-hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hfw-hero__inner {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.hfw-hero__badge {
    margin-bottom: 24px;
}

.hfw-hero__headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--hfw-text);
    margin-bottom: 24px;
}

.hfw-hero__headline span {
    color: var(--hfw-navy);
}

.hfw-hero__sub {
    font-size: 18px;
    line-height: 1.7;
    color: var(--hfw-text-muted);
    max-width: 540px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .hfw-hero__sub { font-size: 20px; }
}

/* Search bar */
.hfw-search-bar {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

@media (min-width: 560px) {
    .hfw-search-bar { flex-direction: row; }
}

.hfw-search-bar__wrap {
    position: relative;
    flex: 1;
}

.hfw-search-bar__icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    color: var(--hfw-text-muted);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.hfw-search-bar__input {
    width: 100%;
    height: 56px;
    padding: 0 16px 0 48px;
    background-color: var(--hfw-card);
    border: 1.5px solid var(--hfw-border);
    border-radius: var(--hfw-radius);
    font-size: 15px;
    color: var(--hfw-text);
    box-shadow: var(--hfw-shadow-sm);
    transition: box-shadow var(--hfw-transition), border-color var(--hfw-transition);
}

.hfw-search-bar__input::placeholder { color: var(--hfw-text-light); }

.hfw-search-bar__input:focus {
    border-color: var(--hfw-navy-mid);
    box-shadow: var(--hfw-shadow-md), 0 0 0 3px var(--hfw-navy-10);
}

.hfw-search-bar__btn {
    height: 56px;
    padding: 0 24px;
    flex-shrink: 0;
}

/* Search chips */
.hfw-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.hfw-chips__label {
    font-size: 13px;
    color: var(--hfw-text-muted);
}

.hfw-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--hfw-radius-full);
    border: 1.5px solid var(--hfw-border);
    background-color: var(--hfw-card);
    font-size: 13px;
    font-weight: 500;
    color: var(--hfw-text);
    cursor: pointer;
    transition: all var(--hfw-transition);
}

.hfw-chip:hover {
    border-color: rgba(29,53,87,0.40);
    background-color: var(--hfw-secondary);
    color: var(--hfw-navy);
}

/* Hero CTA buttons */
.hfw-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

/* AI Chat Preview Card */
.hfw-chat-preview {
    background-color: var(--hfw-card);
    border: 1px solid var(--hfw-border-light);
    border-radius: var(--hfw-radius-xl);
    box-shadow: var(--hfw-shadow-xl);
    overflow: hidden;
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hfw-chat-preview { margin: 0 0 0 auto; }
}

.hfw-chat-preview__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    border-bottom: 1px solid var(--hfw-border);
    background-color: var(--hfw-navy-5);
}

.hfw-chat-preview__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--hfw-radius-full);
    background-color: var(--hfw-navy);
    flex-shrink: 0;
}

.hfw-chat-preview__avatar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-chat-preview__name {
    font-size: 15px;
    font-weight: 600;
    color: var(--hfw-text);
    line-height: 1.3;
}

.hfw-chat-preview__status {
    font-size: 13px;
    color: var(--hfw-text-muted);
}

.hfw-chat-preview__body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Chat bubbles */
.hfw-bubble {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    max-width: 85%;
}

.hfw-bubble--bot {
    align-self: flex-start;
}

.hfw-bubble--user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.hfw-bubble__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--hfw-radius-full);
    flex-shrink: 0;
}

.hfw-bubble__avatar--bot {
    background-color: var(--hfw-navy);
}

.hfw-bubble__avatar--user {
    background-color: var(--hfw-secondary);
}

.hfw-bubble__avatar svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-bubble__avatar--bot svg { stroke: #ffffff; }
.hfw-bubble__avatar--user svg { stroke: var(--hfw-text-muted); }

.hfw-bubble__text {
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
    line-height: 1.5;
}

.hfw-bubble__text--bot {
    background-color: var(--hfw-secondary);
    color: var(--hfw-text);
    border-bottom-left-radius: 4px;
}

.hfw-bubble__text--user {
    background-color: var(--hfw-navy);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

/* Typing dots */
.hfw-typing {
    display: flex;
    gap: 4px;
    padding: 12px 16px;
    background-color: var(--hfw-secondary);
    border-radius: 18px;
    border-bottom-left-radius: 4px;
}

.hfw-typing__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--hfw-text-muted);
    animation: hfw-bounce 1.2s infinite ease-in-out;
}

.hfw-typing__dot:nth-child(1) { animation-delay: -0.32s; }
.hfw-typing__dot:nth-child(2) { animation-delay: -0.16s; }
.hfw-typing__dot:nth-child(3) { animation-delay: 0s; }

@keyframes hfw-bounce {
    0%, 80%, 100% { transform: scale(0.8); opacity: 0.5; }
    40% { transform: scale(1.1); opacity: 1; }
}

.hfw-chat-preview__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--hfw-border);
    background-color: var(--hfw-card);
}

/* ------------------------------------------------------------
   10. TRUST CARDS SECTION
   ------------------------------------------------------------ */
.hfw-trust {
    padding: 56px 0;
    border-top: 1px solid var(--hfw-border-light);
    border-bottom: 1px solid var(--hfw-border-light);
    background-color: rgba(243,244,246,0.60);
}

@media (min-width: 768px) {
    .hfw-trust { padding: 72px 0; }
}

.hfw-trust__grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .hfw-trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .hfw-trust__grid { grid-template-columns: repeat(4, 1fr); }
}

.hfw-trust-card {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
}

.hfw-trust-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--hfw-radius);
    background-color: var(--hfw-navy-10);
    flex-shrink: 0;
}

.hfw-trust-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--hfw-navy);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-trust-card__title {
    font-size: 15px;
    font-weight: 600;
    color: var(--hfw-text);
    margin-bottom: 4px;
}

.hfw-trust-card__desc {
    font-size: 14px;
    line-height: 1.5;
    color: var(--hfw-text-muted);
}

/* ------------------------------------------------------------
   11. SECTION HEADER (shared)
   ------------------------------------------------------------ */
.hfw-section-header {
    margin-bottom: 48px;
    text-align: center;
}

.hfw-section-header--left {
    text-align: left;
}

.hfw-section-header__badge {
    margin-bottom: 16px;
}

.hfw-section-header__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(26px, 3.5vw, 40px);
    font-weight: 800;
    color: var(--hfw-text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.hfw-section-header__sub {
    font-size: 17px;
    line-height: 1.6;
    color: var(--hfw-text-muted);
    max-width: 640px;
    margin: 0 auto;
}

.hfw-section-header--left .hfw-section-header__sub {
    margin: 0;
}

/* ------------------------------------------------------------
   12. CATEGORY GRID SECTION
   ------------------------------------------------------------ */
.hfw-categories {
    background-color: var(--hfw-bg);
    padding: 72px 0;
}

@media (min-width: 768px) {
    .hfw-categories { padding: 96px 0; }
}

.hfw-category-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .hfw-category-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .hfw-category-grid { grid-template-columns: repeat(4, 1fr); }
}

.hfw-category-card {
    display: block;
    height: 100%;
    text-decoration: none;
}

.hfw-category-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
}

.hfw-category-card__icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--hfw-radius);
    margin-bottom: 16px;
    flex-shrink: 0;
}

.hfw-category-card__icon-wrap svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-category-card__title {
    font-size: 17px;
    font-weight: 600;
    color: var(--hfw-text);
    margin-bottom: 8px;
    transition: color var(--hfw-transition);
}

.hfw-category-card:hover .hfw-category-card__title {
    color: var(--hfw-navy);
}

.hfw-category-card__desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--hfw-text-muted);
    flex: 1;
    margin-bottom: 16px;
}

.hfw-category-card__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hfw-navy);
}

.hfw-category-card__link svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--hfw-transition);
}

.hfw-category-card:hover .hfw-category-card__link svg {
    transform: translateX(4px);
}

/* Category icon color themes */
.hfw-icon--blue   { background-color: rgba(59,130,246,0.10); }
.hfw-icon--blue svg   { stroke: #2563eb; }
.hfw-icon--cyan   { background-color: rgba(6,182,212,0.10); }
.hfw-icon--cyan svg   { stroke: #0891b2; }
.hfw-icon--amber  { background-color: rgba(245,158,11,0.10); }
.hfw-icon--amber svg  { stroke: #b45309; }
.hfw-icon--yellow { background-color: rgba(234,179,8,0.10); }
.hfw-icon--yellow svg { stroke: #92400e; }
.hfw-icon--indigo { background-color: rgba(99,102,241,0.10); }
.hfw-icon--indigo svg { stroke: #4338ca; }
.hfw-icon--slate  { background-color: rgba(100,116,139,0.10); }
.hfw-icon--slate svg  { stroke: #475569; }
.hfw-icon--green  { background-color: rgba(34,197,94,0.10); }
.hfw-icon--green svg  { stroke: #15803d; }
.hfw-icon--rose   { background-color: rgba(244,63,94,0.10); }
.hfw-icon--rose svg   { stroke: #be123c; }

/* ------------------------------------------------------------
   13. AI ASSISTANT SECTION
   ------------------------------------------------------------ */
.hfw-ai-section {
    background-color: var(--hfw-navy-5);
    padding: 72px 0;
}

@media (min-width: 768px) {
    .hfw-ai-section { padding: 96px 0; }
}

.hfw-ai-section__inner {
    display: grid;
    gap: 48px;
    align-items: center;
}

@media (min-width: 1024px) {
    .hfw-ai-section__inner {
        grid-template-columns: 1fr 1fr;
        gap: 64px;
    }
}

.hfw-ai-section__bullet-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
    color: var(--hfw-text-muted);
    font-size: 15px;
}

.hfw-ai-section__bullet {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hfw-ai-section__bullet-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--hfw-navy-20);
    flex-shrink: 0;
    margin-top: 2px;
}

.hfw-ai-section__bullet-dot::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--hfw-navy);
}

.hfw-ai-section__notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 16px;
    border-radius: var(--hfw-radius);
    border: 1px solid #fde68a;
    background-color: #fffbeb;
    margin-top: 24px;
}

.hfw-ai-section__notice svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #d97706;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    margin-top: 1px;
}

.hfw-ai-section__notice p {
    font-size: 13px;
    color: #92400e;
    line-height: 1.5;
}

/* AI Chat interface */
.hfw-chat-interface {
    background-color: var(--hfw-card);
    border: 1px solid var(--hfw-border-light);
    border-radius: var(--hfw-radius-xl);
    box-shadow: var(--hfw-shadow-2xl);
    overflow: hidden;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.hfw-chat-interface__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background-color: var(--hfw-navy);
}

.hfw-chat-interface__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.20);
    flex-shrink: 0;
}

.hfw-chat-interface__avatar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-chat-interface__name {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
}

.hfw-chat-interface__online {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255,255,255,0.75);
}

.hfw-chat-interface__online::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #4ade80;
    display: inline-block;
}

.hfw-chat-interface__messages {
    max-height: 380px;
    overflow-y: auto;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hfw-chat-interface__footer {
    padding: 16px 24px;
    border-top: 1px solid var(--hfw-border);
    background-color: rgba(243,244,246,0.50);
    display: flex;
    gap: 8px;
}

.hfw-chat-interface__footer .hfw-btn {
    flex: 1;
    font-size: 13px;
    padding: 10px 16px;
}

/* ------------------------------------------------------------
   14. COST CALCULATOR SECTION
   ------------------------------------------------------------ */
.hfw-calculator {
    background-color: var(--hfw-bg);
    padding: 72px 0;
}

@media (min-width: 768px) {
    .hfw-calculator { padding: 96px 0; }
}

.hfw-calc-card {
    max-width: 860px;
    margin: 0 auto;
}

.hfw-calc-card__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px 32px;
    border-bottom: 1px solid var(--hfw-border);
    background-color: rgba(243,244,246,0.50);
}

.hfw-calc-card__header-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--hfw-radius);
    background-color: var(--hfw-navy);
    flex-shrink: 0;
}

.hfw-calc-card__header-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-calc-card__header-title {
    font-size: 19px;
    font-weight: 700;
    color: var(--hfw-text);
}

.hfw-calc-card__header-sub {
    font-size: 14px;
    color: var(--hfw-text-muted);
}

.hfw-calc-card__body {
    padding: 32px;
}

.hfw-form-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .hfw-form-grid { grid-template-columns: repeat(2, 1fr); }
}

.hfw-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hfw-form-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--hfw-text);
}

.hfw-form-select {
    height: 48px;
    padding: 0 40px 0 14px;
    background-color: var(--hfw-card);
    border: 1.5px solid var(--hfw-border);
    border-radius: var(--hfw-radius);
    font-size: 15px;
    color: var(--hfw-text);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    transition: border-color var(--hfw-transition), box-shadow var(--hfw-transition);
    width: 100%;
}

.hfw-form-select:focus {
    border-color: var(--hfw-navy-mid);
    box-shadow: 0 0 0 3px var(--hfw-navy-10);
}

.hfw-calc-result {
    display: none;
    margin-top: 32px;
    padding: 24px;
    border-radius: var(--hfw-radius-lg);
    border: 1px solid #bbf7d0;
    background-color: #f0fdf4;
}

.hfw-calc-result.is-visible {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.hfw-calc-result__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #dcfce7;
    flex-shrink: 0;
}

.hfw-calc-result__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #16a34a;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-calc-result__title {
    font-size: 16px;
    font-weight: 600;
    color: #14532d;
    margin-bottom: 4px;
}

.hfw-calc-result__price {
    font-size: 32px;
    font-weight: 800;
    color: #15803d;
    margin-bottom: 12px;
}

.hfw-calc-result__notes {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.hfw-calc-result__note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #166534;
}

.hfw-calc-result__note svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

/* ------------------------------------------------------------
   15. FEATURED GUIDES SECTION
   ------------------------------------------------------------ */
.hfw-guides {
    border-top: 1px solid var(--hfw-border-light);
    background-color: rgba(243,244,246,0.60);
    padding: 72px 0;
}

@media (min-width: 768px) {
    .hfw-guides { padding: 96px 0; }
}

.hfw-guides__header-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 48px;
}

@media (min-width: 640px) {
    .hfw-guides__header-row {
        flex-direction: row;
        align-items: flex-end;
    }
}

.hfw-guides__view-all {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--hfw-navy);
    white-space: nowrap;
    transition: opacity var(--hfw-transition);
}

.hfw-guides__view-all:hover { opacity: 0.75; }

.hfw-guides__view-all svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--hfw-transition);
}

.hfw-guides__view-all:hover svg { transform: translateX(3px); }

.hfw-guide-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .hfw-guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .hfw-guide-grid { grid-template-columns: repeat(3, 1fr); }
}

.hfw-guide-card {
    display: block;
    height: 100%;
    text-decoration: none;
}

.hfw-guide-card__thumbnail {
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--hfw-secondary) 0%, var(--hfw-muted) 100%);
}

.hfw-guide-card__body {
    padding: 24px;
}

.hfw-guide-card__meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.hfw-guide-card__time {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--hfw-text-muted);
}

.hfw-guide-card__time svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.hfw-guide-card__title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--hfw-text);
    margin-bottom: 10px;
    transition: color var(--hfw-transition);
}

.hfw-guide-card:hover .hfw-guide-card__title {
    color: var(--hfw-navy);
}

.hfw-guide-card__excerpt {
    font-size: 14px;
    line-height: 1.6;
    color: var(--hfw-text-muted);
}

/* Guide category badge colors */
.hfw-badge--plumbing   { background-color: rgba(59,130,246,0.10);  color: #1d4ed8; }
.hfw-badge--hvac       { background-color: rgba(6,182,212,0.10);   color: #0e7490; }
.hfw-badge--roofing    { background-color: rgba(245,158,11,0.10);  color: #92400e; }
.hfw-badge--electrical { background-color: rgba(234,179,8,0.10);   color: #78350f; }
.hfw-badge--water      { background-color: rgba(244,63,94,0.10);   color: #9f1239; }
.hfw-badge--appliances { background-color: rgba(100,116,139,0.10); color: #334155; }

/* ------------------------------------------------------------
   16. SMART SEARCH / TABS SECTION
   ------------------------------------------------------------ */
.hfw-search-section {
    background-color: var(--hfw-bg);
    padding: 72px 0;
}

@media (min-width: 768px) {
    .hfw-search-section { padding: 96px 0; }
}

.hfw-tabs {
    max-width: 860px;
    margin: 0 auto;
}

.hfw-tabs__nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 32px;
}

@media (min-width: 480px) {
    .hfw-tabs__nav { grid-template-columns: repeat(4, 1fr); }
}

.hfw-tab-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: var(--hfw-radius);
    border: 1.5px solid var(--hfw-border);
    background-color: var(--hfw-card);
    font-size: 14px;
    font-weight: 500;
    color: var(--hfw-text-muted);
    cursor: pointer;
    transition: all var(--hfw-transition);
}

.hfw-tab-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-tab-btn:hover {
    border-color: var(--hfw-navy-20);
    color: var(--hfw-navy);
}

.hfw-tab-btn.is-active {
    background-color: var(--hfw-navy);
    border-color: var(--hfw-navy);
    color: #ffffff;
}

.hfw-tab-panel {
    display: none;
}

.hfw-tab-panel.is-active {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .hfw-tab-panel.is-active { grid-template-columns: repeat(2, 1fr); }
}

.hfw-search-result-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    text-decoration: none;
}

.hfw-search-result-card:hover .hfw-search-result-card__arrow {
    transform: translateX(4px);
    color: var(--hfw-navy);
}

.hfw-search-result-card:hover .hfw-search-result-card__title {
    color: var(--hfw-navy);
}

.hfw-search-result-card__title {
    font-size: 15px;
    font-weight: 500;
    color: var(--hfw-text);
    transition: color var(--hfw-transition);
    margin-top: 6px;
}

.hfw-search-result-card__meta {
    font-size: 13px;
    color: var(--hfw-text-muted);
    margin-top: 4px;
}

.hfw-search-result-card__range {
    font-size: 14px;
    font-weight: 700;
    color: var(--hfw-amber);
    margin-top: 4px;
}

.hfw-search-result-card__arrow {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--hfw-text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform var(--hfw-transition), stroke var(--hfw-transition);
}

.hfw-badge--critical {
    background-color: #fee2e2;
    color: #b91c1c;
    border: none;
}

.hfw-badge--high {
    background-color: #fef3c7;
    color: #b45309;
    border: none;
}

/* ------------------------------------------------------------
   17. LOCAL GUIDES SECTION
   ------------------------------------------------------------ */
.hfw-local {
    border-top: 1px solid var(--hfw-border-light);
    background-color: rgba(243,244,246,0.60);
    padding: 72px 0;
}

@media (min-width: 768px) {
    .hfw-local { padding: 96px 0; }
}

.hfw-local-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
}

@media (min-width: 560px) {
    .hfw-local-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .hfw-local-grid { grid-template-columns: repeat(3, 1fr); }
}

.hfw-local-card {
    display: block;
    height: 100%;
    text-decoration: none;
}

.hfw-local-card__inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 24px;
}

.hfw-local-card__top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.hfw-local-card__pin {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--hfw-navy-10);
    flex-shrink: 0;
}

.hfw-local-card__pin svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--hfw-navy);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-local-card__state {
    font-size: 12px;
    font-weight: 500;
    color: var(--hfw-text-muted);
    padding: 4px 10px;
    border: 1px solid var(--hfw-border);
    border-radius: var(--hfw-radius-full);
}

.hfw-local-card__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--hfw-text);
    margin-bottom: 8px;
    transition: color var(--hfw-transition);
}

.hfw-local-card:hover .hfw-local-card__title {
    color: var(--hfw-navy);
}

.hfw-local-card__desc {
    font-size: 14px;
    line-height: 1.55;
    color: var(--hfw-text-muted);
    flex: 1;
    margin-bottom: 16px;
}

.hfw-local-card__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hfw-local-card__cost {
    font-size: 15px;
    font-weight: 700;
    color: var(--hfw-amber);
}

.hfw-local-card__cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: var(--hfw-navy);
}

.hfw-local-card__cta svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--hfw-transition);
}

.hfw-local-card:hover .hfw-local-card__cta svg { transform: translateX(3px); }

/* ------------------------------------------------------------
   18. NEWSLETTER SECTION
   ------------------------------------------------------------ */
.hfw-newsletter {
    background-color: var(--hfw-navy);
    padding: 72px 0;
}

@media (min-width: 768px) {
    .hfw-newsletter { padding: 96px 0; }
}

.hfw-newsletter__inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.hfw-newsletter__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: var(--hfw-radius-lg);
    background-color: rgba(255,255,255,0.10);
    margin-bottom: 24px;
}

.hfw-newsletter__icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-newsletter__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(24px, 3.5vw, 36px);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hfw-newsletter__sub {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,0.75);
    margin-bottom: 32px;
}

.hfw-newsletter__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-content: center;
}

@media (min-width: 480px) {
    .hfw-newsletter__form { flex-direction: row; }
}

.hfw-newsletter__input {
    height: 56px;
    padding: 0 16px;
    border-radius: var(--hfw-radius);
    border: 1.5px solid rgba(255,255,255,0.20);
    background-color: rgba(255,255,255,0.10);
    color: #ffffff;
    font-size: 15px;
    width: 100%;
    transition: border-color var(--hfw-transition), background-color var(--hfw-transition);
}

@media (min-width: 480px) {
    .hfw-newsletter__input { width: 300px; }
}

.hfw-newsletter__input::placeholder { color: rgba(255,255,255,0.55); }

.hfw-newsletter__input:focus {
    border-color: rgba(255,255,255,0.50);
    background-color: rgba(255,255,255,0.15);
}

.hfw-newsletter__btn {
    height: 56px;
    flex-shrink: 0;
}

.hfw-newsletter__legal {
    margin-top: 16px;
    font-size: 13px;
    color: rgba(255,255,255,0.50);
}

.hfw-newsletter__success {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    border-radius: var(--hfw-radius-lg);
    background-color: rgba(74,222,128,0.20);
}

.hfw-newsletter__success.is-visible {
    display: flex;
}

.hfw-newsletter__success svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #4ade80;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-newsletter__success p {
    font-size: 17px;
    font-weight: 500;
    color: #ffffff;
}

/* ------------------------------------------------------------
   19. FOOTER
   ------------------------------------------------------------ */
.hfw-footer {
    border-top: 1px solid var(--hfw-border);
    background-color: var(--hfw-bg);
    padding: 56px 0 0;
}

.hfw-footer__grid {
    display: grid;
    gap: 32px;
    grid-template-columns: 1fr;
    margin-bottom: 48px;
}

@media (min-width: 560px) {
    .hfw-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .hfw-footer__grid { grid-template-columns: 1.6fr repeat(4, 1fr); }
}

.hfw-footer__brand-desc {
    margin-top: 16px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--hfw-text-muted);
    max-width: 280px;
}

.hfw-footer__col-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--hfw-text);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hfw-footer__links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hfw-footer__link {
    font-size: 14px;
    color: var(--hfw-text-muted);
    transition: color var(--hfw-transition);
}

.hfw-footer__link:hover {
    color: var(--hfw-text);
}

.hfw-footer__disclaimer {
    padding: 24px;
    border-radius: var(--hfw-radius-lg);
    border: 1px solid var(--hfw-border);
    background-color: rgba(243,244,246,0.50);
    margin-bottom: 32px;
}

.hfw-footer__disclaimer h5 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--hfw-text);
}

.hfw-footer__disclaimer p {
    font-size: 13px;
    line-height: 1.65;
    color: var(--hfw-text-muted);
}

.hfw-footer__bottom {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--hfw-border);
    padding: 24px 0;
}

@media (min-width: 560px) {
    .hfw-footer__bottom { flex-direction: row; }
}

.hfw-footer__copyright {
    font-size: 13px;
    color: var(--hfw-text-muted);
}

.hfw-footer__legal-links {
    display: flex;
    gap: 24px;
}

.hfw-footer__legal-link {
    font-size: 13px;
    color: var(--hfw-text-muted);
    transition: color var(--hfw-transition);
}

.hfw-footer__legal-link:hover {
    color: var(--hfw-text);
}

/* ------------------------------------------------------------
   20. FLOATING CHAT BUTTON
   ------------------------------------------------------------ */
.hfw-floating {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 16px;
}

.hfw-floating__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--hfw-amber);
    color: #ffffff;
    box-shadow: var(--hfw-shadow-xl);
    cursor: pointer;
    transition: all var(--hfw-transition-md);
    border: none;
}

.hfw-floating__btn:hover {
    background-color: #b87a20;
    transform: scale(1.07);
    box-shadow: var(--hfw-shadow-2xl);
}

.hfw-floating__btn.is-open {
    background-color: var(--hfw-secondary);
    color: var(--hfw-text-muted);
}

.hfw-floating__btn svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Floating chat window */
.hfw-floating-window {
    display: none;
    width: 350px;
    background-color: var(--hfw-card);
    border: 1px solid var(--hfw-border-light);
    border-radius: var(--hfw-radius-xl);
    box-shadow: var(--hfw-shadow-2xl);
    overflow: hidden;
}

@media (min-width: 480px) {
    .hfw-floating-window { width: 380px; }
}

.hfw-floating-window.is-open {
    display: block;
}

.hfw-floating-window__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background-color: var(--hfw-navy);
}

.hfw-floating-window__title-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.hfw-floating-window__avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.20);
    flex-shrink: 0;
}

.hfw-floating-window__avatar svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-floating-window__name {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

.hfw-floating-window__tagline {
    font-size: 12px;
    color: rgba(255,255,255,0.65);
}

.hfw-floating-window__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--hfw-radius-sm);
    background: none;
    color: rgba(255,255,255,0.65);
    cursor: pointer;
    transition: background-color var(--hfw-transition);
}

.hfw-floating-window__close:hover {
    background-color: rgba(255,255,255,0.10);
    color: #ffffff;
}

.hfw-floating-window__close svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
}

.hfw-floating-window__messages {
    height: 300px;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.hfw-floating-window__input-area {
    border-top: 1px solid var(--hfw-border);
    background-color: var(--hfw-card);
    padding: 16px;
}

.hfw-floating-window__input-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hfw-floating-window__input {
    flex: 1;
    height: 40px;
    padding: 0 14px;
    background-color: var(--hfw-secondary);
    border: 1.5px solid var(--hfw-border);
    border-radius: var(--hfw-radius-full);
    font-size: 14px;
    color: var(--hfw-text);
    transition: border-color var(--hfw-transition);
}

.hfw-floating-window__input::placeholder { color: var(--hfw-text-light); }

.hfw-floating-window__input:focus {
    border-color: var(--hfw-navy-mid);
}

.hfw-floating-window__send {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--hfw-navy);
    color: #ffffff;
    cursor: pointer;
    transition: background-color var(--hfw-transition);
    flex-shrink: 0;
}

.hfw-floating-window__send:hover {
    background-color: var(--hfw-navy-dark);
}

.hfw-floating-window__send svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-floating-window__legal {
    margin-top: 8px;
    text-align: center;
    font-size: 11px;
    color: var(--hfw-text-light);
}

/* ------------------------------------------------------------
   21. UTILITY CLASSES
   ------------------------------------------------------------ */
.hfw-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hfw-text-center { text-align: center; }
.hfw-mt-8 { margin-top: 32px; }

/* Fix WordPress default styles leaking in */
.hfw-hero h1,
.hfw-section-header h2,
.hfw-section-header h3 {
    margin: 0;
}

/* Ensure site content doesn't overlap header */
#wpadminbar ~ .hfw-header {
    top: 32px;
}

/* ============================================================
   22. BREADCRUMB
   ============================================================ */
.hfw-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    font-size: 13px;
}

.hfw-breadcrumb__link {
    color: rgba(255,255,255,0.70);
    transition: color var(--hfw-transition);
}

.hfw-breadcrumb__link:hover { color: #ffffff; }

.hfw-breadcrumb__sep {
    color: rgba(255,255,255,0.40);
}

.hfw-breadcrumb__current {
    color: rgba(255,255,255,0.90);
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 260px;
}

/* Dark breadcrumb (used in light backgrounds) */
.hfw-breadcrumb--dark .hfw-breadcrumb__link { color: var(--hfw-text-muted); }
.hfw-breadcrumb--dark .hfw-breadcrumb__link:hover { color: var(--hfw-navy); }
.hfw-breadcrumb--dark .hfw-breadcrumb__sep { color: var(--hfw-border); }
.hfw-breadcrumb--dark .hfw-breadcrumb__current { color: var(--hfw-text); }

/* ============================================================
   23. SINGLE POST
   ============================================================ */
.hfw-single__hero {
    background: linear-gradient(135deg, var(--hfw-navy) 0%, #2e4a6b 100%);
    padding: 40px 0 48px;
}

.hfw-single__title {
    font-size: clamp(24px, 4vw, 44px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 24px;
    max-width: 860px;
}

.hfw-single__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 14px;
    color: rgba(255,255,255,0.75);
}

.hfw-single__meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.hfw-single__meta-item svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.hfw-single__meta-sep {
    color: rgba(255,255,255,0.35);
}

/* Single layout */
.hfw-single__layout {
    display: grid;
    gap: 48px;
    padding: 48px 0;
    align-items: start;
}

@media (min-width: 1024px) {
    .hfw-single__layout {
        grid-template-columns: 1fr 340px;
        gap: 64px;
    }
}

.hfw-single__main { min-width: 0; }

/* Featured image */
.hfw-single__featured-img {
    border-radius: var(--hfw-radius-xl);
    overflow: hidden;
    margin-bottom: 32px;
    aspect-ratio: 16 / 9;
    background-color: var(--hfw-secondary);
}

.hfw-single__featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hfw-single__featured-img--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--hfw-secondary) 0%, var(--hfw-border) 100%);
}

.hfw-single__featured-img--placeholder svg {
    width: 64px;
    height: 64px;
    fill: none;
    stroke: var(--hfw-border);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.5;
}

/* AI box (in article) */
.hfw-article-ai-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--hfw-radius-lg);
    border: 1px solid var(--hfw-navy-20);
    background: linear-gradient(135deg, var(--hfw-navy-5) 0%, rgba(212,146,42,0.06) 100%);
    margin-bottom: 28px;
    flex-wrap: wrap;
}

@media (min-width: 640px) {
    .hfw-article-ai-box { flex-wrap: nowrap; align-items: center; }
}

.hfw-article-ai-box__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: var(--hfw-radius);
    background-color: var(--hfw-navy);
    flex-shrink: 0;
}

.hfw-article-ai-box__icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-article-ai-box__content {
    flex: 1;
}

.hfw-article-ai-box__content strong {
    display: block;
    font-size: 15px;
    color: var(--hfw-text);
    margin-bottom: 4px;
}

.hfw-article-ai-box__content p {
    font-size: 14px;
    color: var(--hfw-text-muted);
    line-height: 1.5;
    margin: 0;
}

.hfw-article-ai-box .hfw-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Table of Contents */
.hfw-toc {
    background-color: var(--hfw-secondary);
    border: 1px solid var(--hfw-border);
    border-radius: var(--hfw-radius-lg);
    padding: 24px;
    margin-bottom: 32px;
}

.hfw-toc__header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--hfw-text);
    margin-bottom: 16px;
}

.hfw-toc__header svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--hfw-navy);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.hfw-toc__list {
    margin: 0;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hfw-toc__link {
    font-size: 14px;
    color: var(--hfw-navy);
    line-height: 1.4;
    transition: opacity var(--hfw-transition);
}

.hfw-toc__link:hover { opacity: 0.70; text-decoration: underline; }

/* Article content typography */
.hfw-article-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--hfw-text);
}

.hfw-article-content h2 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    color: var(--hfw-text);
    margin-top: 48px;
    margin-bottom: 16px;
    line-height: 1.25;
    scroll-margin-top: 90px;
}

.hfw-article-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--hfw-text);
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hfw-article-content p { margin-bottom: 20px; }

.hfw-article-content ul,
.hfw-article-content ol {
    margin-bottom: 20px;
    padding-left: 24px;
}

.hfw-article-content li { margin-bottom: 8px; }

.hfw-article-content a {
    color: var(--hfw-navy);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hfw-article-content a:hover { opacity: 0.75; }

.hfw-article-content blockquote {
    border-left: 4px solid var(--hfw-amber);
    margin: 24px 0;
    padding: 16px 20px;
    background-color: var(--hfw-secondary);
    border-radius: 0 var(--hfw-radius) var(--hfw-radius) 0;
    font-style: italic;
    color: var(--hfw-text-muted);
}

.hfw-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 15px;
}

.hfw-article-content th,
.hfw-article-content td {
    text-align: left;
    padding: 10px 14px;
    border: 1px solid var(--hfw-border);
}

.hfw-article-content th {
    background-color: var(--hfw-navy);
    color: #ffffff;
    font-weight: 600;
}

.hfw-article-content tr:nth-child(even) td {
    background-color: var(--hfw-secondary);
}

/* Cost box */
.hfw-cost-box {
    border: 1.5px solid #bbf7d0;
    border-radius: var(--hfw-radius-lg);
    background-color: #f0fdf4;
    padding: 24px;
    margin: 32px 0;
}

.hfw-cost-box__header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #15803d;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.hfw-cost-box__header svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #15803d;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.hfw-cost-box__range {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 40px;
    font-weight: 800;
    color: #14532d;
    margin-bottom: 8px;
    line-height: 1;
}

.hfw-cost-box__note {
    font-size: 13px;
    color: #166534;
    line-height: 1.5;
    margin: 0;
}

.hfw-cost-box__note a {
    color: #15803d;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Warning box */
.hfw-warning-box {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 24px;
    border: 1.5px solid #fde68a;
    border-radius: var(--hfw-radius-lg);
    background-color: #fffbeb;
    margin: 32px 0;
}

.hfw-warning-box__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #fef3c7;
    flex-shrink: 0;
}

.hfw-warning-box__icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: #d97706;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-warning-box strong {
    display: block;
    font-size: 15px;
    color: #92400e;
    margin-bottom: 6px;
}

.hfw-warning-box p {
    font-size: 14px;
    line-height: 1.55;
    color: #78350f;
    margin: 0;
}

/* Related articles */
.hfw-related { margin-top: 48px; }

.hfw-related__title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 24px;
    font-weight: 700;
    color: var(--hfw-text);
    margin-bottom: 24px;
}

/* ============================================================
   24. ARCHIVE / CATEGORY PAGES
   ============================================================ */
.hfw-archive-hero,
.hfw-category-hero,
.hfw-search-hero {
    background: linear-gradient(135deg, var(--hfw-navy) 0%, #2e4a6b 100%);
    padding: 48px 0 56px;
}

.hfw-archive-hero__title,
.hfw-category-hero__title,
.hfw-search-hero__title {
    font-size: clamp(26px, 4vw, 44px);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 16px;
}

.hfw-search-hero__title em {
    font-style: normal;
    color: var(--hfw-amber-light, #f6c45a);
}

.hfw-archive-hero__sub,
.hfw-category-hero__intro {
    font-size: 17px;
    line-height: 1.6;
    color: rgba(255,255,255,0.80);
    max-width: 680px;
    margin-bottom: 0;
}

.hfw-search-hero__label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255,255,255,0.60);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.hfw-search-hero__count {
    font-size: 15px;
    color: rgba(255,255,255,0.75);
    margin-bottom: 24px;
}

/* Archive search bar in hero */
.hfw-archive-search { margin-top: 28px; }

.hfw-search-bar {
    width: 100%;
}

.hfw-search-bar__wrap {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
}

.hfw-search-bar__icon {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--hfw-text-muted);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.hfw-search-bar__input {
    height: 52px;
    width: 100%;
    padding: 0 16px 0 44px;
    border-radius: var(--hfw-radius);
    border: 1.5px solid rgba(255,255,255,0.25);
    background-color: rgba(255,255,255,0.12);
    color: #ffffff;
    font-size: 15px;
    transition: border-color var(--hfw-transition), background-color var(--hfw-transition);
}

.hfw-search-bar__input::placeholder { color: rgba(255,255,255,0.55); }

.hfw-search-bar__input:focus {
    border-color: rgba(255,255,255,0.50);
    background-color: rgba(255,255,255,0.18);
}

.hfw-search-bar {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.hfw-search-bar__btn { flex-shrink: 0; }

/* Search hero chips */
.hfw-search-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

/* Archive layout */
.hfw-archive__layout {
    display: grid;
    gap: 48px;
    padding: 48px 0;
    align-items: start;
}

@media (min-width: 1024px) {
    .hfw-archive__layout {
        grid-template-columns: 1fr 300px;
        gap: 56px;
    }
}

.hfw-archive__main { min-width: 0; }

/* Category AI CTA */
.hfw-category-ai-cta {
    margin-top: 48px;
    border-radius: var(--hfw-radius-xl);
    background: linear-gradient(135deg, var(--hfw-navy) 0%, #2e4a6b 100%);
    padding: 32px;
}

.hfw-category-ai-cta__inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
}

@media (min-width: 640px) {
    .hfw-category-ai-cta__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.hfw-category-ai-cta h3 {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.hfw-category-ai-cta p {
    font-size: 15px;
    color: rgba(255,255,255,0.80);
    margin: 0;
}

.hfw-category-ai-cta .hfw-btn { flex-shrink: 0; white-space: nowrap; }

/* ============================================================
   25. SIDEBAR
   ============================================================ */
.hfw-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media (max-width: 1023px) {
    .hfw-sidebar { display: none; }
}

.hfw-sidebar__widget {
    background-color: var(--hfw-card);
    border: 1px solid var(--hfw-border-light);
    border-radius: var(--hfw-radius-xl);
    overflow: hidden;
}

.hfw-sidebar__widget-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--hfw-text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 20px 20px 0;
    margin-bottom: 16px;
}

/* Sidebar CTAs */
.hfw-sidebar__cta {
    padding: 24px;
    text-align: center;
}

.hfw-sidebar__cta--navy { background-color: var(--hfw-navy); }
.hfw-sidebar__cta--amber { background-color: #fffbeb; border: 1px solid #fde68a; }

.hfw-sidebar__cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--hfw-radius-lg);
    margin-bottom: 16px;
}

.hfw-sidebar__cta--navy .hfw-sidebar__cta-icon {
    background-color: rgba(255,255,255,0.12);
}

.hfw-sidebar__cta--amber .hfw-sidebar__cta-icon {
    background-color: rgba(212,146,42,0.12);
}

.hfw-sidebar__cta-icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hfw-sidebar__cta--navy .hfw-sidebar__cta-icon svg { stroke: #ffffff; }
.hfw-sidebar__cta--amber .hfw-sidebar__cta-icon svg { stroke: var(--hfw-amber); }

.hfw-sidebar__cta-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.hfw-sidebar__cta--navy .hfw-sidebar__cta-title { color: #ffffff; }
.hfw-sidebar__cta--amber .hfw-sidebar__cta-title { color: #92400e; }

.hfw-sidebar__cta-desc {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 0;
}

.hfw-sidebar__cta--navy .hfw-sidebar__cta-desc { color: rgba(255,255,255,0.75); }
.hfw-sidebar__cta--amber .hfw-sidebar__cta-desc { color: #78350f; }

/* Popular posts list */
.hfw-sidebar__post-list {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hfw-sidebar__post-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hfw-sidebar__post-thumb {
    width: 60px;
    height: 60px;
    border-radius: var(--hfw-radius);
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--hfw-secondary);
}

.hfw-sidebar__post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hfw-sidebar__post-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hfw-sidebar__post-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--hfw-text);
    line-height: 1.4;
    transition: color var(--hfw-transition);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hfw-sidebar__post-title:hover { color: var(--hfw-navy); }

.hfw-sidebar__post-time {
    font-size: 12px;
    color: var(--hfw-text-muted);
}

/* ============================================================
   26. AD PLACEHOLDER
   ============================================================ */
.hfw-ad-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 90px;
    border-radius: var(--hfw-radius);
    border: 1.5px dashed var(--hfw-border);
    background-color: var(--hfw-secondary);
    margin: 24px 0;
}

.hfw-ad-placeholder__label {
    font-size: 11px;
    font-weight: 500;
    color: var(--hfw-text-light);
    text-transform: uppercase;
    letter-spacing: 0.10em;
}

/* ============================================================
   27. PAGINATION
   ============================================================ */
.hfw-pagination {
    margin-top: 48px;
}

.hfw-pagination .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.hfw-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--hfw-radius);
    border: 1.5px solid var(--hfw-border);
    background-color: var(--hfw-card);
    font-size: 14px;
    font-weight: 500;
    color: var(--hfw-text);
    transition: all var(--hfw-transition);
    text-decoration: none;
}

.hfw-pagination .page-numbers:hover {
    border-color: var(--hfw-navy-20);
    color: var(--hfw-navy);
}

.hfw-pagination .page-numbers.current {
    background-color: var(--hfw-navy);
    border-color: var(--hfw-navy);
    color: #ffffff;
}

.hfw-pagination .page-numbers.dots {
    border: none;
    background: none;
    color: var(--hfw-text-muted);
}

/* ============================================================
   28. NO RESULTS
   ============================================================ */
.hfw-no-results {
    text-align: center;
    padding: 64px 24px;
    border-radius: var(--hfw-radius-xl);
    border: 1.5px dashed var(--hfw-border);
    background-color: var(--hfw-secondary);
}

.hfw-no-results__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: var(--hfw-border);
    margin: 0 auto 24px;
}

.hfw-no-results__icon svg {
    width: 32px;
    height: 32px;
    fill: none;
    stroke: var(--hfw-text-muted);
    stroke-width: 1.5;
}

.hfw-no-results h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--hfw-text);
    margin-bottom: 12px;
}

.hfw-no-results p {
    font-size: 15px;
    color: var(--hfw-text-muted);
    max-width: 440px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.hfw-no-results__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* ============================================================
   29. GUIDE CARD THUMB ICON (no featured image fallback)
   ============================================================ */
.hfw-guide-card__thumb-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hfw-guide-card__thumb-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: var(--hfw-border);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0.6;
}

/* Ghost button variant */
.hfw-btn--ghost {
    background-color: transparent;
    border: 1.5px solid var(--hfw-border);
    color: var(--hfw-text);
}

.hfw-btn--ghost:hover {
    border-color: var(--hfw-navy-20);
    color: var(--hfw-navy);
}

/* ============================================================
   30. MOBILE RESPONSIVE — NEW PAGES
   ============================================================ */
@media (max-width: 767px) {
    .hfw-single__hero,
    .hfw-archive-hero,
    .hfw-category-hero,
    .hfw-search-hero {
        padding: 32px 0 40px;
    }

    .hfw-single__layout,
    .hfw-archive__layout {
        padding: 24px 0 40px;
        gap: 32px;
    }

    .hfw-single__featured-img { margin-bottom: 20px; }

    .hfw-article-ai-box {
        flex-direction: column;
        gap: 12px;
    }

    .hfw-article-content h2 { margin-top: 32px; }

    .hfw-cost-box__range { font-size: 32px; }

    .hfw-category-ai-cta { padding: 24px; }

    .hfw-no-results { padding: 48px 16px; }

    .hfw-search-bar { flex-direction: column; }
    .hfw-search-bar__btn { width: 100%; justify-content: center; }

    .hfw-search-bar__input {
        border-radius: var(--hfw-radius);
    }
}

@media (max-width: 480px) {
    .hfw-article-content { font-size: 15px; }

    .hfw-toc { padding: 16px; }

    .hfw-cost-box,
    .hfw-warning-box { padding: 16px; }

    .hfw-warning-box { flex-direction: column; gap: 12px; }

    .hfw-pagination .page-numbers { min-width: 36px; height: 36px; }

/* ============================================================
   HUB PAGES — Category pills bar, tool grid, FAQ, AI page
   ============================================================ */

/* Hub page wrapper */
.hfw-hub-page { background: var(--hfw-bg); min-height: 60vh; }

/* ---- Category pill strip ---- */
.hfw-hub-cats-bar {
    background: var(--hfw-navy-5);
    border-bottom: 1px solid var(--hfw-border-light);
    padding: 14px 0;
    overflow-x: auto;
}
.hfw-hub-cats-bar__inner {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}
.hfw-cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: var(--hfw-radius-full);
    border: 1px solid var(--hfw-border);
    background: var(--hfw-card);
    color: var(--hfw-text);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.hfw-cat-pill:hover {
    background: var(--hfw-navy);
    border-color: var(--hfw-navy);
    color: #fff;
}

/* ---- Hub CTA bar ---- */
.hfw-hub-cta-bar { background: var(--hfw-navy-5); border-radius: var(--hfw-radius-lg); border: 1px solid var(--hfw-border); padding: 20px 24px; }
.hfw-hub-cta-bar__inner {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}
.hfw-hub-cta-bar__inner > div { flex: 1; min-width: 180px; }
.hfw-hub-cta-bar__inner strong { color: var(--hfw-text); display: block; margin-bottom: 2px; }
.hfw-hub-cta-bar__inner p { margin: 0; font-size: 14px; color: var(--hfw-text-muted); }
.hfw-hub-cta-bar__icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: var(--hfw-radius);
    background: var(--hfw-amber-pale);
    display: flex; align-items: center; justify-content: center;
    color: var(--hfw-amber);
}
.hfw-hub-cta-bar__icon svg { width: 22px; height: 22px; }

/* ---- Tool grid (Tools hub page) ---- */
.hfw-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.hfw-tool-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 24px;
    border-radius: var(--hfw-radius-lg);
    border: 1px solid var(--hfw-border);
    background: var(--hfw-card);
    transition: box-shadow 0.2s, transform 0.2s;
}
.hfw-tool-card:hover { box-shadow: var(--hfw-shadow-md); transform: translateY(-2px); }
.hfw-tool-card--live { border-color: var(--hfw-amber-border); }
.hfw-tool-card__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: var(--hfw-radius);
    display: flex; align-items: center; justify-content: center;
}
.hfw-tool-card__icon svg { width: 24px; height: 24px; }
.hfw-icon--blue   { background: rgba(59,130,246,0.10); color: #3b82f6; }
.hfw-icon--amber  { background: var(--hfw-amber-pale);  color: var(--hfw-amber); }
.hfw-icon--green  { background: rgba(34,197,94,0.10);  color: #16a34a; }
.hfw-icon--rose   { background: rgba(244,63,94,0.10);  color: #e11d48; }
.hfw-icon--indigo { background: rgba(99,102,241,0.10); color: #6366f1; }
.hfw-icon--cyan   { background: rgba(6,182,212,0.10);  color: #0891b2; }
.hfw-icon--yellow { background: rgba(234,179,8,0.10);  color: #ca8a04; }
.hfw-icon--slate  { background: rgba(100,116,139,0.10);color: #475569; }
.hfw-tool-card__body { flex: 1; min-width: 0; }
.hfw-tool-card__title { font-size: 16px; font-weight: 700; color: var(--hfw-text); margin: 0; }
.hfw-tool-card__desc { font-size: 14px; color: var(--hfw-text-muted); margin: 6px 0 0; line-height: 1.55; }

/* ---- FAQ list (Cost Guides hub) ---- */
.hfw-faq-list { display: flex; flex-direction: column; gap: 8px; }
.hfw-faq-item {
    border: 1px solid var(--hfw-border);
    border-radius: var(--hfw-radius);
    background: var(--hfw-card);
    overflow: hidden;
}
.hfw-faq-item__q {
    padding: 16px 20px;
    font-size: 15px;
    font-weight: 600;
    color: var(--hfw-text);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
.hfw-faq-item__q::-webkit-details-marker { display: none; }
.hfw-faq-item__q::after { content: '+'; font-size: 20px; font-weight: 300; color: var(--hfw-text-muted); flex-shrink: 0; margin-left: 12px; }
.hfw-faq-item[open] .hfw-faq-item__q::after { content: '−'; }
.hfw-faq-item__a { padding: 0 20px 16px; font-size: 14px; color: var(--hfw-text-muted); line-height: 1.65; margin: 0; }

/* ---- AI Assistant page ---- */
.hfw-ai-page { background: var(--hfw-bg); }
.hfw-ai-hero { background: linear-gradient(135deg, var(--hfw-navy) 0%, var(--hfw-navy-mid) 100%); }
.hfw-ai-hero .hfw-archive-hero__title,
.hfw-ai-hero .hfw-archive-hero__sub { color: #fff; }
.hfw-ai-hero__stats {
    display: flex;
    gap: 32px;
    margin-top: 24px;
    flex-wrap: wrap;
}
.hfw-ai-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.hfw-ai-stat strong { font-size: 22px; font-weight: 800; color: var(--hfw-amber-light); line-height: 1.1; }
.hfw-ai-stat span   { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 2px; }

.hfw-ai-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 24px;
    padding: 40px 0 64px;
    align-items: start;
}

/* Chat panel */
.hfw-ai-chat {
    border: 1px solid var(--hfw-border);
    border-radius: var(--hfw-radius-lg);
    background: var(--hfw-card);
    overflow: hidden;
    box-shadow: var(--hfw-shadow-md);
}
.hfw-ai-chat__header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hfw-border);
    background: var(--hfw-navy);
    color: #fff;
}
.hfw-ai-chat__avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.hfw-ai-chat__avatar svg { width: 20px; height: 20px; stroke: #fff; }
.hfw-ai-chat__name   { font-weight: 700; font-size: 15px; }
.hfw-ai-chat__status { font-size: 12px; color: rgba(255,255,255,0.7); display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.hfw-ai-chat__dot    { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; display: inline-block; flex-shrink: 0; }
.hfw-ai-chat__messages {
    min-height: 160px;
    max-height: 320px;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Messages */
.hfw-ai-msg { display: flex; flex-direction: column; gap: 4px; }
.hfw-ai-msg--user { align-items: flex-end; }
.hfw-ai-msg--ai   { align-items: flex-start; }
.hfw-ai-msg__bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: var(--hfw-radius);
    font-size: 14px;
    line-height: 1.55;
}
.hfw-ai-msg__bubble p { margin: 0; }
.hfw-ai-msg--ai  .hfw-ai-msg__bubble { background: var(--hfw-navy-5); color: var(--hfw-text); border-bottom-left-radius: 4px; }
.hfw-ai-msg--user .hfw-ai-msg__bubble { background: var(--hfw-navy); color: #fff; border-bottom-right-radius: 4px; }
.hfw-ai-msg__time { font-size: 11px; color: var(--hfw-text-light); }

/* Diagnostic flow steps */
.hfw-ai-flow { padding: 20px; border-top: 1px solid var(--hfw-border); background: var(--hfw-secondary); }
.hfw-ai-step { display: flex; flex-direction: column; gap: 12px; }
.hfw-ai-step--hidden { display: none; }
.hfw-ai-step__label { font-size: 15px; font-weight: 600; color: var(--hfw-text); margin: 0; }
.hfw-ai-step__options { display: flex; flex-wrap: wrap; gap: 8px; }
.hfw-ai-option {
    padding: 10px 16px;
    border-radius: var(--hfw-radius);
    border: 1px solid var(--hfw-border);
    background: var(--hfw-card);
    color: var(--hfw-text);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    display: inline-flex; align-items: center; gap: 6px;
}
.hfw-ai-option:hover { background: var(--hfw-navy); border-color: var(--hfw-navy); color: #fff; }
.hfw-ai-option--critical { border-color: rgba(220,38,38,0.3); color: #dc2626; }
.hfw-ai-option--critical:hover { background: #dc2626; border-color: #dc2626; color: #fff; }
.hfw-ai-option--high { border-color: rgba(234,88,12,0.3); color: #ea580c; }
.hfw-ai-option--high:hover { background: #ea580c; border-color: #ea580c; color: #fff; }

.hfw-ai-step__select-wrap { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hfw-ai-select {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--hfw-radius);
    border: 1px solid var(--hfw-border);
    font-size: 14px;
    color: var(--hfw-text);
    background: var(--hfw-card);
    min-width: 200px;
}

/* Result block */
.hfw-ai-result { display: flex; flex-direction: column; gap: 14px; }
.hfw-ai-result__head { font-size: 16px; font-weight: 700; color: var(--hfw-text); }
.hfw-ai-result__alert { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.2); border-radius: var(--hfw-radius); padding: 12px 16px; font-size: 14px; color: #dc2626; }
.hfw-ai-result__row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: var(--hfw-card); border-radius: var(--hfw-radius); border: 1px solid var(--hfw-border); }
.hfw-ai-result__label { font-size: 13px; color: var(--hfw-text-muted); }
.hfw-ai-result__value { font-size: 14px; font-weight: 600; color: var(--hfw-text); }
.hfw-ai-result__value--cost { color: var(--hfw-amber); font-size: 18px; }
.hfw-ai-result__steps { background: var(--hfw-card); border-radius: var(--hfw-radius); border: 1px solid var(--hfw-border); padding: 16px; font-size: 14px; color: var(--hfw-text-muted); }
.hfw-ai-result__steps strong { color: var(--hfw-text); display: block; margin-bottom: 8px; }
.hfw-ai-result__steps ol { margin: 0; padding-left: 18px; }
.hfw-ai-result__steps li { margin-bottom: 6px; line-height: 1.5; }
.hfw-ai-result__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Input bar */
.hfw-ai-chat__input-bar {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--hfw-border);
    background: var(--hfw-card);
}
.hfw-ai-chat__input {
    flex: 1;
    padding: 10px 14px;
    border-radius: var(--hfw-radius);
    border: 1px solid var(--hfw-border);
    font-size: 14px;
    color: var(--hfw-text);
    background: var(--hfw-secondary);
    outline: none;
}
.hfw-ai-chat__input:focus { border-color: var(--hfw-navy); background: var(--hfw-card); }
.hfw-ai-chat__send {
    width: 42px; height: 42px;
    border-radius: var(--hfw-radius);
    background: var(--hfw-navy);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background 0.15s;
}
.hfw-ai-chat__send:hover { background: var(--hfw-navy-dark); }
.hfw-ai-chat__send svg { width: 18px; height: 18px; stroke: #fff; }

/* Disclaimer */
.hfw-ai-disclaimer {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 16px;
    padding: 14px 16px;
    border-radius: var(--hfw-radius);
    background: rgba(234,179,8,0.08);
    border: 1px solid rgba(234,179,8,0.2);
    font-size: 13px;
    color: var(--hfw-text-muted);
    line-height: 1.6;
}
.hfw-ai-disclaimer svg { width: 16px; height: 16px; stroke: var(--hfw-amber); flex-shrink: 0; margin-top: 2px; }
.hfw-ai-disclaimer p { margin: 0; }

/* AI Sidebar */
.hfw-ai-sidebar { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 80px; }
.hfw-ai-sidebar-card {
    border: 1px solid var(--hfw-border);
    border-radius: var(--hfw-radius-lg);
    background: var(--hfw-card);
    padding: 20px;
}
.hfw-ai-sidebar-card--muted { background: var(--hfw-secondary); }
.hfw-ai-sidebar-card__title { font-size: 14px; font-weight: 700; color: var(--hfw-text); margin: 0 0 12px; text-transform: uppercase; letter-spacing: 0.04em; }

.hfw-ai-suggestions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.hfw-ai-suggestion-btn {
    display: flex; align-items: center; gap: 8px;
    width: 100%; text-align: left;
    background: none; border: none; cursor: pointer;
    padding: 8px 10px;
    border-radius: var(--hfw-radius-sm);
    font-size: 13px; color: var(--hfw-text-muted);
    transition: background 0.15s, color 0.15s;
}
.hfw-ai-suggestion-btn:hover { background: var(--hfw-navy-5); color: var(--hfw-navy); }
.hfw-ai-suggestion-btn svg { width: 14px; height: 14px; stroke: var(--hfw-amber); flex-shrink: 0; }

.hfw-ai-quick-links { display: flex; flex-direction: column; gap: 8px; }
.hfw-ai-quick-link {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    border-radius: var(--hfw-radius);
    border: 1px solid var(--hfw-border);
    background: var(--hfw-secondary);
    color: var(--hfw-text);
    font-size: 14px; font-weight: 500;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.hfw-ai-quick-link:hover { background: var(--hfw-navy-5); border-color: var(--hfw-navy-20); }
.hfw-ai-quick-link svg { width: 16px; height: 16px; stroke: var(--hfw-text-muted); flex-shrink: 0; }
.hfw-ai-quick-link--critical { border-color: rgba(220,38,38,0.2); }
.hfw-ai-quick-link--critical svg { stroke: #dc2626; }

/* ---- Local guide grid (hub pages) ---- */
.hfw-local-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

/* ---- Responsive overrides for hub pages ---- */
@media (max-width: 1024px) {
    .hfw-ai-layout { grid-template-columns: 1fr; }
    .hfw-ai-sidebar { position: static; }
}
@media (max-width: 768px) {
    .hfw-tool-grid { grid-template-columns: 1fr; }
    .hfw-hub-cta-bar__inner { flex-direction: column; align-items: flex-start; }
    .hfw-ai-hero__stats { gap: 20px; }
    .hfw-ai-chat__messages { max-height: 220px; }
    .hfw-hub-cats-bar__inner { flex-wrap: wrap; }
}
}
