/*
Theme Name: Coupon Crackdown
Theme URI: https://couponcrackdown.com
Author: Coupon Crackdown
Author URI: https://couponcrackdown.com
Description: A warm, friendly local-deals theme for Coupon Crackdown — free coupons for Berks County shoppers and $99/mo advertising for local businesses. Built for Elementor (free): one click in Appearance → Coupon Crackdown Theme Setup creates the Home, Deals, 8 category pages, Advertise, About, Contact and Blog pages plus starter posts. Includes deal-alert signup with lead capture, advertiser inquiry form, Google Map, business hours and a Claude AI chat assistant.
Version: 1.0.0
Requires at least: 5.8
Tested up to: 6.8
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: coupon-crackdown
Tags: custom-logo, custom-menu, featured-images, theme-options, one-column, blog, e-commerce, threaded-comments
*/

/* ==========================================================================
   Tokens (overridden by Customizer via wp_add_inline_style)
   ========================================================================== */
:root {
	--cc-primary: #F26B1D;
	--cc-primary-dark: #C6580F;
	--cc-primary-soft: #FEF0E7;
	--cc-dark: #2B2421;
	--cc-topbar-bg: #2B2421;
	--cc-header-bg: #FFFFFF;
	--cc-footer-bg: #2B2421;
	--cc-cream: #FFF7F0;
	--cc-line: #F1E4D8;
	--cc-text: #4A403A;
	--cc-muted: #7A6C63;
	--cc-heading-font: "Poppins", system-ui, sans-serif;
	--cc-body-font: "Nunito", system-ui, sans-serif;
	--cc-body-size: 16px;
	--cc-header-h: 84px;
	--cc-radius: 18px;
	--cc-shadow: 0 10px 30px rgba(43, 36, 33, 0.08);
	--cc-shadow-lg: 0 24px 60px rgba(43, 36, 33, 0.16);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--cc-body-font);
	font-size: var(--cc-body-size);
	line-height: 1.65;
	color: var(--cc-text);
	background: #FFFFFF;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 {
	font-family: var(--cc-heading-font);
	color: var(--cc-dark);
	line-height: 1.2;
	margin: 0 0 0.5em;
	font-weight: 700;
}
p { margin: 0 0 1em; }
a { color: var(--cc-primary); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--cc-primary-dark); }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--cc-primary); outline-offset: 2px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 100000; top: 8px; left: 8px;
	background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--cc-shadow);
}

.cc-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.cc-narrow-wrap { max-width: 820px; }
.cc-narrow { max-width: 680px; margin-left: auto; margin-right: auto; }

/* ==========================================================================
   Buttons, pills
   ========================================================================== */
.cc-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	font-family: var(--cc-heading-font); font-weight: 700; font-size: 15px;
	padding: 13px 28px; border-radius: 50px; border: 2px solid transparent;
	cursor: pointer; transition: all .2s ease; text-decoration: none; line-height: 1.2;
}
.cc-btn-primary { background: var(--cc-primary); color: #fff; }
.cc-btn-primary:hover { background: var(--cc-dark); color: #fff; transform: translateY(-1px); }
.cc-btn-dark { background: var(--cc-dark); color: #fff; }
.cc-btn-dark:hover { background: var(--cc-primary); color: #fff; }
.cc-btn-light { background: #fff; color: var(--cc-dark); }
.cc-btn-light:hover { background: var(--cc-dark); color: #fff; }
.cc-btn-block { width: 100%; }

.cc-pill {
	display: inline-block; padding: 6px 16px; border-radius: 50px;
	background: var(--cc-primary-soft); color: var(--cc-primary-dark);
	font-family: var(--cc-heading-font); font-size: 13px; font-weight: 700;
	letter-spacing: .02em; text-transform: uppercase;
}
.cc-pill-light, .cc-hero .cc-pill { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.cc-hl { color: var(--cc-primary); position: relative; white-space: nowrap; }

/* ==========================================================================
   Top bar + header
   ========================================================================== */
.cc-topbar { background: var(--cc-topbar-bg); color: rgba(255,255,255,.8); font-size: 14px; }
.cc-topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.cc-topbar a, .cc-topbar span { color: rgba(255,255,255,.85); }
.cc-topbar a:hover { color: var(--cc-primary); }
.cc-topbar i { color: var(--cc-primary); margin-right: 6px; }
.cc-topbar-left, .cc-topbar-right { display: flex; align-items: center; gap: 22px; }
.cc-topbar-right a i { margin: 0; color: rgba(255,255,255,.85); }

.cc-header {
	background: var(--cc-header-bg); position: relative; z-index: 999;
	box-shadow: 0 2px 18px rgba(43,36,33,.06);
}
.cc-sticky-header .cc-header { position: sticky; top: 0; }
.admin-bar.cc-sticky-header .cc-header { top: 32px; }
@media (max-width: 782px) { .admin-bar.cc-sticky-header .cc-header { top: 0; } }
.cc-header.is-scrolled { box-shadow: 0 6px 24px rgba(43,36,33,.12); }
.cc-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--cc-header-h); }

.cc-brand .custom-logo { max-height: calc(var(--cc-header-h) - 16px); width: auto; }
.cc-logo { display: flex; align-items: center; gap: 10px; color: var(--cc-dark); }
.cc-logo img { width: 58px; height: 58px; object-fit: contain; }
.cc-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.cc-logo-text strong { font-family: var(--cc-heading-font); font-size: 20px; font-weight: 800; color: var(--cc-dark); }
.cc-logo-text small { font-size: 12px; color: var(--cc-muted); font-weight: 600; }

.cc-menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 4px; }
.cc-menu > li { position: relative; }
.cc-menu a {
	display: block; padding: 10px 14px; border-radius: 50px;
	font-family: var(--cc-heading-font); font-weight: 600; font-size: 15px; color: var(--cc-dark);
}
.cc-menu a:hover, .cc-menu .current-menu-item > a, .cc-menu .current-menu-ancestor > a { color: var(--cc-primary); background: var(--cc-primary-soft); }
.cc-menu .menu-item-has-children > a::after { content: "\f107"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-left: 6px; font-size: 12px; }
.cc-menu .sub-menu {
	list-style: none; margin: 0; padding: 10px; position: absolute; top: 100%; left: 0; min-width: 240px;
	background: #fff; border-radius: 14px; box-shadow: var(--cc-shadow-lg);
	opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .2s ease;
}
.cc-menu li:hover > .sub-menu, .cc-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.cc-menu .sub-menu a { border-radius: 10px; font-size: 14px; padding: 9px 12px; }

.cc-header-actions { display: flex; align-items: center; gap: 16px; }
.cc-header-phone { display: flex; align-items: center; gap: 10px; color: var(--cc-dark); font-family: var(--cc-heading-font); font-weight: 700; }
.cc-header-phone i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cc-primary-soft); color: var(--cc-primary); }
.cc-header-phone span { display: flex; flex-direction: column; line-height: 1.15; font-size: 15px; }
.cc-header-phone small { font-size: 11px; color: var(--cc-muted); font-weight: 600; }
.cc-nav-cta-mobile { display: none; }

.cc-menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: 12px; background: var(--cc-primary-soft); cursor: pointer; padding: 12px 11px; flex-direction: column; justify-content: space-between; }
.cc-menu-toggle span { display: block; height: 2px; background: var(--cc-dark); border-radius: 2px; transition: all .25s ease; }
.cc-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.cc-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cc-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1100px) {
	.cc-header-phone { display: none; }
}
@media (max-width: 960px) {
	.cc-menu-toggle { display: flex; }
	.cc-header-cta { display: none; }
	.cc-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: #fff;
		padding: 12px 20px 24px; box-shadow: 0 20px 30px rgba(43,36,33,.12);
		display: none; max-height: calc(100vh - var(--cc-header-h)); overflow-y: auto;
	}
	.cc-nav.is-open { display: block; }
	.cc-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.cc-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 0 14px; display: none; min-width: 0; }
	.cc-menu li.is-open > .sub-menu { display: block; }
	.cc-nav-cta-mobile { display: flex; margin-top: 14px; width: 100%; }
}
@media (max-width: 640px) {
	.cc-hide-sm { display: none !important; }
	.cc-logo-text small { display: none; }
	.cc-logo img { width: 46px; height: 46px; }
}

/* ==========================================================================
   Elementor helpers + home sections
   ========================================================================== */
.cc-elementor-page .cc-main > .elementor { width: 100%; }
.elementor-section.cc-inner-hero { background-image: var(--cc-inner-hero-bg); }
.cc-crumb { margin: 0; font-size: 14px; }
.cc-crumb a { color: rgba(255,255,255,.85); }
.cc-crumb a:hover { color: var(--cc-primary); }
.cc-crumb i { font-size: 10px; margin: 0 6px; opacity: .6; }
.cc-hero-sub { margin: 0; }

.cc-hero-card {
	background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--cc-shadow-lg);
	position: relative; border: 2px dashed var(--cc-primary);
}
.cc-coupon-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--cc-heading-font); font-weight: 700; color: var(--cc-primary); font-size: 14px; margin-bottom: 14px; }
.cc-hero-card-list { list-style: none; margin: 0 0 18px; padding: 0; }
.cc-hero-card-list li + li { margin-top: 8px; }
.cc-hero-card-list a {
	display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px;
	background: var(--cc-cream); color: var(--cc-dark); font-family: var(--cc-heading-font); font-weight: 600; font-size: 15px;
	transition: all .2s ease;
}
.cc-hero-card-list a i:first-child { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--cc-primary); color: #fff; font-size: 14px; }
.cc-hero-card-list a span { flex: 1; }
.cc-hero-card-list .cc-go { color: var(--cc-muted); font-size: 13px; transition: transform .2s ease; }
.cc-hero-card-list a:hover { background: var(--cc-primary-soft); }
.cc-hero-card-list a:hover .cc-go { transform: translateX(4px); color: var(--cc-primary); }
.cc-hero-card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1px solid var(--cc-line); padding-top: 16px; }
.cc-hero-card-stats strong { display: block; font-family: var(--cc-heading-font); font-size: 26px; color: var(--cc-dark); line-height: 1; }
.cc-hero-card-stats span { font-size: 13px; color: var(--cc-muted); }

.cc-stats-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; color: #fff; }
.cc-stat strong { display: block; font-family: var(--cc-heading-font); font-size: 36px; font-weight: 800; line-height: 1.1; color: #fff; }
.cc-stat span { font-size: 15px; opacity: .92; font-weight: 600; }
@media (max-width: 767px) { .cc-stats-bar { grid-template-columns: repeat(2, 1fr); row-gap: 22px; } .cc-stat strong { font-size: 28px; } }

.cc-card-col > .elementor-widget-wrap, .cc-card-col > .elementor-column-wrap { transition: transform .25s ease, box-shadow .25s ease; }
.cc-card-col:hover > .elementor-widget-wrap { transform: translateY(-4px); }

.cc-testimonial { background: #fff; border-radius: var(--cc-radius); padding: 28px; box-shadow: var(--cc-shadow); height: 100%; position: relative; }
.cc-stars { color: #F5A524; margin-bottom: 12px; font-size: 14px; display: flex; gap: 3px; }
.cc-quote { font-size: 16px; font-style: italic; color: var(--cc-text); }
.cc-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.cc-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cc-primary); color: #fff; font-family: var(--cc-heading-font); font-weight: 700; }
.cc-author strong { display: block; color: var(--cc-dark); font-family: var(--cc-heading-font); }
.cc-author small { color: var(--cc-muted); }
.cc-sample-flag { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #9A6B00; background: #FFF4D6; padding: 4px 10px; border-radius: 50px; }

.cc-phone-box { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 16px 20px; border-radius: 16px; max-width: 380px; }
.cc-phone-box i { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cc-primary); color: #fff; font-size: 18px; flex-shrink: 0; }
.cc-phone-box span { display: block; font-size: 13px; opacity: .75; }
.cc-phone-box a { color: #fff; font-family: var(--cc-heading-font); font-weight: 700; font-size: 20px; }
.cc-phone-box a:hover { color: var(--cc-primary); }

.cc-cta-band h2 { text-wrap: balance; }

/* Coupon cards on category pages */
.cc-coupon-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 767px) { .cc-coupon-grid { grid-template-columns: 1fr; } }
.cc-coupon {
	display: flex; background: #fff; border-radius: var(--cc-radius); overflow: hidden;
	border: 2px dashed var(--cc-primary); box-shadow: var(--cc-shadow); position: relative;
}
.cc-coupon-left { width: 92px; flex-shrink: 0; background: var(--cc-primary); color: #fff; display: grid; place-items: center; font-size: 30px; position: relative; }
.cc-coupon-left::after { content: ""; position: absolute; right: -9px; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--cc-cream); transform: translateY(-50%); }
.cc-coupon-alert { border-color: var(--cc-dark); }
.cc-coupon-alert .cc-coupon-left { background: var(--cc-dark); }
.cc-coupon-body { padding: 20px 22px; }
.cc-coupon-kicker { font-size: 12px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--cc-primary); }
.cc-coupon-body h4 { margin: 4px 0 6px; font-size: 19px; }
.cc-coupon-body p { font-size: 15px; margin-bottom: 10px; }
.cc-coupon-body a { font-family: var(--cc-heading-font); font-weight: 700; font-size: 14px; }

/* Price card */
.cc-price-card { background: var(--cc-cream); border: 2px dashed var(--cc-primary); border-radius: 24px; padding: 32px 28px; text-align: center; margin-bottom: 18px; }
.cc-price-kicker { font-family: var(--cc-heading-font); font-weight: 700; color: var(--cc-primary); text-transform: uppercase; font-size: 13px; letter-spacing: .05em; }
.cc-price { font-family: var(--cc-heading-font); font-weight: 800; font-size: 72px; color: var(--cc-dark); line-height: 1; margin: 10px 0 6px; }
.cc-price sup { font-size: 30px; vertical-align: top; position: relative; top: 10px; }
.cc-price span { font-size: 18px; font-weight: 600; color: var(--cc-muted); }
.cc-price-note { color: var(--cc-muted); font-weight: 600; }
.cc-founder { background: #fff; border-radius: 14px; padding: 14px 16px; font-size: 15px; text-align: left; }
.cc-founder i { color: var(--cc-primary); }
.cc-step-num { display: inline-grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--cc-primary); color: #fff; font-family: var(--cc-heading-font); font-weight: 800; font-size: 24px; }

/* Map + hours */
.cc-map { border-radius: var(--cc-radius); overflow: hidden; box-shadow: var(--cc-shadow); }
.cc-map iframe { display: block; width: 100%; height: 320px; border: 0; }
.cc-map-placeholder { padding: 40px; text-align: center; background: #fff; border-radius: var(--cc-radius); }
.cc-hours-table { width: 100%; border-collapse: collapse; }
.cc-hours-table th, .cc-hours-table td { padding: 8px 0; border-bottom: 1px solid var(--cc-line); text-align: left; font-size: 15px; }
.cc-hours-table td { text-align: right; }

/* ==========================================================================
   Forms
   ========================================================================== */
.cc-form { background: #fff; border-radius: 24px; padding: 30px; box-shadow: var(--cc-shadow-lg); color: var(--cc-text); }
.cc-form-title { font-size: 24px; margin-bottom: 4px; }
.cc-form-sub { color: var(--cc-muted); margin-bottom: 18px; }
.cc-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .cc-form-row { grid-template-columns: 1fr; } .cc-form { padding: 22px; } }
.cc-form label { display: block; margin-bottom: 14px; }
.cc-form label > span { display: block; font-size: 13px; font-weight: 700; color: var(--cc-dark); margin-bottom: 6px; font-family: var(--cc-heading-font); }
.cc-form input[type="text"], .cc-form input[type="email"], .cc-form input[type="tel"], .cc-form select, .cc-form textarea {
	width: 100%; padding: 13px 16px; border: 2px solid var(--cc-line); border-radius: 12px; font: inherit; font-size: 15px;
	background: var(--cc-cream); color: var(--cc-dark); transition: border-color .2s ease, background .2s ease;
}
.cc-form input:focus, .cc-form select:focus, .cc-form textarea:focus { outline: none; border-color: var(--cc-primary); background: #fff; }
.cc-form .cc-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--cc-muted); line-height: 1.45; }
.cc-form .cc-check input { margin-top: 3px; accent-color: var(--cc-primary); }
.cc-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.cc-form-note { font-size: 13px; color: var(--cc-muted); text-align: center; margin: 12px 0 0; }
.cc-form-msg { margin-top: 12px; font-weight: 700; text-align: center; font-size: 15px; }
.cc-form-msg.is-success { color: #11743A; }
.cc-form-msg.is-error { color: #B42318; }
.cc-form.is-loading button[type="submit"] { opacity: .65; pointer-events: none; }

/* ==========================================================================
   Page + blog templates
   ========================================================================== */
.cc-page-hero {
	background: linear-gradient(120deg, rgba(43,36,33,.92), rgba(90,42,14,.86)), var(--cc-inner-hero-bg) center/cover;
	color: #fff; padding: 90px 0 80px; text-align: center;
}
.cc-page-hero h1 { color: #fff; font-size: clamp(32px, 5vw, 48px); margin-bottom: 12px; text-wrap: balance; }
.cc-page-hero-sub { max-width: 640px; margin: 0 auto 14px; color: rgba(255,255,255,.82); font-size: 18px; }
.cc-post-hero .cc-pill { margin-bottom: 16px; }
.cc-post-hero .cc-post-meta { color: rgba(255,255,255,.75); }
.cc-page-content { padding-top: 70px; padding-bottom: 80px; }

.cc-prose { font-size: 17px; }
.cc-prose h2 { font-size: 28px; margin-top: 1.6em; }
.cc-prose h3 { font-size: 21px; margin-top: 1.4em; }
.cc-prose ul, .cc-prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.cc-prose li { margin-bottom: .45em; }
.cc-prose ul li::marker { color: var(--cc-primary); }
.cc-prose a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.cc-prose blockquote { border-left: 4px solid var(--cc-primary); margin: 1.5em 0; padding: 6px 0 6px 20px; font-style: italic; }
.cc-prose img { border-radius: 14px; }

.cc-post-featured { width: 100%; max-height: 460px; object-fit: cover; border-radius: 24px; margin: -30px 0 40px; box-shadow: var(--cc-shadow-lg); }

.cc-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 10px; }
@media (max-width: 960px) { .cc-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cc-post-grid { grid-template-columns: 1fr; } }
.cc-post-card { background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--cc-shadow); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.cc-post-card:hover { transform: translateY(-5px); box-shadow: var(--cc-shadow-lg); }
.cc-post-card-img img { width: 100%; height: 210px; object-fit: cover; }
.cc-post-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.cc-post-card h2, .cc-post-card h3 { font-size: 19px; margin-bottom: 10px; }
.cc-post-card h2 a, .cc-post-card h3 a { color: var(--cc-dark); }
.cc-post-card h2 a:hover, .cc-post-card h3 a:hover { color: var(--cc-primary); }
.cc-post-card p { font-size: 15px; color: var(--cc-muted); }
.cc-post-meta { font-size: 13px; color: var(--cc-muted); font-weight: 600; display: block; margin-bottom: 8px; }
.cc-read-more { margin-top: auto; font-family: var(--cc-heading-font); font-weight: 700; font-size: 14px; }
.cc-read-more i { font-size: 12px; margin-left: 4px; transition: transform .2s ease; }
.cc-read-more:hover i { transform: translateX(3px); }

.cc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.cc-tags a { background: var(--cc-cream); padding: 6px 14px; border-radius: 50px; font-size: 14px; font-weight: 600; color: var(--cc-text); }
.cc-tags a:hover { background: var(--cc-primary); color: #fff; }
.cc-post-cta { background: var(--cc-dark); border-radius: 24px; padding: 34px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 26px; align-items: center; margin: 40px 0; }
.cc-post-cta h3 { color: #fff; font-size: 24px; }
.cc-post-cta p { color: rgba(255,255,255,.8); }
.cc-post-cta .cc-form { box-shadow: none; padding: 22px; }
@media (max-width: 760px) { .cc-post-cta { grid-template-columns: 1fr; padding: 24px; } }
.cc-post-nav { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--cc-line); padding-top: 24px; font-family: var(--cc-heading-font); font-weight: 600; }
.cc-pagination { margin-top: 50px; text-align: center; }
.cc-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 44px; height: 44px; padding: 0 10px; margin: 0 3px; border-radius: 50%; background: var(--cc-cream); color: var(--cc-dark); font-weight: 700; }
.cc-pagination .page-numbers.current, .cc-pagination .page-numbers:hover { background: var(--cc-primary); color: #fff; }
.cc-empty { text-align: center; padding: 40px 0; }

.search-form { display: flex; gap: 8px; max-width: 460px; margin: 20px auto; }
.search-form label { flex: 1; }
.search-form .search-field { width: 100%; padding: 12px 16px; border: 2px solid var(--cc-line); border-radius: 50px; font: inherit; }
.search-form .search-submit { background: var(--cc-primary); color: #fff; border: 0; border-radius: 50px; padding: 0 22px; font-weight: 700; cursor: pointer; font-family: var(--cc-heading-font); }

/* Comments */
.comments-area { margin-top: 50px; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--cc-cream); border-radius: 16px; padding: 18px 20px; margin-bottom: 16px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--cc-line); border-radius: 12px; font: inherit; }
.comment-form .submit { background: var(--cc-primary); color: #fff; border: 0; border-radius: 50px; padding: 12px 26px; font-weight: 700; cursor: pointer; }

/* Sidebar (optional) */
.cc-sidebar .cc-widget { background: var(--cc-cream); border-radius: 18px; padding: 22px; margin-bottom: 22px; }
.cc-widget-title { font-size: 16px; }
.cc-sidebar-list { list-style: none; padding: 0; margin: 0; }
.cc-sidebar-list li { padding: 7px 0; border-bottom: 1px solid var(--cc-line); }
.cc-sidebar-list i { color: var(--cc-primary); font-size: 11px; margin-right: 6px; }
.cc-cta-box { background: linear-gradient(135deg, var(--cc-primary), var(--cc-primary-dark)); color: #fff; border-radius: 20px; padding: 26px; margin-bottom: 22px; }
.cc-cta-box h4 { color: #fff; }
.cc-cta-box .cc-btn { margin: 6px 0 14px; }
.cc-cta-phone { display: block; color: #fff; font-weight: 700; }
.cc-cta-phone:hover { color: var(--cc-dark); }

/* 404 */
.cc-404 { padding: 90px 0; background: var(--cc-cream); }
.cc-404-coupon { max-width: 640px; margin: 0 auto; background: #fff; border: 3px dashed var(--cc-primary); border-radius: 28px; padding: 50px 30px; text-align: center; box-shadow: var(--cc-shadow-lg); }
.cc-404-code { font-family: var(--cc-heading-font); font-weight: 800; font-size: 96px; line-height: 1; color: var(--cc-primary); display: block; margin-bottom: 10px; }
.cc-404-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 22px 0 6px; }

.cc-admin-bar-notice { background: #FFF4D6; color: #7A5A00; padding: 12px 20px; text-align: center; font-weight: 600; }

/* ==========================================================================
   Footer
   ========================================================================== */
.cc-footer { background: var(--cc-footer-bg); color: rgba(255,255,255,.72); padding-top: 70px; font-size: 15px; }
.cc-footer-grid { display: grid; gap: 40px; padding-bottom: 50px; }
.cc-footer-grid.cc-cols-4 { grid-template-columns: 1.5fr 1fr 1fr 1.3fr; }
.cc-footer-grid.cc-cols-3 { grid-template-columns: 1.5fr 1fr 1.3fr; }
.cc-footer-grid.cc-cols-2 { grid-template-columns: 1fr 1fr; }
.cc-footer-grid.cc-cols-1 { grid-template-columns: 1fr; }
@media (max-width: 960px) { .cc-footer-grid.cc-cols-4, .cc-footer-grid.cc-cols-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cc-footer-grid[class*="cc-cols-"] { grid-template-columns: 1fr; } }
.cc-footer h4 { color: #fff; font-size: 17px; margin-bottom: 18px; }
.cc-footer ul { list-style: none; margin: 0; padding: 0; }
.cc-footer li { margin-bottom: 10px; }
.cc-footer a { color: rgba(255,255,255,.72); }
.cc-footer a:hover { color: var(--cc-primary); }
.cc-footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.cc-footer-brand img { width: 56px; height: 56px; border-radius: 12px; background: #fff; padding: 3px; object-fit: contain; }
.cc-footer-brand strong { color: #fff; font-family: var(--cc-heading-font); font-size: 20px; }
.cc-socials { display: flex; gap: 10px; margin-top: 18px; }
.cc-socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; }
.cc-socials a:hover { background: var(--cc-primary); color: #fff; }
.cc-footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.cc-footer-contact i { color: var(--cc-primary); margin-top: 5px; width: 16px; text-align: center; }
.cc-footer-contact strong { color: #fff; font-weight: 700; }
.cc-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0; font-size: 14px; }
.cc-footer-bottom-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }

/* ==========================================================================
   AI chat widget
   ========================================================================== */
.cc-chat { position: fixed; right: 22px; bottom: 22px; z-index: 9999; font-family: var(--cc-body-font); }
.cc-chat-toggle {
	width: 62px; height: 62px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--cc-primary); color: #fff; font-size: 24px; box-shadow: 0 12px 30px rgba(242,107,29,.45);
	display: grid; place-items: center; transition: transform .2s ease, background .2s ease; margin-left: auto;
}
.cc-chat-toggle:hover { transform: scale(1.06); background: var(--cc-primary-dark); }
.cc-chat-close-icon { display: none; }
.cc-chat.is-open .cc-chat-open-icon { display: none; }
.cc-chat.is-open .cc-chat-close-icon { display: inline-block; }
.cc-chat-panel {
	position: absolute; right: 0; bottom: 78px; width: 360px; max-width: calc(100vw - 32px); height: 500px; max-height: calc(100vh - 120px);
	background: #fff; border-radius: 22px; box-shadow: var(--cc-shadow-lg); display: flex; flex-direction: column; overflow: hidden;
}
.cc-chat-panel[hidden] { display: none; }
.cc-chat-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--cc-dark); color: #fff; }
.cc-chat-head img { width: 38px; height: 38px; border-radius: 10px; background: #fff; padding: 2px; object-fit: contain; }
.cc-chat-head strong { display: block; font-family: var(--cc-heading-font); }
.cc-chat-head small { opacity: .7; font-size: 12px; }
.cc-chat-log { flex: 1; overflow-y: auto; padding: 18px; background: var(--cc-cream); display: flex; flex-direction: column; gap: 10px; }
.cc-msg { max-width: 85%; padding: 11px 15px; border-radius: 16px; font-size: 15px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.cc-msg-bot { background: #fff; color: var(--cc-text); border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 2px 8px rgba(43,36,33,.06); }
.cc-msg-user { background: var(--cc-primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cc-msg-typing { display: inline-flex; gap: 4px; }
.cc-msg-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--cc-muted); animation: cc-bounce 1s infinite; }
.cc-msg-typing span:nth-child(2) { animation-delay: .15s; }
.cc-msg-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes cc-bounce { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }
.cc-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--cc-line); }
.cc-chat-form input { flex: 1; border: 2px solid var(--cc-line); border-radius: 50px; padding: 10px 16px; font: inherit; font-size: 15px; }
.cc-chat-form input:focus { outline: none; border-color: var(--cc-primary); }
.cc-chat-form button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--cc-primary); color: #fff; cursor: pointer; }
.cc-chat-foot { margin: 0; padding: 0 12px 10px; font-size: 12px; color: var(--cc-muted); text-align: center; }
@media (max-width: 480px) { .cc-chat { right: 14px; bottom: 14px; } .cc-chat-panel { height: 70vh; } }

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 14px; color: var(--cc-muted); text-align: center; }
.sticky .cc-post-card-body { border-top: 4px solid var(--cc-primary); }
.bypostauthor > .comment-body { border-left: 4px solid var(--cc-primary); }

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