/*
Theme Name: DAH Theme
Theme URI: http://www.dollarathome.com
Description: Bold, high-converting theme for Dollar At Home – dark navy & gold.
Author: Dollar At Home
Version: 1.0
Text Domain: dah-theme
*/

/* =====================================================================
   VARIABLES & RESET
   ===================================================================== */
:root {
	--navy:      #1a2440;
	--navy-dark: #111827;
	--gold:      #c9a227;
	--gold-lt:   #e8c048;
	--white:     #ffffff;
	--light-bg:  #f4f6f9;
	--border:    #dde2ea;
	--text:      #222222;
	--muted:     #666666;
	--red:       #e74c3c;
	--radius:    6px;
	--shadow:    0 4px 24px rgba(26,36,64,.13);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
	font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
	font-size: 16px;
	line-height: 1.7;
	color: var(--text);
	background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-lt); }

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

p { margin-bottom: 1rem; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }

/* =====================================================================
   LAYOUT UTILITIES
   ===================================================================== */
.container {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 20px;
}

.container-wide {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 24px;
}

.row {
	display: flex;
	flex-wrap: wrap;
	margin: 0 -12px;
}

.col { padding: 0 12px; box-sizing: border-box; }
.col-6  { width: 50%; }
.col-4  { width: 33.333%; }
.col-3  { width: 25%; }
.col-8  { width: 66.666%; }
.col-12 { width: 100%; }

.text-center { text-align: center; }
.text-left   { text-align: left; }
.text-right  { text-align: right; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }

/* =====================================================================
   SITE HEADER & NAVIGATION
   ===================================================================== */
#site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--navy);
	box-shadow: 0 2px 16px rgba(0,0,0,.3);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 24px;
	height: 70px;
}

/* Logo */
.site-logo a {
	color: var(--white);
	font-size: 1.5rem;
	font-weight: 800;
	letter-spacing: -.5px;
}

.site-logo span { color: var(--gold); }

/* Nav */
#primary-nav ul {
	list-style: none;
	display: flex;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 0;
}

#primary-nav ul li { position: relative; }

#primary-nav ul li a {
	display: block;
	padding: 8px 16px;
	color: rgba(255,255,255,.85);
	font-size: .92rem;
	font-weight: 500;
	border-radius: var(--radius);
	transition: background .2s, color .2s;
}

#primary-nav ul li a:hover,
#primary-nav ul li.current-menu-item > a,
#primary-nav ul li.current-page-ancestor > a {
	background: rgba(201,162,39,.15);
	color: var(--gold);
}

/* Dropdown */
#primary-nav ul li ul {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: var(--navy-dark);
	min-width: 200px;
	border-top: 3px solid var(--gold);
	border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow);
	flex-direction: column;
	gap: 0;
}

#primary-nav ul li:hover > ul { display: flex; }

#primary-nav ul li ul li a {
	border-radius: 0;
	padding: 10px 20px;
	font-size: .88rem;
	border-bottom: 1px solid rgba(255,255,255,.06);
}

/* CTA button in nav */
.nav-cta a {
	background: var(--gold) !important;
	color: var(--navy) !important;
	font-weight: 700 !important;
	padding: 8px 20px !important;
}
.nav-cta a:hover { background: var(--gold-lt) !important; }

/* Hamburger */
.nav-toggle {
	display: none;
	background: none;
	border: 2px solid rgba(255,255,255,.4);
	border-radius: var(--radius);
	color: var(--white);
	font-size: 1.4rem;
	padding: 4px 10px;
	cursor: pointer;
}

/* =====================================================================
   HERO SECTION (front-page)
   ===================================================================== */
.hero-section {
	background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, #243060 100%);
	min-height: calc(100vh - 70px);
	display: flex;
	align-items: center;
	position: relative;
	overflow: hidden;
	padding: 60px 0;
}

.hero-section::before {
	content: '';
	position: absolute;
	inset: 0;
	background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23c9a227' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-inner {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: flex-start;
	gap: 48px;
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 24px;
}

.hero-text { flex: 1 1 420px; color: var(--white); }

.hero-eyebrow {
	display: inline-block;
	background: rgba(201,162,39,.2);
	color: var(--gold);
	font-size: .8rem;
	font-weight: 700;
	letter-spacing: 2px;
	text-transform: uppercase;
	padding: 4px 14px;
	border-radius: 20px;
	border: 1px solid rgba(201,162,39,.4);
	margin-bottom: 20px;
}

.hero-text h1 {
	color: var(--white);
	font-size: clamp(2rem, 4vw, 3.2rem);
	line-height: 1.15;
	margin-bottom: 20px;
}

.hero-text h1 em {
	font-style: normal;
	color: var(--gold);
}

.hero-text p {
	color: rgba(255,255,255,.75);
	font-size: 1.05rem;
	margin-bottom: 28px;
	max-width: 480px;
}

.hero-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	margin-top: 32px;
}

.trust-badge {
	display: flex;
	align-items: center;
	gap: 8px;
	background: rgba(255,255,255,.07);
	border: 1px solid rgba(255,255,255,.12);
	border-radius: var(--radius);
	padding: 8px 14px;
	color: rgba(255,255,255,.8);
	font-size: .82rem;
}

.trust-badge .icon {
	color: var(--gold);
	font-size: 1.1rem;
}

/* Hero form card */
.hero-form-card {
	flex: 0 0 420px;
	background: var(--white);
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0,0,0,.4);
	padding: 32px 28px;
	border-top: 4px solid var(--gold);
}

.hero-form-card h2 {
	font-size: 1.25rem;
	color: var(--navy);
	margin-bottom: 4px;
}

.hero-form-card .form-subtitle {
	color: var(--muted);
	font-size: .88rem;
	margin-bottom: 20px;
}

/* =====================================================================
   FORM STYLES (shared across hero card & inner pages)
   ===================================================================== */
.dah-form .form-group { margin-bottom: .75rem; }

.dah-form .form-row {
	display: flex;
	gap: 10px;
}

.dah-form .form-row .form-group { flex: 1; }

.dah-form .form-control,
.dah-form input[type="text"],
.dah-form input[type="email"],
.dah-form input[type="number"],
.dah-form input[type="tel"],
.dah-form select,
.dah-form textarea {
	width: 100%;
	height: 46px;
	padding: 0 14px;
	font-size: .92rem;
	color: var(--text);
	background: #f9fafc;
	border: 1.5px solid var(--border);
	border-radius: var(--radius);
	transition: border-color .2s, box-shadow .2s;
	-webkit-appearance: none;
	appearance: none;
	outline: none;
	box-sizing: border-box;
}

.dah-form select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 36px; }

.dah-form .form-control:focus,
.dah-form input:focus,
.dah-form select:focus {
	border-color: var(--gold);
	box-shadow: 0 0 0 3px rgba(201,162,39,.15);
	background: var(--white);
}

.dah-form label {
	display: block;
	font-size: .82rem;
	font-weight: 600;
	color: var(--navy);
	margin-bottom: 5px;
}

.dah-form .field-note {
	font-size: .8rem;
	color: var(--muted);
	margin-top: 4px;
	display: block;
}

.dah-form .error-msg { color: var(--red); font-size: .78rem; margin-top: 3px; display: block; }

/* Submit button */
.btn-submit {
	display: block;
	width: 100%;
	padding: 14px 24px;
	background: var(--gold);
	color: var(--navy);
	font-weight: 800;
	font-size: 1rem;
	border: none;
	border-radius: var(--radius);
	cursor: pointer;
	text-transform: uppercase;
	letter-spacing: .5px;
	transition: background .2s, transform .1s, box-shadow .2s;
	margin-top: 4px;
}

.btn-submit:hover {
	background: var(--gold-lt);
	box-shadow: 0 6px 20px rgba(201,162,39,.4);
	transform: translateY(-1px);
}

.btn-submit:active { transform: translateY(0); }

.form-disclaimer {
	font-size: .75rem;
	color: var(--muted);
	text-align: center;
	margin-top: 10px;
	line-height: 1.5;
}

/* OTP group */
.otp-group {
	display: flex;
	gap: 8px;
	align-items: stretch;
}

.otp-group input { flex: 1; }

.btn-otp {
	white-space: nowrap;
	background: var(--navy);
	color: var(--white);
	border: none;
	border-radius: var(--radius);
	padding: 0 14px;
	font-size: .82rem;
	font-weight: 600;
	cursor: pointer;
	transition: background .2s;
}

.btn-otp:hover { background: #243060; }

/* =====================================================================
   SECTION STYLES
   ===================================================================== */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-bg { background: var(--light-bg); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,.8); }

.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 12px; }
.section-header p { color: var(--muted); font-size: 1.05rem; max-width: 560px; margin: 0 auto; }

.gold-line {
	display: block;
	width: 56px;
	height: 3px;
	background: var(--gold);
	margin: 12px auto 0;
	border-radius: 2px;
}

/* =====================================================================
   BENEFIT CARDS
   ===================================================================== */
.benefit-card {
	background: var(--white);
	border-radius: 10px;
	padding: 28px 24px;
	box-shadow: 0 2px 16px rgba(26,36,64,.08);
	border-left: 4px solid var(--gold);
	margin-bottom: 24px;
	transition: box-shadow .2s, transform .2s;
}

.benefit-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.benefit-card .card-icon {
	font-size: 2rem;
	margin-bottom: 12px;
}

.benefit-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.benefit-card p { color: var(--muted); font-size: .92rem; margin: 0; }

/* =====================================================================
   COMPANY CARDS
   ===================================================================== */
.company-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 20px;
}

.company-card {
	background: var(--white);
	border-radius: 10px;
	padding: 24px 16px;
	text-align: center;
	box-shadow: 0 2px 12px rgba(26,36,64,.07);
	border: 1px solid var(--border);
	transition: box-shadow .2s, border-color .2s;
}

.company-card:hover {
	box-shadow: var(--shadow);
	border-color: var(--gold);
}

.company-card img { max-height: 60px; width: auto; margin: 0 auto 12px; }
.company-card h3 { font-size: .95rem; color: var(--navy); }

/* =====================================================================
   BLOG / POSTS
   ===================================================================== */
.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 28px;
}

.post-card {
	background: var(--white);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(26,36,64,.07);
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s;
}

.post-card:hover { box-shadow: var(--shadow); }

.post-card-thumb img { width: 100%; height: 200px; object-fit: cover; }

.post-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }

.post-meta {
	font-size: .78rem;
	color: var(--muted);
	margin-bottom: 8px;
}

.post-meta span { margin-right: 12px; }

.post-card-body h2 {
	font-size: 1.05rem;
	margin-bottom: 10px;
	line-height: 1.35;
}

.post-card-body h2 a { color: var(--navy); }
.post-card-body h2 a:hover { color: var(--gold); }

.post-card-body p {
	color: var(--muted);
	font-size: .88rem;
	flex: 1;
	margin-bottom: 16px;
}

.read-more {
	display: inline-block;
	font-size: .82rem;
	font-weight: 700;
	color: var(--gold);
	text-transform: uppercase;
	letter-spacing: .5px;
}

/* =====================================================================
   SINGLE POST / PAGE CONTENT
   ===================================================================== */
.entry-content {
	max-width: 780px;
	margin: 0 auto;
}

.entry-content h1, .entry-content h2, .entry-content h3 { margin-top: 1.6rem; margin-bottom: .6rem; }
.entry-content ul, .entry-content ol { margin-bottom: 1rem; }
.entry-content img { border-radius: var(--radius); margin: 1rem 0; }
.entry-content blockquote {
	border-left: 4px solid var(--gold);
	padding: 12px 20px;
	margin: 1.5rem 0;
	background: var(--light-bg);
	border-radius: 0 var(--radius) var(--radius) 0;
	color: var(--muted);
	font-style: italic;
}

/* Fullwidth content area (no sidebar) */
.fullwidth-content { width: 100%; }

/* =====================================================================
   PAGE HERO / INNER BANNER
   ===================================================================== */
.page-banner {
	background: var(--navy);
	padding: 52px 24px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.page-banner::after {
	content: '';
	position: absolute;
	bottom: 0; left: 0; right: 0;
	height: 4px;
	background: linear-gradient(90deg, var(--gold), var(--gold-lt), var(--gold));
}

.page-banner h1 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.5rem); }
.page-banner .breadcrumb { color: rgba(255,255,255,.6); font-size: .82rem; margin-top: 8px; }
.page-banner .breadcrumb a { color: var(--gold); }

/* =====================================================================
   SIDEBAR
   ===================================================================== */
.sidebar-widget {
	background: var(--white);
	border-radius: 10px;
	padding: 24px;
	border: 1px solid var(--border);
	margin-bottom: 28px;
}

.sidebar-widget h3 {
	font-size: 1rem;
	color: var(--navy);
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--gold);
}

.sidebar-widget ul { padding-left: 0; list-style: none; }
.sidebar-widget ul li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.sidebar-widget ul li:last-child { border-bottom: none; }

/* =====================================================================
   FOOTER
   ===================================================================== */
#site-footer {
	background: var(--navy-dark);
	color: rgba(255,255,255,.7);
	padding: 56px 0 0;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 40px;
	padding-bottom: 40px;
}

.footer-brand .logo-text {
	font-size: 1.4rem;
	font-weight: 800;
	color: var(--white);
	margin-bottom: 12px;
	display: block;
}

.footer-brand .logo-text span { color: var(--gold); }

.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 {
	color: var(--white);
	font-size: .92rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 16px;
}

.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,.6); font-size: .88rem; transition: color .2s; }
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,.08);
	padding: 20px 0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: .82rem;
	color: rgba(255,255,255,.4);
}

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: var(--radius);
	font-weight: 700;
	font-size: .92rem;
	cursor: pointer;
	transition: all .2s;
	text-align: center;
	border: 2px solid transparent;
}

.btn-primary {
	background: var(--gold);
	color: var(--navy);
}
.btn-primary:hover { background: var(--gold-lt); color: var(--navy); box-shadow: 0 6px 20px rgba(201,162,39,.4); }

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

.btn-white {
	background: var(--white);
	color: var(--navy);
}
.btn-white:hover { background: var(--gold); color: var(--navy); }

/* =====================================================================
   PAGINATION
   ===================================================================== */
.pagination {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin: 48px 0 0;
}

.pagination a, .pagination span {
	display: inline-block;
	padding: 8px 14px;
	border-radius: var(--radius);
	border: 1.5px solid var(--border);
	font-size: .88rem;
	color: var(--navy);
	font-weight: 600;
	transition: all .2s;
}

.pagination a:hover, .pagination .current {
	background: var(--gold);
	border-color: var(--gold);
	color: var(--navy);
}

/* =====================================================================
   THANK YOU / UTILITY PAGES
   ===================================================================== */
.thankyou-wrap {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	padding: 80px 24px;
}

.thankyou-box {
	max-width: 560px;
}

.thankyou-box .check-icon {
	font-size: 4rem;
	color: var(--gold);
	margin-bottom: 20px;
	display: block;
}

.thankyou-box h1 { font-size: 2rem; margin-bottom: 16px; }
.thankyou-box p { color: var(--muted); margin-bottom: 28px; }

/* =====================================================================
   404 PAGE
   ===================================================================== */
.error404-wrap {
	text-align: center;
	padding: 100px 24px;
}

.error404-wrap .error-num {
	font-size: 8rem;
	font-weight: 900;
	color: var(--gold);
	line-height: 1;
	display: block;
}

.error404-wrap h1 { font-size: 2rem; margin-bottom: 12px; }
.error404-wrap p { color: var(--muted); margin-bottom: 28px; }

/* =====================================================================
   LEGACY SHORTCODE FALLBACKS (stripped VC content)
   ===================================================================== */
.featured-box {
	background: var(--white);
	border-left: 4px solid var(--gold);
	border-radius: var(--radius);
	padding: 14px 18px;
	margin-bottom: 1rem;
	box-shadow: 0 2px 8px rgba(26,36,64,.07);
}
.featured-box strong { display: block; color: var(--navy); margin-bottom: 4px; }
.featured-box div { color: var(--muted); font-size: .92rem; }

/* =====================================================================
   WORDPRESS CORE CLASSES
   ===================================================================== */
.alignleft  { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { display: block; margin: 0 auto 1rem; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .8rem; color: var(--muted); text-align: center; }
.sticky { border-left: 3px solid var(--gold); padding-left: 16px; }
.screen-reader-text { position: absolute; left: -9999px; }

/* =====================================================================
   VISUAL COMPOSER OVERRIDES
   ===================================================================== */
.vc_row { margin-bottom: 0 !important; }
.wpb_content_element { margin-bottom: 1.5rem !important; }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1024px) {
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.hero-inner { flex-direction: column; }
	.hero-form-card { flex: none; width: 100%; max-width: 540px; margin: 0 auto; }
}

@media (max-width: 768px) {
	.nav-toggle { display: block; }
	#primary-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-dark); padding: 16px; }
	#primary-nav.open { display: block; }
	#primary-nav ul { flex-direction: column; gap: 0; }
	#primary-nav ul li ul { display: block; position: static; box-shadow: none; border-top: none; background: rgba(255,255,255,.06); border-radius: var(--radius); margin: 4px 0; }
	.col-6, .col-4, .col-3, .col-8 { width: 100%; }
	.dah-form .form-row { flex-direction: column; gap: 0; }
	.footer-grid { grid-template-columns: 1fr; }
	.footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
	.hero-section { padding: 40px 0; }
}

@media (max-width: 480px) {
	.hero-text h1 { font-size: 1.7rem; }
	.hero-trust { flex-direction: column; }
}
