/*
Theme Name: BYD Info (GP Child)
Template: generatepress
Description: Чистый минималистичный дочерний дизайн для byd-info.uz
Version: 1.0.0
*/

:root{
	--byd-bg:#ffffff;
	--byd-page-bg:#f7f8f9;
	--byd-text:#1a1a1a;
	--byd-muted:#6b6b6b;
	--byd-border:#e6e6e6;
	--byd-accent:#c8102e;
	--byd-surface:#f7f7f7;
}

/* Page sits on a light grey background (vw-info.uz's --base-2); the
   article, sidebar widgets etc. stay white "cards" on top of it — that
   contrast already comes from GeneratePress's own "separate containers"
   style (.inside-article / .sidebar .widget use --base-3, untouched
   white), so only the body background itself needs setting here. */
body{
	color:var(--byd-text);
	background:var(--byd-page-bg);
	font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
	-webkit-font-smoothing:antialiased;
}

a{ color:var(--byd-accent); text-decoration:none; }
a:hover{ text-decoration:underline; }

/* ---------- Header ---------- */
#site-navigation, .main-navigation{
	border-bottom:1px solid var(--byd-border);
	background:var(--byd-bg);
}
.inside-header{ padding-top:22px; padding-bottom:22px; }
.site-logo .header-image{ height:38px; width:auto; }
.site-logo .site-title, .main-title a{
	font-weight:700;
	letter-spacing:-0.02em;
	color:var(--byd-text) !important;
	font-size:22px;
}
.site-description{ display:none; }

.main-navigation .main-nav ul li a{
	color:var(--byd-text);
	font-weight:500;
	font-size:15px;
	text-transform:none;
	padding:10px 16px;
}
.main-navigation .main-nav ul li a:hover{ color:var(--byd-accent); }

/* language switcher */
.byd-lang-switch{
	display:flex;
	gap:6px;
	align-items:center;
	margin-left:12px;
}
.byd-lang-switch a{
	font-size:13px;
	font-weight:600;
	color:var(--byd-muted);
	border:1px solid var(--byd-border);
	border-radius:20px;
	padding:4px 12px;
}
.byd-lang-switch a.active{
	color:#fff;
	background:var(--byd-text);
	border-color:var(--byd-text);
}
.byd-lang-switch a:hover{ text-decoration:none; border-color:var(--byd-text); }

/* ---------- Breadcrumb ---------- */
.byd-breadcrumb{
	padding:18px 20px 0;
	font-size:13px;
	color:var(--byd-muted);
}
.byd-breadcrumb a{ color:var(--byd-muted); }
.byd-breadcrumb a:hover{ color:var(--byd-accent); }
.byd-breadcrumb .sep{ margin:0 6px; color:#c9c9c9; }

/* ---------- Hero ---------- */
.byd-hero{
	margin:20px 0 0;
	padding:0 20px;
}
.byd-hero-img{
	width:100%;
	border-radius:6px;
	overflow:hidden;
	background:var(--byd-surface);
	aspect-ratio:16/9;
	display:flex;
	align-items:center;
	justify-content:center;
}
.byd-hero-img img{
	width:100%;
	height:100%;
	object-fit:cover;
	display:block;
}

/* ---------- Content ---------- */
.entry-content{
	font-size:17px;
	line-height:1.75;
	color:var(--byd-text);
}
.entry-title{
	margin:28px 0 6px !important;
	padding:0 20px;
	font-size:clamp(26px,4vw,38px);
	font-weight:700;
	letter-spacing:-0.02em;
	line-height:1.2;
}
.entry-content{ padding:0 20px 10px; }
.entry-content h2{
	font-size:24px;
	font-weight:700;
	margin:44px 0 16px;
	letter-spacing:-0.01em;
}
.entry-content h3{
	font-size:19px;
	font-weight:600;
	margin:28px 0 12px;
}
.entry-content p{ margin:0 0 18px; }
.entry-content ul{ margin:0 0 18px; padding-left:22px; }
.entry-content li{ margin-bottom:8px; }
.entry-content strong{ font-weight:600; }

/* Spec tables, in case content includes them */
.entry-content table{
	width:100%;
	border-collapse:collapse;
	margin:0 0 24px;
	font-size:15px;
}
.entry-content table td,
.entry-content table th{
	border:1px solid var(--byd-border);
	padding:10px 12px;
	text-align:left;
	vertical-align:top;
}
.entry-content table th{ background:var(--byd-surface); font-weight:600; }

/* Inline content images (uniform crop, matches card/hero treatment) */
.entry-content img{
	width:100%;
	aspect-ratio:16/9;
	object-fit:cover;
	border-radius:6px;
	display:block;
}
.entry-content figure{ margin:0 0 24px; }
.entry-content figcaption{
	font-size:13px;
	color:var(--byd-muted);
	margin-top:8px;
}

.byd-model-badge{
	display:inline-block;
	font-size:12px;
	font-weight:600;
	color:var(--byd-muted);
	background:var(--byd-surface);
	border-radius:20px;
	padding:5px 12px;
	margin:0 0 14px;
}
.byd-model-badge-wrap{ padding:0 20px; }

/* ---------- Child page cards (hub pages) ---------- */
.byd-card-grid{
	margin:36px 0 0;
	padding:0 20px 10px;
	display:grid;
	grid-template-columns:repeat(auto-fill,minmax(230px,1fr));
	gap:16px;
}
.byd-card{
	display:block;
	border:1px solid var(--byd-border);
	border-radius:14px;
	overflow:hidden;
	background:var(--byd-bg);
	transition:box-shadow .15s ease, transform .15s ease;
}
.byd-card:hover{
	box-shadow:0 8px 20px rgba(0,0,0,.12);
	text-decoration:none;
	transform:translateY(-2px);
}
.byd-card img{
	width:100%;
	aspect-ratio:16/9;
	object-fit:cover;
	display:block;
}
.byd-see-all{
	padding:0 20px;
}
.byd-see-all a{
	color:var(--byd-accent);
	font-weight:600;
	text-decoration:none;
}
.byd-see-all a:hover{ text-decoration:underline; }

.byd-card-title{
	display:block;
	font-weight:600;
	color:var(--byd-text);
	font-size:15px;
	line-height:1.4;
	padding:14px 16px;
}

/* ---------- Primary nav dropdown / mega-menu ---------- */
.main-navigation .mega-menu{ position:relative; }

.main-navigation .mega-menu > .sub-menu{
	width:min(880px,92vw);
	padding:24px 28px;
	box-sizing:border-box;
	column-gap:32px;
	box-shadow:0 12px 28px rgba(0,0,0,.15);
}

.main-navigation .mega-menu--cols2 > .sub-menu{
	column-count:2;
}

.main-navigation .mega-menu--cols6 > .sub-menu{
	width:min(1180px,94vw);
	column-count:6;
}

.main-navigation .mega-menu > .sub-menu > li{
	width:100%;
	break-inside:avoid;
	float:none;
}

.main-navigation .mega-menu > .sub-menu > li > a{
	padding:6px 10px;
	font-size:13px;
	line-height:1.35;
	white-space:normal;
}

.main-navigation .mega-menu-heading{
	break-before:column;
	margin-top:4px;
}
.main-navigation .mega-menu-heading:first-child{
	break-before:avoid;
}
.main-navigation .mega-menu-heading > a{
	pointer-events:none;
	font-size:11px;
	font-weight:700;
	letter-spacing:.06em;
	text-transform:uppercase;
	color:var(--byd-muted);
	padding-bottom:8px;
	padding-top:12px;
	border-bottom:1px solid rgba(0,0,0,.08);
	margin-bottom:4px;
}

/* Keep the mega panel from opening off the left/right edge of the viewport. */
.main-navigation:not(.toggled) ul li.mega-menu:hover > .sub-menu,
.main-navigation:not(.toggled) ul li.mega-menu.sfHover > .sub-menu{
	left:50%;
	transform:translateX(-50%);
}

@media (max-width:768px){
	.main-navigation .mega-menu > .sub-menu{
		width:100%;
		column-count:1;
		box-shadow:none;
	}
	.main-navigation .mega-menu-heading{
		break-before:auto;
	}
}

/* ---------- Sidebar sections menu ---------- */
.byd-sidebar-menu{ list-style:none; margin:0; padding:0; }
.byd-sidebar-menu li{ border-bottom:1px solid var(--byd-border); }
.byd-sidebar-menu li:last-child{ border-bottom:none; }
.byd-sidebar-menu a{
	display:block;
	padding:10px 0;
	color:var(--byd-text);
	font-size:14px;
}
.byd-sidebar-menu a:hover{ color:var(--byd-accent); text-decoration:none; }

/* ---------- FAQ accordion ---------- */
.byd-faq{
	margin:36px 0 0;
	padding:0 20px 40px;
}
.byd-faq h2{ font-size:22px; font-weight:700; margin-bottom:16px; }
.byd-faq details{
	border-bottom:1px solid var(--byd-border);
	padding:16px 0;
}
.byd-faq summary{
	cursor:pointer;
	font-weight:600;
	font-size:16px;
	list-style:none;
	position:relative;
	padding-right:28px;
}
.byd-faq summary::-webkit-details-marker{ display:none; }
.byd-faq summary::after{
	content:"+";
	position:absolute;
	right:0; top:0;
	font-size:20px;
	color:var(--byd-muted);
}
.byd-faq details[open] summary::after{ content:"\2212"; }
.byd-faq p{ margin:12px 0 0; color:var(--byd-muted); line-height:1.65; }

/* ---------- Footer ---------- */
/* Copied 1:1 from vw-ishqiboz.uz's footer.css — same properties, same
   values, same order; only the selectors are renamed to match our own
   markup (byd-footer-wrap/byd-footer-col/etc. instead of GP's native
   footer-widgets-container/footer-widget-N, since our footer is built via
   a PHP hook rather than widgets — see the language switch note in
   README.md). */
.site-footer,
.site-info {
	background-color: #001e50;
	color: #ffffff;
}

.site-footer a,
.site-info a { color: #ffffff; }

.site-footer a:hover,
.site-info a:hover { color: #9fc6ff; }

/* GP's own "site-info" footer (copyright-bar / footer-bar) is now empty —
   byd-footer-note below already carries the site's own copyright — so
   it's hidden outright instead of left as a blank strip in the DOM. */
.site-info{ display:none; }

/* Keep the site's own global side gutters — only change the internal
   layout: about-column >=40%, menu/contacts pushed toward the right via
   space-between instead of clustering after column 1. */
.byd-footer-wrap {
	max-width: 1200px;
	margin: 0 auto;
	padding: 40px 20px;
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-start;
	gap: 32px;
	font-size: 14px;
}

.byd-footer-about {
	flex: 0 1 40%;
	min-width: 260px;
}

.byd-footer-col:not(.byd-footer-about) {
	flex: 0 1 auto;
}

.byd-footer-about p {
	margin: 0 0 10px;
}

@media (max-width: 768px) {
	.byd-footer-wrap {
		justify-content: flex-start;
	}
	.byd-footer-about {
		flex-basis: 100%;
	}
}

.byd-footer-title {
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	font-size: 13px;
	margin-bottom: 12px;
	color: #ffffff;
}

.byd-footer-menu-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.byd-footer-menu-list li {
	margin-bottom: 6px;
}

.byd-footer-col p{ margin:0; }

.byd-footer-note {
	text-align: center;
	padding: 16px 20px;
	font-size: 13px;
	border-top: 1px solid rgba(255, 255, 255, 0.15);
}
