/*
Theme Name: m4sm
*/
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");

:root {
	--accent: #f99174;
	--text: #1f1f1f;
	--muted: #5b5b5b;
	--bg: #fbfbf9;
}

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

body {
	margin: 0;
	font-family: "Open Sans", Arial, sans-serif;
	color: var(--text);
	background: #ffffff;
}

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

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

.page,
.page-simple {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.wrapper {
	width: min(1200px, 94%);
	margin: 0 auto;
}

.nav {
	position: sticky;
	top: 0;
	z-index: 10;
	backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.88);
	border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 10px 0;
}

.nav__logo {
	height: 42px;
	display: inline-flex;
	align-items: center;
}

.nav__logo img {
	height: 42px;
	width: auto;
}

.nav__links {
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: flex-end;
	font-weight: 600;
	font-size: 15px;
}

.nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
	align-items: center;
}

.nav__list li {
	margin: 0;
	padding: 0;
}

.hero {
	position: relative;
	min-height: 90vh;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: #ffffff;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.65)),
		url("./assets/DJI_0060.jpg") center/cover no-repeat;
}

.hero__inner {
	padding: 48px 16px;
	display: grid;
	gap: 20px;
	justify-items: center;
}

.logo {
	width: 120px;
	filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.4));
}

.hero__title {
	font-size: clamp(32px, 4vw, 48px);
	line-height: 1.25;
	margin: 0;
	font-weight: 700;
	text-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

.hero__subtitle {
	max-width: 720px;
	line-height: 1.6;
	margin: 0;
	font-size: 18px;
	color: #f3f3f3;
}

.cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px 28px;
	border-radius: 999px;
	background: var(--accent);
	color: #fffaf7;
	font-weight: 700;
	letter-spacing: 0.2px;
	border: none;
	cursor: pointer;
	box-shadow: 0 10px 25px rgba(249, 145, 116, 0.4);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 30px rgba(249, 145, 116, 0.5);
}

.section {
	padding: clamp(60px, 9vw, 110px) 0;
	background: #ffffff;
}

.section--muted {
	background: var(--bg);
}

.section__heading {
	margin: 0 0 16px;
	font-size: clamp(28px, 3.4vw, 42px);
	line-height: 1.25;
}

.section__lead {
	margin: 0 0 28px;
	max-width: 760px;
	line-height: 1.7;
	color: var(--muted);
}

.about__content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 40px;
	align-items: center;
}

.about__video {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.about__video iframe {
	width: 100%;
	aspect-ratio: 16 / 9;
	border: none;
}

.gallery {
	background: var(--bg);
}

.gallery__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
}

.gallery__item {
	position: relative;
	overflow: hidden;
	border-radius: 14px;
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.gallery__item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

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

.split {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 28px;
	align-items: center;
}

.card {
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
	background: #ffffff;
}

.card__img {
	height: 100%;
	min-height: 260px;
	object-fit: cover;
	width: 100%;
}

.card__body {
	padding: 26px;
	display: grid;
	gap: 14px;
}

.card__title {
	margin: 0;
	font-size: 26px;
}

.card__text {
	margin: 0;
	line-height: 1.65;
	color: var(--muted);
}

.features {
	background: #ffffff;
}

.features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 22px;
}

.feature {
	padding: 18px;
	border-radius: 16px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.05);
	display: grid;
	gap: 12px;
	align-content: start;
	background: #fff;
}

.feature__icon {
	width: 46px;
	height: 46px;
}

.feature__title {
	margin: 0;
	font-size: 18px;
}

.feature__text {
	margin: 0;
	line-height: 1.6;
	color: var(--muted);
}

.news {
	background: #ffffff;
}

.news__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 22px;
}

.news-card {
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
	background: #fff;
	display: grid;
	grid-template-rows: auto 1fr;
}

.news-card img {
	width: 100%;
	height: 180px;
	object-fit: cover;
}

.news-card__body {
	padding: 18px;
	display: grid;
	gap: 10px;
}

.news-card__title {
	margin: 0;
	font-size: 18px;
	color: var(--text);
}

.news-card__date {
	margin: 0;
	font-size: 13px;
	color: var(--muted);
}

.news-card__text {
	margin: 0;
	line-height: 1.55;
	color: var(--muted);
}

.testimonial {
	position: relative;
	color: #ffffff;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.55)),
		url("./assets/DSC03382.jpg") center/cover no-repeat;
}

.testimonial__inner {
	padding: 120px 0;
}

.testimonial__quote {
	font-size: clamp(20px, 2.5vw, 28px);
	line-height: 1.8;
	max-width: 880px;
	margin: 0 auto;
	text-align: center;
}

.contacts {
	background: var(--bg);
}

.contacts__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 20px;
}

.contact-card {
	background: #ffffff;
	padding: 22px;
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.04);
	display: grid;
	gap: 8px;
}

.contact-card__title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0;
	font-size: 18px;
}

.contact-card__icon {
	width: 28px;
	height: 28px;
}

.contact-card__text {
	margin: 0;
	line-height: 1.6;
	color: var(--muted);
}

.footer {
	background: #171717;
	color: #e6e6e6;
	padding: 28px 0;
	margin-top: auto;
}

.footer__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
}

.footer__social {
	display: flex;
	align-items: center;
	gap: 12px;
}

.badge-row {
	display: flex;
	gap: 10px;
	align-items: center;
	flex-wrap: wrap;
}

.badge-row img {
	height: 26px;
}

.footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 14px;
	flex-wrap: wrap;
}

.footer__list li {
	margin: 0;
}

/* Category & Post */
.page-simple {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	background: #fff;
}

.posts-hero {
	padding: 80px 0;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.65)),
		url("./assets/photo_5.jpg") center/cover no-repeat;
	color: #fff;
	text-align: center;
}

.posts-hero h1 {
	margin: 0 0 12px;
	font-size: clamp(32px, 4vw, 48px);
}

.posts-hero p {
	margin: 0;
	color: #f3f3f3;
}

.posts-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 22px;
}

.post-card {
	border-radius: 14px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
	display: grid;
	grid-template-rows: auto 1fr;
}

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

.post-card__body {
	padding: 18px;
	display: grid;
	gap: 8px;
}

.post-card__title {
	margin: 0;
	font-size: 18px;
}

.post-card__meta {
	margin: 0;
	color: var(--muted);
	font-size: 13px;
}

.post-card__text {
	margin: 0;
	color: var(--muted);
	line-height: 1.55;
}

.post-layout {
	display: grid;
	grid-template-columns: minmax(0, 3fr) minmax(240px, 1fr);
	gap: 32px;
	align-items: start;
}

.post-body {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
	padding: 28px;
	line-height: 1.75;
	color: var(--text);
}

.post-body h1 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: clamp(30px, 4vw, 40px);
}

.post-body .meta {
	color: var(--muted);
	font-size: 14px;
	margin-bottom: 18px;
}

.post-body img {
	width: 100%;
	border-radius: 12px;
	margin: 18px 0;
}

.sidebar {
	position: sticky;
	top: 90px;
	display: grid;
	gap: 14px;
}

.sidebar-card {
	background: #fff;
	border-radius: 12px;
	padding: 16px;
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.08);
}

.sidebar-card h3 {
	margin: 0 0 10px;
	font-size: 16px;
}

.sidebar-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 8px;
}

.sidebar-list a {
	color: var(--text);
}

@media (max-width: 900px) {
	.post-layout {
		grid-template-columns: 1fr;
	}
	.sidebar {
		position: static;
	}
}

@media (max-width: 720px) {
	.nav__bar {
		flex-direction: column;
		align-items: flex-start;
	}

	.hero {
		min-height: 80vh;
	}
}

/* Basic WP tweaks */
.alignleft { float: left; margin-right: 10px; }
.alignright { float: right; margin-left: 10px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { box-sizing: border-box; max-width: 100%; border: 1px solid #ddd; text-align: center; background: #f3f3f3; padding: 4px; margin: 10px; border-radius: 3px; }
.wp-caption img { max-width: 100%; height: auto; border: 0; }
.wp-caption p.wp-caption-text { font-size: 11px; line-height: 17px; padding: 0 4px 5px; margin: 0; }

