/*
Theme Name: Richman Astra Child
Description: Richman - Gold, Silver & Copper Bar Manufacturer in Bangladesh. Premium designed pages, WhatsApp, built-in SEO, footer and automatic setup.
Author: Richman
Template: astra
Version: 4.4
Text Domain: richman-astra-child
*/

/* ==== RICHMAN SITE-WIDE STYLES ====
   Font: Google Sans (headings + text)
   Colours: white, ivory, silver, deep blue #14213d, antique gold #b08d3c */

body {
	font-family: 'Google Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	color: #4a5363;
	background: #fff;
}
h1, h2 { font-family: 'Google Sans', system-ui, sans-serif; font-weight: 500; color: #14213d; }
h3, h4, h5, h6 { font-family: 'Google Sans', system-ui, sans-serif; font-weight: 500; color: #14213d; }
a { color: #2b4c7e; }
a:hover { color: #94742b; }

/* ---- Header: white bar, dark-blue menu (forced so Astra settings cannot hide it) ---- */
.ast-primary-header-bar,
.main-header-bar,
#masthead .ast-primary-header-bar {
	background: #fff !important;
	border-bottom: 1px solid #e6e3dc !important;
	box-shadow: none !important;
}
.main-header-menu .menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu .menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu > .menu-item > .menu-link,
#ast-hf-menu-1 > .menu-item > .menu-link,
.ast-header-break-point .main-header-menu .menu-item > .menu-link,
.ast-mobile-popup-drawer .main-header-menu .menu-item > .menu-link {
	color: #14213d !important;
	font-family: 'Google Sans', system-ui, sans-serif !important;
	font-size: 13px !important;
	font-weight: 500 !important;
	letter-spacing: .12em;
	text-transform: uppercase;
}
/* hover: soft gold tint */
.main-header-menu .menu-item:hover > .menu-link,
.ast-builder-menu-1 .main-header-menu .menu-item:hover > .menu-link {
	color: #94742b !important;
	background: #f7f1e3 !important;
}
/* current page: fully filled block */
.main-header-menu .current-menu-item > .menu-link,
.main-header-menu .current_page_item > .menu-link,
.ast-builder-menu-1 .main-header-menu .current-menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu .current_page_item > .menu-link,
.ast-builder-menu-1 .main-header-menu .current-menu-item:hover > .menu-link,
.ast-mobile-popup-drawer .main-header-menu .current-menu-item > .menu-link,
#ast-hf-menu-1 > .current-menu-item > .menu-link,
#ast-hf-menu-1 > .current_page_item > .menu-link,
#ast-hf-mobile-menu > .current-menu-item > .menu-link {
	color: #14213d !important;
	font-weight: 600 !important;
	background: #b08d3c !important;
	box-shadow: none !important;
}
.main-header-menu .sub-menu { display: none !important; }
.main-header-menu .ast-menu-toggle,
.main-header-menu .dropdown-menu-toggle { display: none !important; }
.ast-mobile-popup-drawer .ast-mobile-popup-inner { background: #fff !important; }
.ast-mobile-menu-trigger-minimal,
.menu-toggle,
.ast-button-wrap .menu-toggle { color: #14213d !important; background: transparent !important; }
.menu-toggle .ast-mobile-svg,
.ast-button-wrap .menu-toggle svg { fill: #14213d !important; }

/* ---- Footer ---- */
.rw-footer {
	font-family: 'Google Sans', system-ui, sans-serif;
	background: #fbf9f4;
	border-top: 1px solid #e6e3dc;
	color: #4a5363;
}
.rw-footer-top {
	max-width: 1180px;
	margin: 0 auto;
	padding: 48px 24px 36px;
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
	gap: 36px;
}
.rw-footer h4 {
	font-family: 'Google Sans', system-ui, sans-serif;
	color: #14213d;
	font-size: 17px;
	font-weight: 500;
	margin: 0 0 18px;
	padding-bottom: 14px;
	position: relative;
}
.rw-footer h4::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 32px;
	height: 1px;
	background: #b08d3c;
}
.rw-footer-brand .custom-logo-link { display: inline-block; margin-bottom: 18px; }
.rw-footer-brand .custom-logo { width: 150px; height: auto; max-width: 100%; }
.rw-footer-name { font-family: 'Google Sans', system-ui, sans-serif; font-size: 24px; color: #14213d; text-decoration: none; }
.rw-footer-brand p { font-size: 14.5px; line-height: 1.75; margin: 0 0 18px; }
.rw-footer-wa {
	display: inline-block;
	font-size: 12.5px;
	font-weight: 500;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #14213d !important;
	text-decoration: none !important;
	border-bottom: 1px solid #b08d3c;
	padding-bottom: 4px;
}
.rw-footer-wa:hover { color: #94742b !important; }
.rw-footer-menu,
.rw-footer-contact { list-style: none; margin: 0; padding: 0; }
.rw-footer-menu li { margin: 0 0 11px; }
.rw-footer-menu a {
	color: #4a5363;
	text-decoration: none;
	font-size: 14.5px;
	transition: color .2s;
}
.rw-footer-menu a:hover { color: #94742b; }
.rw-footer-contact li { font-size: 14.5px; line-height: 1.65; margin: 0 0 12px; }
.rw-footer-contact a { color: #14213d; text-decoration: none; }
.rw-footer-contact a:hover { color: #94742b; }
.rw-footer-bottom {
	background: #14213d;
	color: rgba(255, 255, 255, .72);
	font-size: 13px;
	letter-spacing: .03em;
	padding: 20px 24px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 24px;
	justify-content: space-between;
}
.rw-footer-bottom span:last-child { color: #d8c08a; }
@media (min-width: 1228px) {
	.rw-footer-bottom { padding-left: calc((100% - 1132px) / 2); padding-right: calc((100% - 1132px) / 2); }
}
@media (max-width: 921px) {
	.rw-footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 544px) {
	.rw-footer-top { grid-template-columns: 1fr; padding-top: 40px; gap: 28px; }
	.rw-footer-bottom { justify-content: center; text-align: center; }
}

/* ---- Compact header: slim bar, smaller logo (overrides Astra header settings) ---- */
.ast-primary-header-bar.site-primary-header-wrap,
.ast-primary-header-bar .site-primary-header-wrap,
.ast-primary-header-bar .ast-builder-grid-row,
.main-header-bar .ast-builder-grid-row { min-height: 64px !important; }
.ast-primary-header-bar,
.main-header-bar { padding-top: 0 !important; padding-bottom: 0 !important; }
.site-header .site-branding,
.site-header .ast-site-identity { padding: 0 !important; }
.site-header .custom-logo-link img,
.site-header .custom-logo-link .custom-logo {
	width: 128px !important;
	max-width: 128px !important;
	height: auto !important;
}
.main-header-menu .menu-item > .menu-link,
.ast-builder-menu-1 .main-header-menu .menu-item > .menu-link,
#ast-hf-menu-1 > .menu-item > .menu-link {
	font-size: 12.5px !important;
	padding-left: 14px !important;
	padding-right: 14px !important;
	line-height: 1.2 !important;
	padding-top: 11px !important;
	padding-bottom: 11px !important;
	border-radius: 3px;
	transition: background .2s, color .2s;
}
@media (max-width: 921px) {
	.ast-primary-header-bar .site-primary-header-wrap,
	.ast-mobile-header-wrap .ast-primary-header-bar,
	.ast-primary-header-bar.site-primary-header-wrap,
	.ast-mobile-header-wrap .ast-primary-header-bar .ast-builder-grid-row { min-height: 58px !important; }
	.site-header .custom-logo-link img,
	.site-header .custom-logo-link .custom-logo { width: 112px !important; max-width: 112px !important; }
	.ast-mobile-popup-drawer .main-header-menu .menu-item > .menu-link { line-height: 1.4; padding-top: 14px !important; padding-bottom: 14px !important; }
}

/* ---- Fixed (sticky) header: stays at the top while scrolling ---- */
#masthead,
.site-header {
	position: sticky !important;
	top: 0;
	z-index: 999;
	background: #fff;
	box-shadow: 0 2px 14px rgba(20, 33, 61, .08);
}
.admin-bar #masthead,
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) {
	.admin-bar #masthead,
	.admin-bar .site-header { top: 46px; }
}
.ast-builder-menu-1 .main-header-menu { gap: 4px; }
.ast-builder-menu-1 .main-header-menu > .menu-item { display: flex; align-items: center; }
.ast-mobile-popup-drawer .main-header-menu .menu-item > .menu-link { border-radius: 0; }
