/*
Theme Name: The Growth Hacker
Theme URI: https://setupmyseo.com/
Author: Bruce Boss
Author URI: https://setupmyseo.com/
Description: A custom Elementor-ready WordPress theme built for The Growth Hacker, a local business marketing agency offering Facebook & Instagram Ads, Local SEO, SEO, Social Media Management, Website Design & Development, and Digital Coupons.
Version: 1.0.0
Requires at least: 5.8
Requires PHP: 7.3
Text Domain: the-growth-hacker
Tags: business, blog, e-commerce, one-column, two-columns, right-sidebar, custom-colors, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   1. CSS CUSTOM PROPERTIES (overridden by Customizer output)
   ========================================================= */
:root {
	--tgh-primary: #0B5FFF;
	--tgh-primary-dark: #003C9E;
	--tgh-dark: #0F1B2D;
	--tgh-topbar-bg: #0F1B2D;
	--tgh-header-bg: #ffffff;
	--tgh-footer-bg: #0F1B2D;
	--tgh-text: #1A1A1A;
	--tgh-text-light: #5B6472;
	--tgh-white: #ffffff;
	--tgh-body-bg: #ffffff;
	--tgh-border: #E5E9F0;
	--tgh-heading-font: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
	--tgh-body-font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
	--tgh-body-font-size: 16px;
	--tgh-radius: 10px;
}

/* =========================================================
   2. RESET / BASE
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--tgh-body-font);
	font-size: var(--tgh-body-font-size);
	color: var(--tgh-text);
	background: var(--tgh-body-bg);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--tgh-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--tgh-primary-dark); }
h1, h2, h3, h4, h5, h6 {
	font-family: var(--tgh-heading-font);
	color: var(--tgh-dark);
	line-height: 1.25;
	margin: 0 0 16px;
	font-weight: 700;
}
p { margin: 0 0 16px; }
ul { margin: 0 0 16px; padding-left: 20px; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.tgh-section { padding: 72px 0; }
.tgh-btn {
	display: inline-block;
	background: var(--tgh-primary);
	color: #fff;
	padding: 14px 32px;
	border-radius: 6px;
	font-weight: 700;
	font-family: var(--tgh-heading-font);
	font-size: 14px;
	letter-spacing: .3px;
	border: none;
	cursor: pointer;
}
.tgh-btn:hover { background: var(--tgh-primary-dark); color: #fff; }
.tgh-btn-outline {
	background: transparent;
	color: var(--tgh-white);
	border: 2px solid var(--tgh-white);
}
.tgh-btn-outline:hover { background: var(--tgh-white); color: var(--tgh-primary); }
.screen-reader-text { position: absolute; left: -9999px; }

/* =========================================================
   3. TOP BAR
   ========================================================= */
.tgh-topbar {
	background: var(--tgh-topbar-bg);
	color: #cfe0ff;
	font-size: 13px;
	padding: 8px 0;
}
.tgh-topbar .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.tgh-topbar a { color: #cfe0ff; }
.tgh-topbar-item { margin-right: 20px; }
.tgh-topbar-social a { margin-left: 12px; color: #cfe0ff; }

/* =========================================================
   4. HEADER
   ========================================================= */
.tgh-header {
	background: var(--tgh-header-bg);
	border-bottom: 1px solid var(--tgh-border);
	padding: 18px 0;
}
.tgh-header.is-sticky { position: sticky; top: 0; z-index: 999; }
.tgh-header .container { display: flex; align-items: center; justify-content: space-between; }
.tgh-logo { font-family: var(--tgh-heading-font); font-weight: 800; font-size: 22px; color: var(--tgh-dark); }
.tgh-logo span { color: var(--tgh-primary); }
.tgh-logo img { max-height: 48px; }
.tgh-nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.tgh-nav a { color: var(--tgh-dark); font-weight: 600; font-size: 15px; }
.tgh-nav a:hover { color: var(--tgh-primary); }
.tgh-header-right { display: flex; align-items: center; gap: 20px; }
.tgh-header-phone { font-weight: 700; color: var(--tgh-dark); }
.tgh-menu-toggle { display: none; background: none; border: none; font-size: 26px; cursor: pointer; }

@media (max-width: 900px) {
	.tgh-nav { display: none; width: 100%; }
	.tgh-nav.is-open { display: block; }
	.tgh-nav ul { flex-direction: column; gap: 10px; padding: 16px 0; }
	.tgh-header .container { flex-wrap: wrap; }
	.tgh-menu-toggle { display: block; }
}

/* =========================================================
   5. HERO / INNER HERO
   ========================================================= */
.tgh-hero { background-size: cover; background-position: center; position: relative; color: #fff; }
.tgh-hero-overlay { background: linear-gradient(120deg, rgba(11,95,255,.92), rgba(0,15,40,.85)); padding: 100px 0; }
.tgh-hero h1 { color: #fff; font-size: 44px; }
.tgh-hero p { color: rgba(255,255,255,.85); font-size: 18px; }
.tgh-badge { display: inline-block; background: rgba(255,255,255,.15); color: #fff; padding: 6px 16px; border-radius: 30px; font-size: 13px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 16px; }
.tgh-inner-hero { padding: 70px 0; }
.tgh-inner-hero h1 { color: #fff; font-size: 38px; margin-bottom: 6px; }
.tgh-breadcrumb { color: rgba(255,255,255,.7); font-size: 14px; }
.tgh-breadcrumb a { color: rgba(255,255,255,.85); }

/* =========================================================
   6. STATS / CARDS
   ========================================================= */
.tgh-stats-bar { background: var(--tgh-dark); padding: 40px 0; }
.tgh-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.tgh-stat-num { font-family: var(--tgh-heading-font); font-size: 34px; font-weight: 800; color: #fff; }
.tgh-stat-label { color: #9fb4d6; font-size: 14px; }

.tgh-card {
	background: #fff;
	border: 1px solid var(--tgh-border);
	border-radius: var(--tgh-radius);
	padding: 28px;
	box-shadow: 0 2px 10px rgba(15,27,45,.05);
}
.tgh-testimonial-card { background: #F5F8FF; border-radius: var(--tgh-radius); padding: 28px; }
.tgh-testimonial-stars { color: #FFB400; margin-bottom: 10px; }

/* =========================================================
   7. GRID HELPERS (used inside text-editor cards)
   ========================================================= */
.tgh-hours-table { width: 100%; border-collapse: collapse; }
.tgh-hours-table td { padding: 8px 0; border-bottom: 1px solid var(--tgh-border); font-size: 14px; }
.tgh-hours-table td:last-child { text-align: right; font-weight: 600; }

.tgh-cta-box { background: linear-gradient(135deg, var(--tgh-primary), var(--tgh-primary-dark)); color: #fff; border-radius: var(--tgh-radius); padding: 26px; }
.tgh-cta-box a { color: #fff; font-weight: 700; }
.tgh-cta-box .tgh-cta-phone { font-size: 22px; font-weight: 800; display: block; margin: 8px 0 16px; }

.tgh-form input, .tgh-form select, .tgh-form textarea {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid var(--tgh-border);
	border-radius: 6px;
	margin-bottom: 14px;
	font-family: var(--tgh-body-font);
	font-size: 15px;
}
.tgh-form label { font-weight: 600; font-size: 13px; display: block; margin-bottom: 6px; }
.tgh-form button { width: 100%; padding: 14px; }
.tgh-form-note { font-size: 12px; color: var(--tgh-text-light); margin-top: 10px; }

/* =========================================================
   8. FOOTER
   ========================================================= */
.tgh-footer { background: var(--tgh-footer-bg); color: #b9c6de; padding: 60px 0 24px; }
.tgh-footer h4 { color: #fff; font-size: 16px; }
.tgh-footer a { color: #b9c6de; }
.tgh-footer a:hover { color: #fff; }
.tgh-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.tgh-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 20px; font-size: 13px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
@media (max-width: 780px) { .tgh-footer-grid { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   9. BLOG (index.php / single.php)
   ========================================================= */
.tgh-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tgh-blog-card { border: 1px solid var(--tgh-border); border-radius: var(--tgh-radius); overflow: hidden; background: #fff; }
.tgh-blog-card img { aspect-ratio: 16/10; object-fit: cover; }
.tgh-blog-card-body { padding: 20px; }
.tgh-blog-meta { font-size: 12px; color: var(--tgh-text-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 8px; }
.tgh-single-post img.wp-post-image { border-radius: var(--tgh-radius); margin-bottom: 24px; }
@media (max-width: 900px) { .tgh-blog-grid { grid-template-columns: 1fr; } }

/* =========================================================
   10. AI CHAT WIDGET
   ========================================================= */
.tgh-chat-launcher {
	position: fixed; bottom: 24px; right: 24px; z-index: 9999;
	width: 60px; height: 60px; border-radius: 50%;
	background: var(--tgh-primary); color: #fff; border: none;
	box-shadow: 0 6px 18px rgba(11,95,255,.4); cursor: pointer; font-size: 26px;
}
.tgh-chat-window {
	position: fixed; bottom: 96px; right: 24px; z-index: 9999;
	width: 320px; max-width: 90vw; background: #fff; border-radius: 14px;
	box-shadow: 0 10px 40px rgba(0,0,0,.2); display: none; flex-direction: column; overflow: hidden;
	border: 1px solid var(--tgh-border);
}
.tgh-chat-window.is-open { display: flex; }
.tgh-chat-header { background: var(--tgh-primary); color: #fff; padding: 14px 16px; font-weight: 700; display:flex; justify-content:space-between; align-items:center; }
.tgh-chat-header button { background: none; border: none; color: #fff; font-size: 18px; cursor: pointer; }
.tgh-chat-body { padding: 14px; height: 280px; overflow-y: auto; font-size: 14px; }
.tgh-chat-msg { margin-bottom: 10px; padding: 10px 12px; border-radius: 10px; max-width: 85%; }
.tgh-chat-msg.bot { background: #F1F4F9; }
.tgh-chat-msg.user { background: var(--tgh-primary); color: #fff; margin-left: auto; }
.tgh-chat-input { display: flex; border-top: 1px solid var(--tgh-border); }
.tgh-chat-input input { flex: 1; border: none; padding: 12px; font-size: 14px; }
.tgh-chat-input button { border: none; background: var(--tgh-primary); color: #fff; padding: 0 16px; cursor: pointer; }

/* =========================================================
   11. GENERIC / 404
   ========================================================= */
.tgh-404 { text-align: center; padding: 120px 0; }
.tgh-404 h1 { font-size: 90px; color: var(--tgh-primary); margin-bottom: 0; }

/* =========================================================
   12. RESPONSIVE
   ========================================================= */
@media (max-width: 900px) {
	.tgh-stats-grid { grid-template-columns: repeat(2, 1fr); }
	.tgh-hero h1 { font-size: 30px; }
	.tgh-inner-hero h1 { font-size: 28px; }
}
