/* ============================================
   Webová Vizitka 2.0 — Base CSS
   Shared: reset, typography, BEM components, layout
   ============================================ */

/* ---- CSS Variables ---- */
:root {
	/* Colors (overridden by inline CSS from options) */
	--wv2-primary: #4F7F74;
	--wv2-primary-dark: color-mix(in srgb, var(--wv2-primary) 80%, #000);
	--wv2-primary-light: color-mix(in srgb, var(--wv2-primary) 15%, #fff);
	--wv2-primary-lighter: color-mix(in srgb, var(--wv2-primary) 6%, #fff);

	--wv2-secondary: #F2B880;
	--wv2-secondary-dark: color-mix(in srgb, var(--wv2-secondary) 80%, #000);
	--wv2-secondary-light: color-mix(in srgb, var(--wv2-secondary) 15%, #fff);

	--wv2-text: #2D3436;
	--wv2-text-secondary: #636E72;
	--wv2-text-muted: #B2BEC3;

	--wv2-bg: #FFFFFF;
	--wv2-bg-light: #F8F9FA;
	--wv2-border: #E0E5E4;

	/* Typography */
	--wv2-font-body: "Inter", system-ui, -apple-system, sans-serif;
	--wv2-font-heading: "Inter", system-ui, -apple-system, sans-serif;

	/* Spacing (4px base) */
	--wv2-space-xs: 4px;
	--wv2-space-sm: 8px;
	--wv2-space-md: 16px;
	--wv2-space-lg: 24px;
	--wv2-space-xl: 32px;
	--wv2-space-2xl: 48px;
	--wv2-space-3xl: 64px;
	--wv2-space-section: 96px;

	/* Border radius */
	--wv2-radius-sm: 4px;
	--wv2-radius-md: 8px;
	--wv2-radius-lg: 16px;
	--wv2-radius-xl: 24px;
	--wv2-radius-full: 9999px;

	/* Shadows */
	--wv2-shadow-sm: 0 2px 8px rgba(45, 52, 54, 0.06);
	--wv2-shadow-md: 0 4px 16px rgba(45, 52, 54, 0.1);
	--wv2-shadow-lg: 0 8px 24px rgba(45, 52, 54, 0.12);

	/* Transitions */
	--wv2-transition-fast: 150ms ease;
	--wv2-transition-base: 300ms ease;

	/* Layout */
	--wv2-max-width: 1200px;
	--wv2-header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body {
	font-family: var(--wv2-font-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--wv2-text);
	background-color: var(--wv2-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--wv2-primary);
	text-decoration: none;
	transition: color var(--wv2-transition-fast);
}

a:hover {
	color: var(--wv2-primary-dark);
}

ul, ol {
	list-style: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--wv2-font-heading);
	font-weight: 700;
	line-height: 1.2;
	color: var(--wv2-text);
}

h1 {
	font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
	font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

h3 {
	font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

/* ---- Layout ---- */
.wv2-container {
	width: 100%;
	max-width: var(--wv2-max-width);
	margin: 0 auto;
	padding: 0 var(--wv2-space-lg);
}

.wv2-container--narrow {
	max-width: 800px;
}

.wv2-main {
	padding-top: var(--wv2-header-height);
}

/* ---- Sections ---- */
.wv2-section {
	padding: var(--wv2-space-section) 0;
}

.wv2-section--light {
	background-color: var(--wv2-bg-light);
}

.wv2-section--centered {
	text-align: center;
}

.wv2-section__title {
	text-align: center;
	margin-bottom: var(--wv2-space-2xl);
}

.wv2-section__subtitle {
	text-align: center;
	color: var(--wv2-text-secondary);
	font-size: 1.125rem;
	max-width: 600px;
	margin: calc(-1 * var(--wv2-space-lg)) auto var(--wv2-space-2xl);
}

/* ---- Header ---- */
.wv2-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	background: var(--wv2-bg);
	height: var(--wv2-header-height);
	transition: box-shadow var(--wv2-transition-base);
}

.wv2-header.scrolled {
	box-shadow: var(--wv2-shadow-md);
}

.wv2-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: 100%;
}

.wv2-header__logo {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.wv2-header__logo img {
	max-height: 50px;
	width: auto;
}

.wv2-header__site-name {
	font-family: var(--wv2-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--wv2-text);
}

/* ---- Navigation ---- */
.wv2-nav__list {
	display: flex;
	align-items: center;
	gap: var(--wv2-space-lg);
}

.wv2-nav__link {
	font-size: 0.9375rem;
	font-weight: 500;
	color: var(--wv2-text-secondary);
	transition: color var(--wv2-transition-fast);
	padding: var(--wv2-space-sm) 0;
}

.wv2-nav__link:hover,
.wv2-nav__link--active {
	color: var(--wv2-primary);
}

/* ---- Hamburger ---- */
.wv2-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
}

.wv2-hamburger__line {
	display: block;
	width: 100%;
	height: 2px;
	background: var(--wv2-text);
	border-radius: 2px;
	transition: transform var(--wv2-transition-base), opacity var(--wv2-transition-base);
}

.wv2-hamburger.active .wv2-hamburger__line:nth-child(1) {
	transform: translateY(7px) rotate(45deg);
}

.wv2-hamburger.active .wv2-hamburger__line:nth-child(2) {
	opacity: 0;
}

.wv2-hamburger.active .wv2-hamburger__line:nth-child(3) {
	transform: translateY(-7px) rotate(-45deg);
}

/* ---- Buttons ---- */
.wv2-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--wv2-space-sm);
	font-family: var(--wv2-font-body);
	font-weight: 600;
	font-size: 0.9375rem;
	padding: 12px 28px;
	border: none;
	border-radius: var(--wv2-radius-md);
	cursor: pointer;
	text-decoration: none;
	transition: all var(--wv2-transition-fast);
	line-height: 1.4;
}

.wv2-btn--primary {
	background: var(--wv2-primary);
	color: #fff;
}

.wv2-btn--primary:hover {
	background: var(--wv2-primary-dark);
	color: #fff;
}

.wv2-btn--secondary {
	background: transparent;
	color: var(--wv2-primary);
	border: 2px solid var(--wv2-primary);
}

.wv2-btn--secondary:hover {
	background: var(--wv2-primary);
	color: #fff;
}

.wv2-btn--large {
	padding: 16px 36px;
	font-size: 1.0625rem;
}

/* ---- Cards ---- */
.wv2-card {
	background: var(--wv2-bg);
	border-radius: var(--wv2-radius-md);
	box-shadow: var(--wv2-shadow-sm);
	padding: var(--wv2-space-xl);
	transition: box-shadow var(--wv2-transition-base), transform var(--wv2-transition-base);
}

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

.wv2-card__image {
	margin: calc(-1 * var(--wv2-space-xl)) calc(-1 * var(--wv2-space-xl)) var(--wv2-space-lg);
	border-radius: var(--wv2-radius-md) var(--wv2-radius-md) 0 0;
	overflow: hidden;
}

.wv2-card__image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.wv2-card__icon {
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--wv2-primary-light);
	color: var(--wv2-primary);
	border-radius: var(--wv2-radius-md);
	margin-bottom: var(--wv2-space-md);
}

.wv2-card__title {
	margin-bottom: var(--wv2-space-sm);
}

.wv2-card__text {
	color: var(--wv2-text-secondary);
	font-size: 0.9375rem;
}

/* ---- Hero ---- */
.wv2-hero {
	position: relative;
	min-height: 80vh;
	display: flex;
	align-items: center;
	background-size: cover;
	background-position: center;
	background-color: var(--wv2-primary-lighter);
	padding: calc(var(--wv2-header-height) + var(--wv2-space-3xl)) 0 var(--wv2-space-3xl);
}

.wv2-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.2) 100%);
	pointer-events: none;
	opacity: 0;
}

.wv2-hero[style*="background-image"] .wv2-hero__overlay {
	opacity: 1;
}

.wv2-hero[style*="background-image"] .wv2-hero__title,
.wv2-hero[style*="background-image"] .wv2-hero__subtitle,
.wv2-hero[style*="background-image"] .wv2-hero__blurb {
	color: #fff;
}

.wv2-hero__inner {
	position: relative;
	z-index: 1;
}

.wv2-hero__content {
	max-width: 700px;
}

.wv2-hero__title {
	margin-bottom: var(--wv2-space-md);
}

.wv2-hero__subtitle {
	font-size: clamp(1rem, 2vw, 1.25rem);
	color: var(--wv2-text-secondary);
	margin-bottom: var(--wv2-space-xl);
	line-height: 1.6;
}

.wv2-hero__cta {
	margin-bottom: var(--wv2-space-xl);
}

.wv2-hero__blurbs {
	display: flex;
	flex-wrap: wrap;
	gap: var(--wv2-space-md) var(--wv2-space-xl);
}

.wv2-hero__blurb {
	display: flex;
	align-items: center;
	gap: var(--wv2-space-sm);
	color: var(--wv2-text-secondary);
	font-size: 0.9375rem;
}

.wv2-hero__blurb svg {
	color: var(--wv2-primary);
	flex-shrink: 0;
}

/* ---- Services grid ---- */
.wv2-services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: var(--wv2-space-xl);
}

/* ---- Gallery grid ---- */
.wv2-gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: var(--wv2-space-md);
}

.wv2-gallery__item {
	display: block;
	border-radius: var(--wv2-radius-md);
	overflow: hidden;
	aspect-ratio: 4 / 3;
}

.wv2-gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--wv2-transition-base);
}

.wv2-gallery__item:hover img {
	transform: scale(1.05);
}

/* ---- Reviews ---- */
.wv2-reviews__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--wv2-space-xl);
}

.wv2-reviews__card {
	display: flex;
	flex-direction: column;
	gap: var(--wv2-space-md);
}

.wv2-reviews__text {
	font-style: italic;
	color: var(--wv2-text-secondary);
	line-height: 1.7;
	flex-grow: 1;
}

.wv2-reviews__author {
	display: flex;
	align-items: center;
	gap: var(--wv2-space-sm);
	padding-top: var(--wv2-space-md);
	border-top: 1px solid var(--wv2-border);
}

.wv2-reviews__name {
	font-weight: 600;
}

.wv2-reviews__source {
	color: var(--wv2-text-muted);
	font-size: 0.875rem;
}

.wv2-reviews__source::before {
	content: "—";
	margin-right: var(--wv2-space-xs);
}

/* Stars */
.wv2-stars {
	display: flex;
	gap: 2px;
}

.wv2-stars__star {
	color: var(--wv2-border);
}

.wv2-stars__star--filled {
	color: #F59E0B;
}

.wv2-stars__star svg {
	fill: currentColor;
}

/* ---- About ---- */
.wv2-about__grid {
	display: grid;
	grid-template-columns: 1fr 2fr;
	gap: var(--wv2-space-2xl);
	align-items: start;
}

.wv2-about__photo img {
	border-radius: var(--wv2-radius-lg);
	width: 100%;
	object-fit: cover;
}

.wv2-about__quals {
	margin-top: var(--wv2-space-xl);
	display: flex;
	flex-direction: column;
	gap: var(--wv2-space-sm);
}

.wv2-about__qual {
	display: flex;
	align-items: center;
	gap: var(--wv2-space-sm);
}

.wv2-about__qual svg {
	color: var(--wv2-primary);
	flex-shrink: 0;
}

/* ---- Pricing ---- */
.wv2-pricing__category {
	margin-bottom: var(--wv2-space-md);
	margin-top: var(--wv2-space-xl);
	color: var(--wv2-primary);
}

.wv2-pricing__table {
	margin-bottom: var(--wv2-space-xl);
}

.wv2-pricing__row {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	padding: var(--wv2-space-md) 0;
	border-bottom: 1px solid var(--wv2-border);
	gap: var(--wv2-space-md);
}

.wv2-pricing__row:last-child {
	border-bottom: none;
}

.wv2-pricing__name {
	font-weight: 500;
}

.wv2-pricing__desc {
	display: block;
	font-size: 0.875rem;
	color: var(--wv2-text-secondary);
	font-weight: 400;
}

.wv2-pricing__price {
	font-weight: 700;
	color: var(--wv2-primary);
	white-space: nowrap;
	font-size: 1.125rem;
}

/* ---- Business info ---- */
.wv2-business-info__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: var(--wv2-space-2xl);
}

.wv2-business-info__details .wv2-section__title {
	text-align: left;
	margin-bottom: var(--wv2-space-xl);
}

.wv2-business-info__row {
	display: flex;
	align-items: center;
	gap: var(--wv2-space-md);
	margin-bottom: var(--wv2-space-md);
}

.wv2-business-info__row svg {
	color: var(--wv2-primary);
	flex-shrink: 0;
}

.wv2-business-info__row a {
	color: var(--wv2-text);
}

.wv2-business-info__row a:hover {
	color: var(--wv2-primary);
}

.wv2-business-info__hours {
	margin-top: var(--wv2-space-xl);
}

.wv2-business-info__hours-title {
	display: flex;
	align-items: center;
	gap: var(--wv2-space-sm);
	margin-bottom: var(--wv2-space-md);
}

.wv2-business-info__hours-title svg {
	color: var(--wv2-primary);
}

.wv2-business-info__hours-list {
	display: flex;
	flex-direction: column;
	gap: var(--wv2-space-xs);
}

.wv2-business-info__hours-row {
	display: flex;
	justify-content: space-between;
	max-width: 300px;
}

.wv2-business-info__hours-row dt {
	font-weight: 500;
}

.wv2-business-info__hours-row dd {
	color: var(--wv2-text-secondary);
}

.wv2-business-info__map {
	border-radius: var(--wv2-radius-lg);
	overflow: hidden;
	min-height: 350px;
}

.wv2-business-info__map iframe {
	width: 100%;
	height: 100%;
	min-height: 350px;
	border: 0;
}

/* ---- Contact ---- */
.wv2-contact__form {
	margin-top: var(--wv2-space-xl);
}

/* ---- Blog section ---- */
.wv2-blog-section__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--wv2-space-xl);
}

/* ---- Post cards ---- */
.wv2-post-card {
	background: var(--wv2-bg);
	border-radius: var(--wv2-radius-md);
	box-shadow: var(--wv2-shadow-sm);
	overflow: hidden;
	transition: box-shadow var(--wv2-transition-base);
}

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

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

.wv2-post-card__content {
	padding: var(--wv2-space-lg);
}

.wv2-post-card__date {
	display: block;
	font-size: 0.8125rem;
	color: var(--wv2-text-muted);
	margin-bottom: var(--wv2-space-sm);
}

.wv2-post-card__title {
	margin-bottom: var(--wv2-space-sm);
}

.wv2-post-card__title a {
	color: var(--wv2-text);
}

.wv2-post-card__title a:hover {
	color: var(--wv2-primary);
}

.wv2-post-card__excerpt {
	color: var(--wv2-text-secondary);
	font-size: 0.9375rem;
}

/* ---- Posts list (blog/archive) ---- */
.wv2-posts {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: var(--wv2-space-xl);
}

/* ---- Article ---- */
.wv2-article__image {
	margin-bottom: var(--wv2-space-xl);
	border-radius: var(--wv2-radius-lg);
	overflow: hidden;
}

.wv2-article__image img {
	width: 100%;
}

.wv2-article__header {
	margin-bottom: var(--wv2-space-xl);
}

.wv2-article__title {
	margin-bottom: var(--wv2-space-sm);
}

.wv2-article__date {
	color: var(--wv2-text-muted);
	font-size: 0.875rem;
}

/* ---- Content (WYSIWYG) ---- */
.wv2-content p {
	margin-bottom: 1em;
}

.wv2-content h2, .wv2-content h3, .wv2-content h4 {
	margin: 1.5em 0 0.5em;
}

.wv2-content ul, .wv2-content ol {
	margin: 0.5em 0 1em 1.5em;
}

.wv2-content ul {
	list-style: disc;
}

.wv2-content ol {
	list-style: decimal;
}

.wv2-content li {
	margin-bottom: 0.25em;
}

.wv2-content img {
	border-radius: var(--wv2-radius-md);
	margin: 1em 0;
}

.wv2-content blockquote {
	border-left: 3px solid var(--wv2-primary);
	padding-left: var(--wv2-space-lg);
	color: var(--wv2-text-secondary);
	margin: 1em 0;
	font-style: italic;
}

/* ---- Footer ---- */
.wv2-footer {
	background: var(--wv2-text);
	color: #fff;
	padding: var(--wv2-space-3xl) 0 var(--wv2-space-xl);
}

.wv2-footer a {
	color: rgba(255, 255, 255, 0.7);
}

.wv2-footer a:hover {
	color: #fff;
}

.wv2-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: var(--wv2-space-2xl);
	margin-bottom: var(--wv2-space-2xl);
}

.wv2-footer__site-name {
	font-family: var(--wv2-font-heading);
	font-size: 1.25rem;
	font-weight: 700;
}

.wv2-footer__address {
	color: rgba(255, 255, 255, 0.6);
	margin-top: var(--wv2-space-md);
	font-size: 0.9375rem;
}

.wv2-footer__title {
	font-size: 0.875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: var(--wv2-space-lg);
	color: #fff;
}

.wv2-footer__link {
	display: flex;
	align-items: center;
	gap: var(--wv2-space-sm);
	margin-bottom: var(--wv2-space-sm);
	font-size: 0.9375rem;
}

.wv2-footer__link svg {
	flex-shrink: 0;
}

.wv2-footer__links {
	display: flex;
	flex-direction: column;
	gap: var(--wv2-space-sm);
}

.wv2-footer__links a {
	font-size: 0.9375rem;
}

.wv2-footer__bottom {
	padding-top: var(--wv2-space-xl);
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.5);
}

/* ---- Pagination ---- */
.wv2-pagination {
	margin-top: var(--wv2-space-2xl);
	display: flex;
	justify-content: center;
	gap: var(--wv2-space-sm);
}

.wv2-pagination .page-numbers {
	padding: var(--wv2-space-sm) var(--wv2-space-md);
	border: 1px solid var(--wv2-border);
	border-radius: var(--wv2-radius-sm);
	font-size: 0.875rem;
}

.wv2-pagination .page-numbers.current {
	background: var(--wv2-primary);
	color: #fff;
	border-color: var(--wv2-primary);
}

/* ---- Animations (IntersectionObserver) ---- */
/* JS adds .wv2-animate to body, then elements start hidden and animate in */
.wv2-animate .wv2-card,
.wv2-animate .wv2-gallery__item,
.wv2-animate .wv2-reviews__card,
.wv2-animate .wv2-pricing__row {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.5s ease, transform 0.5s ease, box-shadow var(--wv2-transition-base);
}

.wv2-animate .wv2-card.visible,
.wv2-animate .wv2-gallery__item.visible,
.wv2-animate .wv2-reviews__card.visible,
.wv2-animate .wv2-pricing__row.visible {
	opacity: 1;
	transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
	.wv2-about__grid {
		grid-template-columns: 1fr;
	}

	.wv2-business-info__grid {
		grid-template-columns: 1fr;
	}

	.wv2-footer__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 768px) {
	:root {
		--wv2-space-section: 64px;
		--wv2-header-height: 64px;
	}

	/* Mobile nav */
	.wv2-hamburger {
		display: flex;
	}

	.wv2-nav {
		position: fixed;
		top: var(--wv2-header-height);
		left: 0;
		right: 0;
		bottom: 0;
		background: var(--wv2-bg);
		padding: var(--wv2-space-xl);
		transform: translateX(100%);
		transition: transform var(--wv2-transition-base);
		overflow-y: auto;
	}

	.wv2-nav.open {
		transform: translateX(0);
	}

	.wv2-nav__list {
		flex-direction: column;
		gap: 0;
	}

	.wv2-nav__link {
		display: block;
		padding: var(--wv2-space-md) 0;
		font-size: 1.125rem;
		border-bottom: 1px solid var(--wv2-border);
	}

	/* Footer */
	.wv2-footer__grid {
		grid-template-columns: 1fr;
		gap: var(--wv2-space-xl);
	}

	.wv2-footer__bottom {
		flex-direction: column;
		gap: var(--wv2-space-sm);
		text-align: center;
	}

	/* Hero */
	.wv2-hero {
		min-height: 60vh;
	}

	/* Grids */
	.wv2-services__grid,
	.wv2-blog-section__grid,
	.wv2-posts {
		grid-template-columns: 1fr;
	}

	.wv2-reviews__grid {
		grid-template-columns: 1fr;
	}

	.wv2-gallery__grid {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 480px) {
	.wv2-gallery__grid {
		grid-template-columns: 1fr;
	}
}
