/*
Theme Name: Omkara Yoga
Theme URI: https://omkara-yoga.by
Author: Omkara Yoga
Description: Lightweight custom theme for the Omkara yoga & self-development studio. Built for shared hosting: no page builder, no bundled JS libraries, native Gutenberg editing.
Version: 1.0.2
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: omkara-yoga
*/

/* ==========================================================================
   Omkara Yoga — base styles
   ========================================================================== */

:root {
	--oy-white: #ffffff;
	--oy-cream: #f7f0e3;
	--oy-beige: #e9dcc0;
	--oy-gold: #c3993f;
	--oy-brown: #83603d;
	--oy-brown-dark: #4a3a28;
	--oy-max-width: 1180px;
	--oy-font-heading: Georgia, 'Times New Roman', Times, serif;
	--oy-font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	background: var(--oy-white);
	color: var(--oy-brown-dark);
	font-family: var(--oy-font-body);
	font-size: 17px;
	line-height: 1.65;
}

h1, h2, h3, h4 {
	font-family: var(--oy-font-heading);
	color: var(--oy-brown-dark);
	line-height: 1.25;
	margin: 0 0 0.5em;
}

a { color: var(--oy-brown); }
a:hover { color: var(--oy-gold); }

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

.oy-container {
	max-width: var(--oy-max-width);
	margin: 0 auto;
	padding: 0 20px;
}

.oy-button,
button.oy-button,
.oy-contact-form button[type="submit"] {
	display: inline-block;
	background: var(--oy-brown);
	color: var(--oy-white);
	border: none;
	padding: 12px 32px;
	border-radius: 24px;
	font-size: 1em;
	font-weight: 500;
	cursor: pointer;
	text-decoration: none;
	transition: background 0.2s ease;
}
.oy-button:hover,
.oy-contact-form button[type="submit"]:hover {
	background: var(--oy-gold);
	color: var(--oy-white);
}

/* ---- Top contact bar ---- */
.oy-topbar {
	background: var(--oy-brown-dark);
	color: var(--oy-cream);
	font-size: 0.85em;
}
.oy-topbar .oy-container {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	padding-top: 8px;
	padding-bottom: 8px;
	align-items: center;
}
.oy-topbar a { color: var(--oy-cream); text-decoration: none; }
.oy-topbar a:hover { color: var(--oy-gold); }
.oy-topbar__item { white-space: nowrap; }

/* ---- Site header / nav ---- */
.oy-site-header {
	background: var(--oy-white);
	border-bottom: 1px solid var(--oy-beige);
	padding-bottom: 0;
}
.oy-site-header .oy-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 14px;
	padding-bottom: 14px;
}
.oy-site-branding { display: flex; align-items: center; gap: 12px; }
.oy-site-branding a { text-decoration: none; }
.oy-site-logo { display: block; height: 60px; width: auto; }
.oy-site-title {
	font-family: var(--oy-font-heading);
	font-size: 1.6em;
	color: var(--oy-brown-dark);
	margin: 0;
	letter-spacing: 0.03em;
}
.oy-site-description {
	font-size: 0.75em;
	color: var(--oy-brown);
	margin: 0;
}

.oy-nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--oy-beige);
	border-radius: 4px;
	padding: 8px 12px;
	font-size: 1em;
	cursor: pointer;
	color: var(--oy-brown-dark);
}

.oy-primary-nav {
	background: var(--oy-brown);
	width: 100%;
	margin-top: 0;
}
.oy-primary-nav ul {
	list-style: none;
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin: 0;
	padding: 0;
	max-width: var(--oy-max-width);
	margin: 0 auto;
}
.oy-primary-nav li { position: relative; flex: 1; text-align: center; }
.oy-primary-nav a {
	display: block;
	padding: 14px 12px;
	text-decoration: none;
	color: var(--oy-white);
	font-size: 0.9em;
	font-weight: 500;
	transition: background 0.2s ease;
}
.oy-primary-nav a:hover,
.oy-primary-nav .current-menu-item > a,
.oy-primary-nav .current-menu-ancestor > a {
	background: var(--oy-gold);
	color: var(--oy-brown-dark);
}
.oy-primary-nav .sub-menu {
	display: none;
	position: absolute;
	left: 0;
	top: 100%;
	background: var(--oy-brown-dark);
	border: none;
	min-width: 220px;
	z-index: 20;
	box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}
.oy-primary-nav li:hover > .sub-menu { display: block; }
.oy-primary-nav .sub-menu a { padding: 12px 16px; white-space: nowrap; color: var(--oy-white); }
.oy-primary-nav .sub-menu a:hover { background: var(--oy-gold); color: var(--oy-brown-dark); }

@media (max-width: 860px) {
	.oy-nav-toggle { display: inline-block; }
	.oy-primary-nav {
		display: none;
		width: 100%;
		background: var(--oy-brown);
	}
	.oy-primary-nav.is-open { display: block; }
	.oy-primary-nav ul { flex-direction: column; gap: 0; }
	.oy-primary-nav li { flex: auto; text-align: left; }
	.oy-primary-nav a { text-align: left; }
	.oy-primary-nav .sub-menu {
		display: block;
		position: static;
		border: none;
		box-shadow: none;
		padding-left: 16px;
		background: var(--oy-brown-dark);
	}
	.oy-site-header .oy-container { flex-wrap: wrap; }
	.oy-site-header { padding-bottom: 0; }
}

/* ---- Hero / intro ---- */
.oy-hero {
	background: var(--oy-white);
	padding: 60px 0;
	text-align: center;
}
.oy-hero .oy-container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	padding: 0;
}
.oy-hero-content {
	max-width: 600px;
	padding: 0 40px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	text-align: center;
}
.oy-hero-image {
	max-width: 400px;
	width: 100%;
	overflow: hidden;
	border-radius: 8px;
}
.oy-hero-image img {
	width: 100%;
	height: auto;
	object-fit: cover;
	display: block;
}
.oy-hero h1 { font-size: 2.8em; margin-bottom: 0.3em; line-height: 1.2; }
.oy-hero p { font-size: 1.1em; color: var(--oy-brown); margin-bottom: 2em; }

@media (max-width: 900px) {
	.oy-hero .oy-container {
		gap: 30px;
	}
	.oy-hero-content {
		padding: 0 20px;
	}
	.oy-hero-image {
		max-width: 350px;
	}
	.oy-hero h1 { font-size: 2em; }
	.oy-hero p { font-size: 1em; }
}

/* ---- Section title with decorative element ---- */
.oy-section-title {
	display: flex;
	align-items: center;
	gap: 20px;
	margin-bottom: 1.5em;
	font-size: 2.2em;
	font-weight: bold;
}
.oy-section-title::before {
	content: '';
	display: inline-block;
	width: 4px;
	height: 1.2em;
	background: var(--oy-brown);
	flex-shrink: 0;
}
.oy-section-title.oy-section-title--gold::before {
	background: var(--oy-gold);
}

/* ---- News carousel (CSS-only, no JS library) ---- */
.oy-news {
	padding: 60px 0;
	background: var(--oy-white);
}
.oy-news .oy-section-title { text-align: left; margin-bottom: 2em; }
.oy-news-track {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 24px;
	padding-bottom: 0;
}
.oy-news-card {
	background: var(--oy-cream);
	border: none;
	border-radius: 8px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease;
}
.oy-news-card:hover {
	transform: translateY(-4px);
}
.oy-news-card__photo { aspect-ratio: 4 / 3; overflow: hidden; }
.oy-news-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.oy-news-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.oy-news-card__title { font-size: 1.15em; margin: 0 0 12px; font-weight: 600; }
.oy-news-card__excerpt { font-size: 0.95em; color: var(--oy-brown); margin: 0; }
.oy-news-empty { text-align: center; color: var(--oy-brown); padding: 40px 20px; }

/* ---- Page content ---- */
.oy-page {
	padding: 40px 0 60px;
}
.oy-page .entry-title {
	text-align: center;
	margin-bottom: 1em;
}
.oy-content { max-width: 820px; margin: 0 auto; }
.oy-content.oy-content--wide { max-width: var(--oy-max-width); }

/* Gallery / core WP gallery blocks look good on cream cards */
.oy-content .wp-block-gallery { margin: 1.5em 0; }

/* Table block (schedule) */
.oy-content table.wp-block-table {
	width: 100%;
	border-collapse: collapse;
}
.oy-content table.wp-block-table th,
.oy-content table.wp-block-table td {
	border: 1px solid var(--oy-beige);
	padding: 10px 14px;
	text-align: left;
}
.oy-content table.wp-block-table th {
	background: var(--oy-beige);
	color: var(--oy-brown-dark);
}
.oy-content table.wp-block-table tr:nth-child(even) td {
	background: var(--oy-cream);
}

/* ---- Teachers section ---- */
.oy-teachers-section {
	padding: 60px 0;
	background: var(--oy-beige);
}
.oy-teachers-section .oy-section-title { text-align: left; margin-bottom: 2em; }

/* ---- Teachers grid ---- */
.oy-teacher-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 24px;
	margin: 1.5em 0;
}
.oy-teacher-card {
	background: var(--oy-cream);
	border-radius: 8px;
	overflow: hidden;
	text-align: center;
	padding-bottom: 16px;
	transition: transform 0.2s ease;
}
.oy-teacher-card:hover {
	transform: translateY(-4px);
}
.oy-teacher-card__photo { aspect-ratio: 3 / 4; overflow: hidden; }
.oy-teacher-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.oy-teacher-card__name { margin: 14px 0 6px; font-size: 1.15em; }
.oy-teacher-card__bio { padding: 0 16px; font-size: 0.92em; color: var(--oy-brown); }

/* ---- Contact form ---- */
.oy-contact-form { max-width: 520px; margin: 0 auto; }
.oy-form-row { margin-bottom: 14px; }
.oy-form-row label { display: block; margin-bottom: 4px; font-size: 0.9em; color: var(--oy-brown); }
.oy-form-row input,
.oy-form-row textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--oy-beige);
	border-radius: 4px;
	font-family: inherit;
	font-size: 1em;
}
.oy-form-honeypot { position: absolute; left: -9999px; top: -9999px; }
.oy-form-message { padding: 10px 14px; border-radius: 4px; margin-bottom: 14px; }
.oy-form-message--success { background: #e6f3e6; color: #2c5a2c; }
.oy-form-message--error { background: #f8e6e6; color: #7a2c2c; }

/* ---- Footer ---- */
.oy-site-footer {
	background: var(--oy-brown-dark);
	color: var(--oy-cream);
	padding: 40px 0 24px;
	margin-top: 40px;
}
.oy-site-footer a { color: var(--oy-cream); }
.oy-site-footer a:hover { color: var(--oy-gold); }
.oy-footer-grid {
	display: grid;
	grid-template-columns: 1.2fr 1fr;
	gap: 40px;
}
@media (max-width: 700px) {
	.oy-footer-grid { grid-template-columns: 1fr; }
}
.oy-footer-contacts p { margin: 0.4em 0; }
.oy-footer-bottom {
	text-align: center;
	font-size: 0.8em;
	color: var(--oy-beige);
	margin-top: 30px;
	opacity: 0.8;
}
.oy-footer-contacts .oy-contact-form { margin: 0; }
.oy-site-footer .oy-form-row label { color: var(--oy-beige); }

/* ==========================================================================
   Homepage sections (modeled on omkara.by)
   ========================================================================== */

.oy-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.8em;
	color: var(--oy-gold);
	font-weight: 700;
	margin: 0 0 0.6em;
}

.oy-button--outline {
	background: transparent;
	border: 2px solid var(--oy-brown);
	color: var(--oy-brown);
	padding: 10px 30px;
}
.oy-button--outline:hover {
	background: var(--oy-brown);
	color: var(--oy-white);
}

/* ---- Featured announcement hero ---- */
.oy-announce-hero {
	background: var(--oy-cream);
	padding: 70px 0;
}
.oy-announce-hero .oy-container {
	display: flex;
	align-items: center;
	gap: 50px;
}
.oy-announce-hero__content { flex: 1; max-width: 520px; }
.oy-announce-hero__content h1 { font-size: 2.4em; margin-bottom: 0.3em; }
.oy-announce-hero__date { color: var(--oy-brown); font-weight: 500; margin-bottom: 1em; }
.oy-announce-hero__image {
	flex: 1;
	max-width: 460px;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
}
.oy-announce-hero__image img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 860px) {
	.oy-announce-hero .oy-container { flex-direction: column; }
	.oy-announce-hero__content,
	.oy-announce-hero__image { max-width: 100%; }
	.oy-announce-hero__image img { height: 260px; }
}

/* ---- Announcements list ---- */
.oy-announce-list { padding: 70px 0; background: var(--oy-white); }
.oy-announce-list__head { max-width: 620px; margin-bottom: 2em; }
.oy-announce-rows { border-top: 1px solid var(--oy-beige); }
.oy-announce-row {
	display: flex;
	align-items: baseline;
	gap: 24px;
	padding: 20px 0;
	border-bottom: 1px solid var(--oy-beige);
	text-decoration: none;
	color: inherit;
}
.oy-announce-row:hover .oy-announce-row__title { color: var(--oy-gold); }
.oy-announce-row__tag {
	flex: 0 0 90px;
	font-size: 0.75em;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--oy-gold);
}
.oy-announce-row__body { display: flex; flex-direction: column; gap: 4px; }
.oy-announce-row__title { font-family: var(--oy-font-heading); font-size: 1.15em; font-weight: 700; transition: color 0.2s ease; }
.oy-announce-row__excerpt { font-size: 0.9em; color: var(--oy-brown); }

@media (max-width: 600px) {
	.oy-announce-row { flex-direction: column; gap: 4px; }
}

/* ---- About preview ---- */
.oy-home-about { padding: 70px 0; background: var(--oy-cream); }
.oy-home-about .oy-container { display: flex; align-items: center; gap: 50px; }
.oy-home-about__image {
	flex: 1;
	max-width: 460px;
	width: 100%;
	aspect-ratio: 1;
	border-radius: 12px;
	overflow: hidden;
}
.oy-home-about__image img { width: 100%; height: 100%; object-fit: cover; }
.oy-home-about__content { flex: 1; max-width: 480px; }

@media (max-width: 860px) {
	.oy-home-about .oy-container { flex-direction: column; }
	.oy-home-about__image,
	.oy-home-about__content { max-width: 100%; }
	.oy-home-about__image img { height: 260px; }
}

/* ---- Yoga / trainings split (dark image background) ---- */
.oy-home-split {
	position: relative;
	padding: 80px 0;
	background-size: cover;
	background-position: center;
}
.oy-home-split::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(30, 22, 12, 0.6);
}
.oy-home-split .oy-container {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
}
.oy-home-split__panel h2,
.oy-home-split__panel .oy-eyebrow { color: var(--oy-white); }
.oy-home-split__panel p { color: var(--oy-beige); margin-bottom: 1.2em; }

@media (max-width: 700px) {
	.oy-home-split .oy-container { grid-template-columns: 1fr; }
}

/* ---- Four-point feature grid ---- */
.oy-home-features { padding: 70px 0; background: var(--oy-beige); }
.oy-home-features .oy-container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}
.oy-home-feature__num {
	font-family: var(--oy-font-heading);
	font-size: 1.8em;
	color: var(--oy-gold);
	margin-bottom: 0.2em;
}
.oy-home-feature h3 { font-size: 1.1em; }
.oy-home-feature p { font-size: 0.9em; color: var(--oy-brown); margin: 0; }

@media (max-width: 860px) {
	.oy-home-features .oy-container { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.oy-home-features .oy-container { grid-template-columns: 1fr; }
}

/* ---- Closing CTA ---- */
.oy-home-cta { padding: 70px 0; text-align: center; background: var(--oy-white); }
.oy-home-cta h2 { margin-bottom: 0.4em; }
.oy-home-cta p { color: var(--oy-brown); max-width: 560px; margin: 0 auto; }
.oy-home-cta__buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	margin-top: 1.8em;
	flex-wrap: wrap;
}
