/* ============================================================
   Servize Hyundai Plovdiv — Site chrome
   Top banner, sticky nav + dropdown, mobile slide-in panel,
   footer, back-to-top. Loaded on EVERY page.
   ============================================================ */

/* ===== Top banner ===== */

.shp-top-banner {
	background: var(--shp-accent);
	color: #04222e;
	font-size: var(--shp-text-sm);
	font-weight: 500;
}
.shp-top-banner-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--shp-space-4);
	padding-top: 8px;
	padding-bottom: 8px;
}
.shp-top-banner-meta {
	display: flex;
	align-items: center;
	gap: var(--shp-space-5);
	flex: none;
}
.shp-top-banner-phone {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #04222e;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}
.shp-top-banner-phone:hover { color: #04222e; text-decoration: underline; }
@media (max-width: 760px) {
	.shp-top-banner-text, .shp-top-banner-hours { display: none; }
	.shp-top-banner-row { justify-content: center; }
}

/* ===== Nav ===== */

.shp-nav-wrap {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(7, 13, 21, 0.88);
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--shp-line-soft);
}

.shp-header-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--shp-space-5);
	padding: 14px 0;
}

/* Logo */
.shp-logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	text-decoration: none;
	color: var(--shp-ink);
	font-family: var(--shp-font-heading);
	font-weight: 800;
	font-size: var(--shp-text-lg);
	flex: none;
}
.shp-logo:hover { color: var(--shp-ink); }
.shp-logo-mark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--shp-accent);
	color: #04222e;
	font-size: 13px;
	font-weight: 900;
	letter-spacing: 0.08em;
	padding: 7px 10px;
	border-radius: var(--shp-radius-sm);
}
.shp-logo-text em {
	font-style: normal;
	color: var(--shp-ink-soft);
	font-weight: 600;
}
.shp-logo--image img { max-height: 46px; width: auto; display: block; }

/* Links */
.shp-nav { display: flex; align-items: center; }
.shp-nav-links {
	display: flex;
	align-items: center;
	gap: var(--shp-space-2);
}
.shp-nav-links > a,
.shp-dropdown-toggle {
	font-family: var(--shp-font-body);
	font-size: 15px;
	font-weight: 600;
	color: var(--shp-ink-soft);
	text-decoration: none;
	padding: 10px 14px;
	border-radius: var(--shp-radius-pill);
	background: none;
	border: none;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: color var(--shp-duration) var(--shp-ease), background var(--shp-duration) var(--shp-ease);
}
.shp-nav-links > a:hover,
.shp-dropdown-toggle:hover {
	color: var(--shp-ink);
	background: var(--shp-surface);
}

/* Dropdown */
.shp-has-dropdown { position: relative; }
.shp-caret { transition: transform var(--shp-duration) var(--shp-ease); }
.shp-dropdown {
	position: absolute;
	top: calc(100% + 10px);
	left: 0;
	min-width: 300px;
	background: var(--shp-surface);
	border: 1px solid var(--shp-line);
	border-radius: var(--shp-radius);
	box-shadow: var(--shp-shadow-lg);
	padding: var(--shp-space-2);
	margin: 0;
	list-style: none;
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity var(--shp-duration) var(--shp-ease),
				transform var(--shp-duration) var(--shp-ease),
				visibility var(--shp-duration);
	z-index: 110;
}
.shp-has-dropdown:hover .shp-dropdown,
.shp-has-dropdown:focus-within .shp-dropdown,
.shp-dropdown-toggle[aria-expanded="true"] + .shp-dropdown {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.shp-has-dropdown:hover .shp-caret,
.shp-dropdown-toggle[aria-expanded="true"] .shp-caret { transform: rotate(180deg); }
.shp-dropdown a {
	display: block;
	padding: 10px 14px;
	color: var(--shp-ink-soft);
	text-decoration: none;
	font-size: 14.5px;
	font-weight: 500;
	border-radius: var(--shp-radius-sm);
	transition: background var(--shp-duration) var(--shp-ease), color var(--shp-duration) var(--shp-ease);
}
.shp-dropdown a:hover {
	background: var(--shp-surface-2);
	color: var(--shp-ink);
}
.shp-dropdown-all a {
	color: var(--shp-accent-bright);
	font-weight: 700;
	border-top: 1px solid var(--shp-line-soft);
	border-radius: 0 0 var(--shp-radius-sm) var(--shp-radius-sm);
	margin-top: 4px;
}

/* Header phone CTA */
.shp-nav-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--shp-accent);
	color: #04222e;
	font-family: var(--shp-font-heading);
	font-weight: 700;
	font-size: 15px;
	padding: 11px 20px;
	border-radius: var(--shp-radius-pill);
	text-decoration: none;
	white-space: nowrap;
	box-shadow: var(--shp-glow-accent);
	transition: background var(--shp-duration) var(--shp-ease), transform var(--shp-duration) var(--shp-ease);
	flex: none;
}
.shp-nav-cta:hover {
	background: var(--shp-accent-bright);
	color: #04222e;
	transform: translateY(-1px);
}

/* Burger */
.shp-menu-toggle {
	display: none;
	background: none;
	border: 1px solid var(--shp-line);
	border-radius: var(--shp-radius-sm);
	width: 44px;
	height: 44px;
	cursor: pointer;
	align-items: center;
	justify-content: center;
}
.shp-menu-toggle-icon,
.shp-menu-toggle-icon::before,
.shp-menu-toggle-icon::after,
.shp-menu-toggle-icon span {
	display: block;
	width: 20px;
	height: 2px;
	background: var(--shp-ink);
	border-radius: 2px;
}
.shp-menu-toggle-icon { position: relative; background: transparent; }
.shp-menu-toggle-icon::before,
.shp-menu-toggle-icon::after,
.shp-menu-toggle-icon span { position: absolute; left: 0; content: ''; }
.shp-menu-toggle-icon::before { top: -6px; }
.shp-menu-toggle-icon span { top: 0; }
.shp-menu-toggle-icon::after { top: 6px; }

@media (max-width: 900px) {
	.shp-nav-links { display: none; }
	.shp-menu-toggle { display: inline-flex; }
	.shp-nav-cta { display: none; }
}

/* ===== Mobile panel ===== */

.shp-mobile-panel {
	position: fixed;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(340px, 88vw);
	background: var(--shp-bg-soft);
	border-left: 1px solid var(--shp-line);
	z-index: 200;
	padding: 72px var(--shp-space-6) var(--shp-space-6);
	display: flex;
	flex-direction: column;
	gap: var(--shp-space-2);
	transform: translateX(100%);
	transition: transform 280ms var(--shp-ease);
	overflow-y: auto;
}
.shp-mobile-panel.is-open { transform: translateX(0); }
.shp-mobile-panel > a {
	color: var(--shp-ink);
	text-decoration: none;
	font-family: var(--shp-font-heading);
	font-weight: 700;
	font-size: var(--shp-text-lg);
	padding: 12px 0;
	border-bottom: 1px solid var(--shp-line-soft);
}
.shp-mobile-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: var(--shp-surface);
	border: 1px solid var(--shp-line);
	border-radius: 50%;
	width: 42px;
	height: 42px;
	color: var(--shp-ink);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.shp-mobile-group-toggle {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: none;
	border: none;
	border-bottom: 1px solid var(--shp-line-soft);
	color: var(--shp-ink);
	font-family: var(--shp-font-heading);
	font-weight: 700;
	font-size: var(--shp-text-lg);
	padding: 12px 0;
	cursor: pointer;
}
.shp-mobile-group-toggle svg { transition: transform var(--shp-duration) var(--shp-ease); }
.shp-mobile-group-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.shp-mobile-group-items {
	display: none;
	flex-direction: column;
	padding: var(--shp-space-2) 0 var(--shp-space-3) var(--shp-space-4);
}
.shp-mobile-group-toggle[aria-expanded="true"] + .shp-mobile-group-items { display: flex; }
.shp-mobile-group-items a {
	color: var(--shp-ink-soft);
	text-decoration: none;
	font-size: 15px;
	font-weight: 500;
	padding: 9px 0;
}
.shp-mobile-group-items a:hover { color: var(--shp-ink); }
.shp-mobile-cta {
	margin-top: auto;
	background: var(--shp-accent);
	color: #04222e !important;
	text-align: center;
	font-family: var(--shp-font-heading);
	font-weight: 700;
	padding: 14px 20px;
	border-radius: var(--shp-radius-pill);
	text-decoration: none;
	border-bottom: none !important;
}

.shp-mobile-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.6);
	z-index: 190;
	opacity: 0;
	visibility: hidden;
	transition: opacity 280ms var(--shp-ease), visibility 280ms;
}
.shp-mobile-panel.is-open ~ .shp-mobile-backdrop,
.shp-mobile-backdrop.is-visible {
	opacity: 1;
	visibility: visible;
}
body.shp-no-scroll { overflow: hidden; }

/* ===== Footer ===== */

.shp-footer {
	background: var(--shp-bg-soft);
	border-top: 1px solid var(--shp-line-soft);
	margin-top: var(--shp-space-9);
	padding: var(--shp-space-8) 0 var(--shp-space-5);
	font-size: 15px;
}
.shp-footer-grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr;
	gap: var(--shp-space-7);
	padding-bottom: var(--shp-space-7);
	border-bottom: 1px solid var(--shp-line-soft);
}
.shp-footer-brand p {
	color: var(--shp-ink-soft);
	margin: var(--shp-space-4) 0;
	max-width: 340px;
}
.shp-footer-social {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--shp-ink-soft);
	text-decoration: none;
	font-weight: 600;
}
.shp-footer-social:hover { color: var(--shp-ink); }
.shp-footer-col h3 {
	font-size: var(--shp-text-sm);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--shp-ink-muted);
	margin: 0 0 var(--shp-space-4);
}
.shp-footer-col ul {
	list-style: none;
	margin: 0;
	padding: 0;
}
.shp-footer-col li { margin-bottom: var(--shp-space-3); color: var(--shp-ink-soft); }
.shp-footer-col a {
	color: var(--shp-ink-soft);
	text-decoration: none;
}
.shp-footer-col a:hover { color: var(--shp-ink); }
.shp-footer-pages { margin-top: var(--shp-space-5) !important; }
.shp-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--shp-space-4);
	padding-top: var(--shp-space-5);
	color: var(--shp-ink-muted);
	font-size: var(--shp-text-sm);
	flex-wrap: wrap;
}
@media (max-width: 860px) {
	.shp-footer-grid { grid-template-columns: 1fr; gap: var(--shp-space-6); }
	.shp-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ===== Back to top ===== */

.shp-back-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	border: 1px solid var(--shp-line);
	background: var(--shp-surface);
	color: var(--shp-ink);
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--shp-shadow);
	opacity: 0;
	transform: translateY(8px);
	transition: opacity var(--shp-duration) var(--shp-ease), transform var(--shp-duration) var(--shp-ease);
	z-index: 80;
}
.shp-back-to-top.is-visible { opacity: 1; transform: translateY(0); }
.shp-back-to-top:hover { background: var(--shp-surface-2); }

/* ===== Breadcrumbs (shared by inner pages) ===== */

.shp-breadcrumbs {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: var(--shp-text-sm);
	color: var(--shp-ink-muted);
	margin-bottom: var(--shp-space-4);
	flex-wrap: wrap;
}
.shp-breadcrumbs a {
	color: var(--shp-ink-soft);
	text-decoration: none;
}
.shp-breadcrumbs a:hover { color: var(--shp-ink); }

/* ===== Scroll reveal (cards fade up; wired in main.js) ===== */

.shp-reveal-active > * {
	opacity: 0;
	transform: translateY(14px);
	transition: opacity 420ms var(--shp-ease), transform 420ms var(--shp-ease);
}
.shp-reveal-active > .is-revealed {
	opacity: 1;
	transform: translateY(0);
}
