/*
Theme Name: Hometown Hustle
Theme URI: https://setupmydeals.com/
Author: Hometown Hustle
Author URI: https://setupmydeals.com/
Description: A modern, minimalist WordPress theme for Hometown Hustle, a local business spotlight and community media company serving Philadelphia County. Built for Elementor Free with one-click page creation (Appearance > Hometown Hustle Theme Setup), seven service pages, a blog, a quote form with email notifications, Google Maps, business hours and a Claude AI chat widget.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hometown-hustle
Tags: business, blog, custom-colors, custom-logo, custom-menu, featured-images, full-width-template, sticky-post, theme-options
*/

/* ==========================================================================
   1. Design tokens (overridden by the Customizer via inline :root styles)
   ========================================================================== */
:root {
	--hh-primary: #F47B20;
	--hh-primary-dark: #D9620C;
	--hh-dark: #1B2A5C;
	--hh-accent: #FFC629;
	--hh-topbar-bg: #1B2A5C;
	--hh-header-bg: #ffffff;
	--hh-footer-bg: #131E44;
	--hh-text: #2B3245;
	--hh-muted: #6B7280;
	--hh-border: #E7E9F0;
	--hh-light: #F7F8FB;
	--hh-white: #ffffff;
	--hh-heading-font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
	--hh-body-font: 'Inter', 'Helvetica Neue', Arial, sans-serif;
	--hh-body-size: 16px;
	--hh-header-h: 84px;
	--hh-hero-h: 640px;
	--hh-radius: 12px;
	--hh-shadow: 0 10px 30px rgba(27, 42, 92, 0.08);
	--hh-shadow-lg: 0 20px 50px rgba(27, 42, 92, 0.14);
	--hh-container: 1200px;
	--hh-hero-bg: none;
	--hh-inner-hero-bg: none;
}

/* ==========================================================================
   2. Reset and base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--hh-body-font);
	font-size: var(--hh-body-size);
	line-height: 1.7;
	color: var(--hh-text);
	background: var(--hh-white);
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--hh-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--hh-primary-dark); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--hh-heading-font);
	color: var(--hh-dark);
	line-height: 1.25;
	margin: 0 0 .6em;
	font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
blockquote {
	margin: 1.5em 0;
	padding: 1em 1.5em;
	border-left: 4px solid var(--hh-primary);
	background: var(--hh-light);
	border-radius: 0 var(--hh-radius) var(--hh-radius) 0;
	font-style: italic;
}
input, textarea, select, button { font: inherit; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; left: 8px; z-index: 100000; width: auto; height: auto; clip: auto;
	background: var(--hh-dark); color: #fff; padding: 10px 16px; border-radius: 6px;
}
.hh-container { width: 100%; max-width: var(--hh-container); margin: 0 auto; padding: 0 24px; }
.hh-highlight { color: var(--hh-primary); }

/* Buttons */
.hh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 13px 28px; border-radius: 8px; border: 2px solid var(--hh-primary);
	background: var(--hh-primary); color: #fff; font-family: var(--hh-heading-font);
	font-weight: 700; font-size: 14px; letter-spacing: .02em; cursor: pointer;
	transition: background .2s ease, transform .2s ease, border-color .2s ease, color .2s ease;
}
.hh-btn:hover { background: var(--hh-primary-dark); border-color: var(--hh-primary-dark); color: #fff; transform: translateY(-1px); }
.hh-btn--outline { background: transparent; color: var(--hh-primary); }
.hh-btn--outline:hover { background: var(--hh-primary); color: #fff; }
.hh-btn--dark { background: var(--hh-dark); border-color: var(--hh-dark); }
.hh-btn--dark:hover { background: #0F1A3D; border-color: #0F1A3D; }
.hh-btn--block { width: 100%; }

/* ==========================================================================
   3. Top bar
   ========================================================================== */
.hh-topbar { background: var(--hh-topbar-bg); color: rgba(255,255,255,.85); font-size: 13px; }
.hh-topbar .hh-container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 42px; flex-wrap: wrap; }
.hh-topbar a { color: rgba(255,255,255,.9); }
.hh-topbar a:hover { color: var(--hh-accent); }
.hh-topbar__info { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.hh-topbar__item { display: inline-flex; align-items: center; gap: 7px; }
.hh-topbar__item svg { width: 14px; height: 14px; fill: var(--hh-accent); flex-shrink: 0; }
.hh-social { display: flex; gap: 10px; align-items: center; }
.hh-social a {
	display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center;
	border-radius: 50%; background: rgba(255,255,255,.08); transition: background .2s ease;
}
.hh-social a:hover { background: var(--hh-primary); }
.hh-social svg { width: 13px; height: 13px; fill: #fff; }

/* ==========================================================================
   4. Header and navigation
   ========================================================================== */
.hh-header {
	background: var(--hh-header-bg); border-bottom: 1px solid var(--hh-border);
	position: relative; z-index: 999; transition: box-shadow .25s ease;
}
.hh-header.is-sticky { position: sticky; top: 0; }
.admin-bar .hh-header.is-sticky { top: 32px; }
@media (max-width: 782px) { .admin-bar .hh-header.is-sticky { top: 46px; } }
@media (max-width: 600px) { .admin-bar .hh-header.is-sticky { top: 0; } }
.hh-header.is-scrolled { box-shadow: 0 6px 24px rgba(27,42,92,.10); }
.hh-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--hh-header-h); }
.hh-brand { display: flex; align-items: center; gap: 12px; color: var(--hh-dark); }
.hh-brand img, .hh-brand .custom-logo { max-height: calc(var(--hh-header-h) - 20px); width: auto; }
.hh-brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.hh-brand__name { font-family: var(--hh-heading-font); font-weight: 800; font-size: 21px; color: var(--hh-dark); letter-spacing: -.01em; }
.hh-brand__name span { color: var(--hh-primary); }
.hh-brand__tagline { font-size: 11.5px; color: var(--hh-muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }

.hh-nav { display: flex; align-items: center; gap: 28px; }
.hh-menu, .hh-menu ul { list-style: none; margin: 0; padding: 0; }
.hh-menu { display: flex; align-items: center; gap: 4px; }
.hh-menu > li { position: relative; }
.hh-menu a {
	display: block; padding: 10px 14px; color: var(--hh-dark); font-family: var(--hh-heading-font);
	font-weight: 600; font-size: 14.5px; border-radius: 6px;
}
.hh-menu a:hover, .hh-menu .current-menu-item > a, .hh-menu .current_page_item > a, .hh-menu .current-menu-ancestor > a { color: var(--hh-primary); }
.hh-menu .sub-menu, .hh-menu .children {
	position: absolute; top: 100%; left: 0; min-width: 260px; background: #fff; border-radius: 10px;
	box-shadow: var(--hh-shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: all .2s ease; border: 1px solid var(--hh-border);
}
.hh-menu li:hover > .sub-menu, .hh-menu li:focus-within > .sub-menu,
.hh-menu li:hover > .children, .hh-menu li:focus-within > .children { opacity: 1; visibility: visible; transform: translateY(0); }
.hh-menu .sub-menu a, .hh-menu .children a { font-weight: 500; font-size: 14px; padding: 9px 12px; }
.hh-menu .sub-menu a:hover, .hh-menu .children a:hover { background: var(--hh-light); }
.hh-menu .menu-item-has-children > a::after, .hh-menu .page_item_has_children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; margin-bottom: 3px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg);
}
.hh-header__actions { display: flex; align-items: center; gap: 18px; }
.hh-header__phone { display: flex; align-items: center; gap: 10px; color: var(--hh-dark); font-weight: 700; font-family: var(--hh-heading-font); font-size: 15px; white-space: nowrap; }
.hh-header__phone svg { width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: rgba(244,123,32,.12); fill: var(--hh-primary); }
.hh-header__phone small { display: block; font-size: 11px; font-weight: 500; color: var(--hh-muted); letter-spacing: .04em; text-transform: uppercase; }
.hh-menu-toggle {
	display: none; width: 44px; height: 44px; border: 1px solid var(--hh-border); background: #fff;
	border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.hh-menu-toggle span { display: block; width: 20px; height: 2px; background: var(--hh-dark); transition: all .25s ease; }
.hh-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hh-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hh-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1100px) { .hh-header__phone { display: none; } }
@media (max-width: 960px) {
	.hh-menu-toggle { display: inline-flex; }
	.hh-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch;
		gap: 0; padding: 12px 24px 24px; border-bottom: 1px solid var(--hh-border); box-shadow: 0 20px 30px rgba(27,42,92,.08);
		display: none; max-height: calc(100vh - 120px); overflow-y: auto;
	}
	.hh-nav.is-open { display: flex; }
	.hh-menu { flex-direction: column; align-items: stretch; }
	.hh-menu a { padding: 12px 6px; border-bottom: 1px solid var(--hh-border); border-radius: 0; }
	.hh-menu .sub-menu, .hh-menu .children { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 0 14px; min-width: 0; }
	.hh-header__actions .hh-btn { display: none; }
	.hh-nav .hh-btn { display: inline-flex; margin-top: 16px; }
}
@media (min-width: 961px) { .hh-nav .hh-nav__cta { display: none; } }

/* ==========================================================================
   5. Inner page hero (PHP templates) and breadcrumb
   ========================================================================== */
.hh-page-hero {
	position: relative; padding: 90px 0 80px; color: #fff; text-align: center;
	background-color: var(--hh-dark);
	background-image: linear-gradient(120deg, rgba(19,30,68,.92) 0%, rgba(27,42,92,.86) 60%, rgba(244,123,32,.55) 140%), var(--hh-inner-hero-bg);
	background-size: cover; background-position: center;
}
.hh-page-hero h1 { color: #fff; margin-bottom: 10px; }
.hh-page-hero p { color: rgba(255,255,255,.78); max-width: 680px; margin: 0 auto; }
.hh-breadcrumb { font-size: 13.5px; color: rgba(255,255,255,.7); margin-top: 14px; }
.hh-breadcrumb a { color: var(--hh-accent); }
.hh-breadcrumb span.sep { margin: 0 8px; opacity: .6; }

/* ==========================================================================
   6. Elementor section helpers (classes set on Elementor sections)
   ========================================================================== */
.elementor-section.hh-home-hero {
	min-height: var(--hh-hero-h); display: flex; align-items: center;
	background-color: var(--hh-dark) !important;
	background-image: linear-gradient(105deg, rgba(19,30,68,.95) 0%, rgba(27,42,92,.88) 45%, rgba(27,42,92,.55) 100%), var(--hh-hero-bg) !important;
	background-size: cover !important; background-position: center !important;
}
.elementor-section.hh-home-hero > .elementor-container { width: 100%; }
.elementor-section.hh-inner-hero {
	background-color: var(--hh-dark) !important;
	background-image: linear-gradient(120deg, rgba(19,30,68,.93) 0%, rgba(27,42,92,.86) 60%, rgba(244,123,32,.5) 140%), var(--hh-inner-hero-bg) !important;
	background-size: cover !important; background-position: center !important;
}
.elementor-section.hh-bg-light { background-color: var(--hh-light) !important; }
.elementor-section.hh-bg-dark { background-color: var(--hh-dark) !important; }
.elementor-section.hh-cta-band {
	background-color: var(--hh-primary) !important;
	background-image: linear-gradient(115deg, var(--hh-primary) 0%, var(--hh-primary-dark) 100%) !important;
}
.hh-card-col > .elementor-widget-wrap, .hh-card-col > .elementor-column-wrap > .elementor-widget-wrap {
	background: #fff; border: 1px solid var(--hh-border); border-radius: 16px; box-shadow: var(--hh-shadow);
	transition: transform .25s ease, box-shadow .25s ease; padding: 18px 18px 26px !important; margin: 10px;
}
.hh-card-col > .elementor-widget-wrap:hover, .hh-card-col > .elementor-column-wrap > .elementor-widget-wrap:hover { transform: translateY(-4px); box-shadow: var(--hh-shadow-lg); }
.hh-panel-col > .elementor-widget-wrap, .hh-panel-col > .elementor-column-wrap > .elementor-widget-wrap {
	background: #fff; border: 1px solid var(--hh-border); border-radius: 16px; padding: 28px !important; margin: 10px;
}
.hh-form-col > .elementor-widget-wrap, .hh-form-col > .elementor-column-wrap > .elementor-widget-wrap {
	background: #fff; border-radius: 18px; box-shadow: var(--hh-shadow-lg); padding: 36px !important; margin: 10px;
	border-top: 5px solid var(--hh-primary);
}
.hh-card-col .elementor-widget-image img { width: 100%; }

/* Safety net for Elementor icon sizing (Elementor's own widget CSS normally handles this) */
.elementor-widget-icon-list .elementor-icon-list-items { list-style: none; margin: 0; padding: 0; }
.elementor-widget-icon-list .elementor-icon-list-item, .elementor-widget-icon-list .elementor-icon-list-item > a { display: flex; align-items: center; }
.elementor-widget-icon-list .elementor-icon-list-icon { display: inline-flex; align-items: center; flex-shrink: 0; }
.elementor-widget-icon-list .elementor-icon-list-icon svg { width: var(--e-icon-list-icon-size, 1em); height: var(--e-icon-list-icon-size, 1em); max-width: 32px; max-height: 32px; fill: currentColor; }
.elementor-widget-icon-list .elementor-icon-list-icon i { width: 1.25em; }
.elementor-button .elementor-button-icon svg { width: 1em; height: 1em; fill: currentColor; }
.elementor-accordion .elementor-accordion-icon svg { width: 1em; height: 1em; fill: currentColor; }
.elementor-widget-text-editor p:last-child { margin-bottom: 0; }

/* Label pill */
.hh-label {
	display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
	background: rgba(244,123,32,.12); color: var(--hh-primary); font-family: var(--hh-heading-font);
	font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
}
.hh-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--hh-primary); }
.hh-label--light { background: rgba(255,255,255,.12); color: var(--hh-accent); }
.hh-label--light::before { background: var(--hh-accent); }
.hh-breadcrumb-inline { font-size: 13.5px; color: rgba(255,255,255,.7); }
.hh-breadcrumb-inline a { color: var(--hh-accent); }
.hh-breadcrumb-inline .sep { margin: 0 8px; opacity: .6; }

/* Hero stats card */
.hh-hero-card {
	background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px); border-radius: 20px; padding: 30px; color: #fff;
}
.hh-hero-card__title { font-family: var(--hh-heading-font); font-weight: 700; font-size: 18px; margin-bottom: 18px; color: #fff; }
.hh-hero-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hh-hero-card__stat { background: rgba(255,255,255,.07); border-radius: 14px; padding: 18px; }
.hh-hero-card__num { font-family: var(--hh-heading-font); font-size: 30px; font-weight: 800; color: var(--hh-accent); line-height: 1.1; }
.hh-hero-card__lbl { font-size: 13px; color: rgba(255,255,255,.78); margin-top: 4px; }
.hh-hero-card__foot { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); font-size: 14px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 10px; }
.hh-hero-card__foot strong { color: #fff; }
.hh-dot { width: 10px; height: 10px; border-radius: 50%; background: #3DDC84; box-shadow: 0 0 0 4px rgba(61,220,132,.2); flex-shrink: 0; }

/* Stats bar */
.hh-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: 18px; box-shadow: var(--hh-shadow-lg); overflow: hidden; }
.hh-stat { padding: 30px 24px; text-align: center; border-right: 1px solid var(--hh-border); }
.hh-stat:last-child { border-right: 0; }
.hh-stat__num { font-family: var(--hh-heading-font); font-weight: 800; font-size: 36px; color: var(--hh-primary); line-height: 1.1; }
.hh-stat__lbl { font-size: 14px; color: var(--hh-muted); margin-top: 6px; }
@media (max-width: 767px) {
	.hh-stats { grid-template-columns: 1fr 1fr; }
	.hh-stat:nth-child(2) { border-right: 0; }
	.hh-stat:nth-child(1), .hh-stat:nth-child(2) { border-bottom: 1px solid var(--hh-border); }
}

/* Testimonials */
.hh-testimonial { background: #fff; border: 1px solid var(--hh-border); border-radius: 18px; padding: 30px; height: 100%; box-shadow: var(--hh-shadow); position: relative; }
.hh-testimonial__stars { color: var(--hh-accent); font-size: 18px; letter-spacing: 3px; margin-bottom: 12px; }
.hh-testimonial__text { font-size: 15.5px; color: var(--hh-text); font-style: italic; margin-bottom: 20px; }
.hh-testimonial__who { display: flex; align-items: center; gap: 12px; }
.hh-testimonial__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--hh-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--hh-heading-font); font-weight: 700; }
.hh-testimonial__name { font-family: var(--hh-heading-font); font-weight: 700; color: var(--hh-dark); font-size: 15px; line-height: 1.3; }
.hh-testimonial__role { font-size: 13px; color: var(--hh-muted); }
.hh-sample-tag { position: absolute; top: 16px; right: 16px; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; background: var(--hh-light); color: var(--hh-muted); padding: 3px 8px; border-radius: 999px; border: 1px dashed var(--hh-border); }

/* Phone box */
.hh-phone-box { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border-radius: 14px; background: var(--hh-dark); color: #fff; margin-top: 8px; }
.hh-phone-box__icon { width: 52px; height: 52px; border-radius: 50%; background: var(--hh-primary); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hh-phone-box__icon svg { width: 22px; height: 22px; fill: #fff; }
.hh-phone-box small { display: block; color: rgba(255,255,255,.7); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
.hh-phone-box a { color: #fff; font-family: var(--hh-heading-font); font-weight: 800; font-size: 22px; }
.hh-phone-box a:hover { color: var(--hh-accent); }

/* Hours table */
.hh-hours { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.hh-hours td { padding: 9px 0; border-bottom: 1px dashed var(--hh-border); }
.hh-hours td:last-child { text-align: right; font-weight: 600; color: var(--hh-dark); }
.hh-hours tr:last-child td { border-bottom: 0; }
.hh-hours .is-closed td:last-child { color: var(--hh-muted); font-weight: 500; }

/* CTA box */
.hh-cta-box { background: linear-gradient(135deg, var(--hh-dark) 0%, #2A3F80 100%); color: #fff; border-radius: 16px; padding: 28px; text-align: center; }
.hh-cta-box h4 { color: #fff; font-size: 19px; margin-bottom: 8px; }
.hh-cta-box p { color: rgba(255,255,255,.78); font-size: 14.5px; }
.hh-cta-box .hh-cta-box__phone { display: block; font-family: var(--hh-heading-font); font-weight: 800; font-size: 22px; color: var(--hh-accent); margin: 6px 0 16px; }

/* Map */
.hh-map { border-radius: 16px; overflow: hidden; border: 1px solid var(--hh-border); line-height: 0; margin-top: 10px; }
.hh-map iframe { width: 100%; height: 320px; border: 0; }

/* ==========================================================================
   7. Quote form
   ========================================================================== */
.hh-form__title { font-family: var(--hh-heading-font); font-weight: 800; font-size: 22px; color: var(--hh-dark); margin-bottom: 6px; }
.hh-form__sub { color: var(--hh-muted); font-size: 14.5px; margin-bottom: 22px; }
.hh-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .hh-form__row { grid-template-columns: 1fr; } }
.hh-form__field { margin-bottom: 14px; }
.hh-form__field label { display: block; font-size: 13px; font-weight: 600; color: var(--hh-dark); margin-bottom: 6px; }
.hh-form__field input, .hh-form__field select, .hh-form__field textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--hh-border); border-radius: 8px; background: var(--hh-light);
	color: var(--hh-text); font-size: 15px; transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.hh-form__field input:focus, .hh-form__field select:focus, .hh-form__field textarea:focus {
	outline: none; border-color: var(--hh-primary); background: #fff; box-shadow: 0 0 0 4px rgba(244,123,32,.12);
}
.hh-form__field textarea { min-height: 110px; resize: vertical; }
.hh-form__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.hh-form__note { font-size: 12.5px; color: var(--hh-muted); margin-top: 12px; text-align: center; }
.hh-form__msg { display: none; margin-top: 14px; padding: 12px 14px; border-radius: 8px; font-size: 14.5px; }
.hh-form__msg.is-success { display: block; background: #E8F8EF; color: #11643A; border: 1px solid #B8E8CB; }
.hh-form__msg.is-error { display: block; background: #FDECEC; color: #8A1C1C; border: 1px solid #F5C2C2; }
.hh-btn.is-loading { opacity: .7; pointer-events: none; }

/* ==========================================================================
   8. Blog (index.php / single.php) and recent-posts shortcode
   ========================================================================== */
.hh-main { padding: 80px 0; }
.hh-posts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
@media (max-width: 1000px) { .hh-posts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .hh-posts-grid { grid-template-columns: 1fr; } }
.hh-post-card { background: #fff; border: 1px solid var(--hh-border); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.hh-post-card:hover { transform: translateY(-4px); box-shadow: var(--hh-shadow-lg); }
.hh-post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--hh-light); }
.hh-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.hh-post-card:hover .hh-post-card__img img { transform: scale(1.04); }
.hh-post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.hh-post-card__meta { font-size: 12.5px; color: var(--hh-muted); margin-bottom: 10px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hh-post-card__cat { color: var(--hh-primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 11.5px; }
.hh-post-card__title { font-size: 19px; margin-bottom: 10px; }
.hh-post-card__title a { color: var(--hh-dark); }
.hh-post-card__title a:hover { color: var(--hh-primary); }
.hh-post-card__excerpt { font-size: 14.5px; color: var(--hh-muted); flex: 1; }
.hh-post-card__more { font-family: var(--hh-heading-font); font-weight: 700; font-size: 13.5px; margin-top: 8px; }
.hh-pagination { margin-top: 50px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.hh-pagination .page-numbers { display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--hh-border); color: var(--hh-dark); padding: 0 12px; font-weight: 600; }
.hh-pagination .page-numbers.current, .hh-pagination .page-numbers:hover { background: var(--hh-primary); border-color: var(--hh-primary); color: #fff; }

.hh-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 50px; }
.hh-layout.has-sidebar { grid-template-columns: minmax(0, 1fr) 340px; }
@media (max-width: 960px) { .hh-layout.has-sidebar { grid-template-columns: 1fr; } }
.hh-article { max-width: 820px; margin: 0 auto; width: 100%; }
.hh-layout.has-sidebar .hh-article { max-width: none; }
.hh-article__img { border-radius: 18px; overflow: hidden; margin-bottom: 36px; box-shadow: var(--hh-shadow); }
.hh-article__img img { width: 100%; }
.hh-article__content { font-size: 17px; }
.hh-article__content h2 { margin-top: 1.6em; font-size: 1.65rem; }
.hh-article__content h3 { margin-top: 1.4em; }
.hh-article__content ul li, .hh-article__content ol li { margin-bottom: .45em; }
.hh-article__content img { border-radius: 12px; }
.hh-article__tags { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; }
.hh-article__tags a { font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--hh-light); color: var(--hh-dark); border: 1px solid var(--hh-border); }
.hh-article__tags a:hover { background: var(--hh-primary); color: #fff; border-color: var(--hh-primary); }
.hh-post-nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 50px; padding-top: 30px; border-top: 1px solid var(--hh-border); }
.hh-post-nav a { font-family: var(--hh-heading-font); font-weight: 700; color: var(--hh-dark); max-width: 48%; }
.hh-post-nav a:hover { color: var(--hh-primary); }
.hh-post-nav small { display: block; color: var(--hh-muted); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.hh-author-cta { margin-top: 50px; }
.hh-comments { margin-top: 50px; }
.hh-comments .comment-list { list-style: none; padding: 0; }
.hh-comments .comment-body { padding: 20px; border: 1px solid var(--hh-border); border-radius: 12px; margin-bottom: 16px; }
.hh-comments textarea, .hh-comments input[type="text"], .hh-comments input[type="email"], .hh-comments input[type="url"] { width: 100%; padding: 12px; border: 1px solid var(--hh-border); border-radius: 8px; }
.hh-comments .submit { background: var(--hh-primary); color: #fff; border: 0; padding: 12px 24px; border-radius: 8px; font-weight: 700; cursor: pointer; }

/* Sidebar */
.hh-sidebar { display: flex; flex-direction: column; gap: 26px; }
.hh-widget { background: #fff; border: 1px solid var(--hh-border); border-radius: 16px; padding: 26px; }
.hh-widget__title { font-size: 16px; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 2px solid var(--hh-light); }
.hh-widget ul { list-style: none; padding: 0; margin: 0; }
.hh-widget li { padding: 8px 0; border-bottom: 1px solid var(--hh-border); font-size: 14.5px; }
.hh-widget li:last-child { border-bottom: 0; }
.hh-widget li a { color: var(--hh-text); }
.hh-widget li a:hover { color: var(--hh-primary); }

/* Generic page (non-Elementor) */
.hh-page-content { max-width: 860px; margin: 0 auto; }
.hh-page-content .hh-fallback-section { margin-bottom: 40px; }

/* Services list (shortcode) */
.hh-service-links { list-style: none; padding: 0; margin: 0; }
.hh-service-links li { border-bottom: 1px solid var(--hh-border); }
.hh-service-links li:last-child { border-bottom: 0; }
.hh-service-links a { display: flex; justify-content: space-between; padding: 10px 0; color: var(--hh-text); font-size: 14.5px; }
.hh-service-links a:hover { color: var(--hh-primary); }

/* ==========================================================================
   9. 404 and search
   ========================================================================== */
.hh-404 { text-align: center; padding: 120px 0; }
.hh-404__code { font-family: var(--hh-heading-font); font-size: clamp(90px, 18vw, 180px); font-weight: 800; line-height: 1; color: var(--hh-primary); letter-spacing: -.04em; }
.hh-404__code span { color: var(--hh-dark); }
.hh-404 p { color: var(--hh-muted); max-width: 520px; margin: 10px auto 30px; }
.hh-404__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hh-search-form { display: flex; gap: 8px; max-width: 480px; margin: 30px auto 0; }
.hh-search-form input[type="search"] { flex: 1; padding: 12px 16px; border: 1px solid var(--hh-border); border-radius: 8px; }
.hh-empty { text-align: center; padding: 40px 0; color: var(--hh-muted); }

/* ==========================================================================
   10. Footer
   ========================================================================== */
.hh-footer { background: var(--hh-footer-bg); color: rgba(255,255,255,.72); font-size: 14.5px; }
.hh-footer__cta { border-bottom: 1px solid rgba(255,255,255,.08); }
.hh-footer__cta .hh-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 40px; flex-wrap: wrap; }
.hh-footer__cta h3 { color: #fff; margin: 0; font-size: 24px; }
.hh-footer__cta p { margin: 4px 0 0; color: rgba(255,255,255,.65); }
.hh-footer__cols { display: grid; gap: 40px; padding: 64px 0 48px; }
.hh-footer__cols.cols-4 { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.hh-footer__cols.cols-3 { grid-template-columns: 1.4fr 1fr 1.2fr; }
.hh-footer__cols.cols-2 { grid-template-columns: 1.4fr 1fr; }
@media (max-width: 960px) { .hh-footer__cols.cols-4, .hh-footer__cols.cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .hh-footer__cols.cols-4, .hh-footer__cols.cols-3, .hh-footer__cols.cols-2 { grid-template-columns: 1fr; } }
.hh-footer h4 { color: #fff; font-size: 15px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 18px; }
.hh-footer a { color: rgba(255,255,255,.72); }
.hh-footer a:hover { color: var(--hh-accent); }
.hh-footer ul { list-style: none; padding: 0; margin: 0; }
.hh-footer li { margin-bottom: 10px; }
.hh-footer__brand .hh-brand__name { color: #fff; }
.hh-footer__brand p { margin: 16px 0 20px; }
.hh-footer__contact li { display: flex; gap: 10px; align-items: flex-start; }
.hh-footer__contact svg { width: 16px; height: 16px; fill: var(--hh-primary); flex-shrink: 0; margin-top: 4px; }
.hh-footer__license { font-size: 12.5px; color: rgba(255,255,255,.5); margin-top: 10px; }
.hh-footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; font-size: 13px; }
.hh-footer__bottom .hh-container { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.hh-footer__bottom ul { display: flex; gap: 18px; }
.hh-footer__bottom li { margin: 0; }

.hh-to-top {
	position: fixed; left: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--hh-dark); color: #fff; display: flex; align-items: center; justify-content: center; z-index: 990;
	opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; box-shadow: var(--hh-shadow);
}
.hh-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.hh-to-top svg { width: 18px; height: 18px; fill: #fff; }

/* ==========================================================================
   11. AI chat widget
   ========================================================================== */
.hh-chat { position: fixed; right: 22px; bottom: 22px; z-index: 9999; font-family: var(--hh-body-font); }
.hh-chat__launcher {
	width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer; background: var(--hh-primary); color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 12px 30px rgba(244,123,32,.45);
	transition: transform .2s ease, background .2s ease; position: relative;
}
.hh-chat__launcher:hover { transform: scale(1.06); background: var(--hh-primary-dark); }
.hh-chat__launcher svg { width: 28px; height: 28px; fill: #fff; }
.hh-chat__launcher .hh-chat__close-icon { display: none; }
.hh-chat.is-open .hh-chat__launcher .hh-chat__open-icon { display: none; }
.hh-chat.is-open .hh-chat__launcher .hh-chat__close-icon { display: block; }
.hh-chat__badge { position: absolute; top: 2px; right: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--hh-accent); border: 2px solid #fff; }
.hh-chat.is-open .hh-chat__badge { display: none; }
.hh-chat__panel {
	position: absolute; right: 0; bottom: 78px; width: 370px; max-width: calc(100vw - 44px); height: 540px; max-height: calc(100vh - 130px);
	background: #fff; border-radius: 20px; box-shadow: 0 25px 60px rgba(19,30,68,.28); display: flex; flex-direction: column;
	overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(14px) scale(.98); transform-origin: bottom right; transition: all .22s ease;
}
.hh-chat.is-open .hh-chat__panel { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.hh-chat__head { background: var(--hh-dark); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.hh-chat__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--hh-primary); display: flex; align-items: center; justify-content: center; font-family: var(--hh-heading-font); font-weight: 800; flex-shrink: 0; }
.hh-chat__title { font-family: var(--hh-heading-font); font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.hh-chat__status { font-size: 12px; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.hh-chat__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3DDC84; }
.hh-chat__messages { flex: 1; overflow-y: auto; padding: 18px; background: var(--hh-light); display: flex; flex-direction: column; gap: 10px; }
.hh-chat__msg { max-width: 85%; padding: 11px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; }
.hh-chat__msg--bot { background: #fff; color: var(--hh-text); border: 1px solid var(--hh-border); border-bottom-left-radius: 4px; align-self: flex-start; }
.hh-chat__msg--user { background: var(--hh-primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.hh-chat__msg--typing { display: inline-flex; gap: 4px; align-items: center; }
.hh-chat__msg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--hh-muted); animation: hhTyping 1.2s infinite ease-in-out; }
.hh-chat__msg--typing span:nth-child(2) { animation-delay: .15s; }
.hh-chat__msg--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hhTyping { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.hh-chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px 12px; background: var(--hh-light); }
.hh-chat__quick button { border: 1px solid var(--hh-border); background: #fff; color: var(--hh-dark); font-size: 12.5px; padding: 6px 11px; border-radius: 999px; cursor: pointer; }
.hh-chat__quick button:hover { border-color: var(--hh-primary); color: var(--hh-primary); }
.hh-chat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--hh-border); background: #fff; }
.hh-chat__input { flex: 1; border: 1px solid var(--hh-border); border-radius: 10px; padding: 11px 13px; font-size: 14.5px; resize: none; max-height: 100px; }
.hh-chat__input:focus { outline: none; border-color: var(--hh-primary); }
.hh-chat__send { width: 44px; border: 0; border-radius: 10px; background: var(--hh-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.hh-chat__send:hover { background: var(--hh-primary-dark); }
.hh-chat__send svg { width: 18px; height: 18px; fill: #fff; }
.hh-chat__foot { font-size: 11px; text-align: center; color: var(--hh-muted); padding: 0 12px 10px; background: #fff; }

/* ==========================================================================
   12. WordPress core classes
   ========================================================================== */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: none; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .gallery-caption { font-size: 13px; color: var(--hh-muted); text-align: center; margin-top: 6px; }
.sticky .hh-post-card__title::before { content: "★ "; color: var(--hh-accent); }
.bypostauthor { display: block; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Accordion icon state (mirrors Elementor's widget CSS as a fallback) */
.elementor-accordion .elementor-accordion-icon .elementor-accordion-icon-opened { display: none; }
.elementor-accordion .elementor-active .elementor-accordion-icon-closed { display: none; }
.elementor-accordion .elementor-active .elementor-accordion-icon-opened { display: inline-block; }

/* Mobile refinements */
@media (max-width: 767px) {
	.hh-topbar__item--hide-sm { display: none; }
	.elementor-section.hh-home-hero .hh-hero-card { display: none; }
}
