/*
Theme Name: Elena Clean Child
Theme URI: https://elena-akulova.com/
Description: Clean, narrowly scoped presentation layer for the rebuilt Elena Akulova site.
Author: Ivan Akulov
Template: olsen-light
Version: 1.0.5
Text Domain: elena-clean-child
*/

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

:root {
  --elena-link-hover: #00a0d2;
}

.elena-site-header {
  padding-top: 2.1rem;
}

.elena-site-identity {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 26rem);
  gap: 3rem;
  min-height: 10rem;
  padding: 0 1.9rem 1.9rem;
}

.elena-site-title {
  margin: 0;
  color: #4e78ad;
  font-family: "Lobster", "Brush Script MT", cursive;
  font-size: clamp(3rem, 4.25vw, 4rem);
  font-weight: 400;
  line-height: 1.05;
}

.elena-site-title a,
.elena-site-title a:visited {
  color: inherit;
}

/* Use one interaction color throughout the site. Olsen Light declares its
 * former gold in several higher-specificity component selectors, so list
 * those states explicitly while leaving button surfaces untouched. */
a:hover,
a:focus,
a:active,
.elena-site-title a:hover,
.elena-site-title a:focus,
.elena-site-title a:active,
.navigation > li > a:hover,
.navigation > li > a:focus,
.navigation > li > a:active,
.navigation > li:hover > a,
.navigation > li:focus-within > a,
.navigation .current-menu-parent > a,
.navigation .current-menu-ancestor > a,
.navigation .current-menu-item > a,
.navigation li li a:hover,
.navigation li li a:focus,
.navigation li li:hover > a,
.navigation li li:focus-within > a,
.entry-title a:hover,
.entry-title a:focus,
.entry-meta a:hover,
.entry-meta a:focus,
.entry-utils .socials a:hover,
.entry-utils .socials a:focus,
.mobile-nav-trigger:hover,
.mobile-nav-trigger:focus,
.mobile-nav-trigger:active,
.read-more:hover,
.read-more:focus {
  color: var(--elena-link-hover) !important;
}

.read-more:hover,
.read-more:focus {
  border-color: var(--elena-link-hover);
}

.elena-site-tagline {
  margin: 0;
  color: #747474;
  font-family: Lato, Arial, sans-serif;
  font-size: 1.45rem;
  line-height: 1.65;
  text-align: right;
}

.elena-site-navigation {
  border-bottom: 1px solid #ededed;
  border-top: 1px solid #ededed;
	padding: 0;
}

.elena-site-navigation .nav {
  min-height: 3.5rem;
}

.elena-site-navigation .navigation {
  float: none;
}

.elena-site-navigation .navigation > li:first-child > a {
  padding-left: 0;
}

.elena-site-navigation .navigation > li > a {
	padding-bottom: 1.05rem;
	padding-top: 1.05rem;
}

body.home #site-content {
	padding-top: 1.5rem;
}

.elena-front-page-entry {
  margin-bottom: 0;
}

.elena-front-page-entry > .entry-content {
  max-width: none;
}

.elena-front-page-entry .elena-home {
  max-width: none;
	margin-inline: -1.9rem;
}

#site-content #content.elena-front-page-main {
	padding-top: 0;
}

.elena-home {
  --elena-blue: #4273bc;
  --elena-dark-blue: #261fb7;
}

.elena-home > * + * {
  margin-block-start: 2.25rem;
}

.elena-home h2,
.elena-home h3 {
  font-family: Georgia, "Times New Roman", serif;
}

.elena-home__welcome {
	margin-top: 0;
  text-align: center;
}

.elena-home__intro {
	display: grid;
	align-items: start !important;
	grid-template-columns: minmax(0, 33%) minmax(0, 1fr) !important;
	grid-template-rows: auto !important;
  gap: clamp(1.5rem, 4vw, 3.5rem);
}

.elena-home__intro > .wp-block-media-text__media {
	align-self: start;
	grid-column: 1 !important;
	grid-row: 1 !important;
}

.elena-home__intro > .wp-block-media-text__content {
	align-self: start;
	grid-column: 2 !important;
	grid-row: 1 !important;
}

.elena-home__intro .wp-block-media-text__media img {
  width: 100%;
  height: auto;
}

.elena-home__intro .wp-block-media-text__content {
  padding: 0;
}

.elena-home__section-title {
  margin-bottom: 1.5rem;
  text-align: center;
}

.elena-home__section-title a {
  color: inherit;
}

.elena-home__cards {
  align-items: stretch;
  gap: 1.25rem;
}

.elena-home__card {
  display: flex;
  flex-direction: column;
  margin-bottom: 1.5rem;
  text-align: center;
}

.elena-home__card figure {
  aspect-ratio: 3 / 2;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.elena-home__card figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.elena-home__videos,
.elena-home__footer-widgets {
  gap: 2rem;
}

.elena-home__youtube {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 0 1rem;
  overflow: hidden;
  background: #000;
}

.elena-home__youtube iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.elena-home__actions {
  text-align: center;
}

.elena-home__actions .wp-block-button__link {
  position: relative;
  top: 0;
  border-radius: 5px;
  box-shadow: 0 5px 0 var(--elena-button-shadow);
  padding: 0.75rem 1.25rem;
  transition: top 0.15s ease, box-shadow 0.15s ease;
}

.elena-home__actions .wp-block-button__link:hover,
.elena-home__actions .wp-block-button__link:focus {
  top: 3px;
  box-shadow: 0 2px 0 var(--elena-button-shadow);
  color: #fff !important;
}

.elena-home__actions .has-vivid-red-background-color,
.elena-home__actions .has-vivid-red-background-color:hover,
.elena-home__actions .has-vivid-red-background-color:focus {
  --elena-button-shadow: #ff3323;
  background-color: #ff675b !important;
}

.elena-home__actions .has-vivid-cyan-blue-background-color,
.elena-home__actions .has-vivid-cyan-blue-background-color:hover,
.elena-home__actions .has-vivid-cyan-blue-background-color:focus {
  --elena-button-shadow: #3253bc;
  background-color: #5472d2 !important;
}

.elena-home__testimonials {
  display: grid;
	gap: 1.25rem;
  grid-template-columns: minmax(0, 1fr);
}

.elena-native-testimonial {
	display: flow-root;
	margin: 0 0 1.35rem;
	padding: 1.25rem;
	border: 1px solid #d4dbe3;
	background: linear-gradient(135deg, #e4eaf1 0%, #f7f8fa 100%);
	color: #333;
	font-size: 0.9rem;
	line-height: 1.55;
}

.elena-native-testimonial__image {
	float: left;
	width: 5.4rem;
	height: 5.4rem;
	margin: 0 1rem 0.6rem 0;
	padding: 0.35rem;
	border: 1px solid #d0d0d0;
	background: #fff;
	object-fit: cover;
}

.elena-native-testimonial__title {
	margin: 0 0 0.6rem;
	font-family: Lora, Georgia, serif;
	font-size: 1.15rem;
	font-weight: 400;
	line-height: 1.35;
}

.elena-native-testimonial__content p {
	margin: 0 0 0.75rem;
}

.elena-native-testimonial__author {
	clear: both;
	margin: 0.75rem 0 0;
	text-align: right;
}

.sidebar .widget_block > .wp-block-heading:first-child {
	margin: 0 0 1.25rem;
	padding: 0.78rem 0.75rem;
	background: #72a5e2;
	color: #fff;
	font-family: Lato, Arial, sans-serif;
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	line-height: 1.2;
	text-align: center;
}

.sidebar .elena-sidebar-portrait {
	max-width: 12.5rem;
	margin: 0 auto 1rem;
}

.sidebar .elena-sidebar-portrait img {
	display: block;
	width: 12.5rem;
	height: 12.5rem;
	object-fit: cover;
}

.sidebar .wp-block-latest-posts__list > li {
	display: grid;
	grid-template-columns: 5rem minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	column-gap: 0.8rem;
	row-gap: 0.2rem;
	align-items: start;
	margin: 0;
	padding: 0.85rem 0;
	border-bottom: 1px solid #ededed;
}

.sidebar .wp-block-latest-posts__list > li:first-child {
	padding-top: 0;
}

.sidebar .wp-block-latest-posts__featured-image,
.sidebar .wp-block-latest-posts__featured-image.alignleft {
	float: none;
	grid-column: 1;
	grid-row: 1 / span 2;
	margin: 0 !important;
}

.sidebar .wp-block-latest-posts__featured-image img {
	display: block;
	width: 5rem;
	height: 3.4rem;
	object-fit: cover;
}

.sidebar .wp-block-latest-posts__post-date {
	grid-column: 2;
	grid-row: 1;
	margin: 0;
	color: #999;
	font-size: 0.72rem;
	line-height: 1.25;
}

.sidebar .wp-block-latest-posts__post-title {
	grid-column: 2;
	grid-row: 2;
	font-family: Lora, Georgia, serif;
	font-size: 0.82rem;
	line-height: 1.35;
}

/* Production's audited homepage custom CSS removes the theme content-link
 * border and uses these exact colors for normal and interactive states. Keep
 * the rule inside the rebuilt homepage; navigation and other pages retain the
 * clean parent theme behavior. Native buttons retain their production-like
 * white-on-color treatment, but must not inherit the content-link border. */
body.home .elena-home a:not(.wp-block-button__link) {
	color: #0074a2;
	border-bottom: 0;
	text-decoration: none;
}

body.home .elena-home a:not(.wp-block-button__link):hover,
body.home .elena-home a:not(.wp-block-button__link):focus,
body.home .elena-home a:not(.wp-block-button__link):active {
	color: #00a0d2;
	border-bottom: 0;
	text-decoration: none;
}

body.home .elena-home .wp-block-button__link,
body.home .elena-home .wp-block-button__link:hover,
body.home .elena-home .wp-block-button__link:focus,
body.home .elena-home .wp-block-button__link:active {
	border-bottom: 0;
	text-decoration: none;
}

.elena-site-footer .site-logo h3 {
	margin: 0 0 15px;
	font-family: Lora, Georgia, serif;
	font-size: 22px;
	font-weight: 300;
	line-height: normal;
}

.elena-site-footer .site-logo h3 a,
.elena-site-footer .site-logo h3 a:visited {
	color: #0074a2;
	border-bottom: 0;
	text-decoration: none;
}

.elena-site-footer .site-logo h3 a:hover,
.elena-site-footer .site-logo h3 a:focus,
.elena-site-footer .site-logo h3 a:active {
	color: #00a0d2;
	border-bottom: 0;
	text-decoration: none;
}

.elena-site-footer .site-logo p {
	margin-bottom: 0;
	color: #7e7e7e;
	font-size: 16px;
	letter-spacing: 3px;
}

.elena-home__posts .wp-block-post-template {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
  padding: 0;
}

.elena-home__posts .wp-block-post-featured-image img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.elena-home__posts .wp-block-post-title {
  font-size: 1rem;
  line-height: 1.45;
}

.elena-home__footer-widgets > .wp-block-column {
  min-width: 0;
}

@media (max-width: 900px) {
	.elena-site-identity {
		grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem);
		gap: 1.5rem;
		padding-inline: 0.5rem;
	}

	.elena-site-tagline {
		font-size: 1.15rem;
	}

  .elena-home__cards,
  .elena-home__posts .wp-block-post-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
	body {
		min-width: 0;
	}

	#page,
	.container,
	.row,
	.col-12,
	#site-content,
	.entry-content,
	.elena-home,
	.wp-block-group,
	.wp-block-columns,
	.wp-block-column {
		min-width: 0;
		max-width: 100%;
	}

	.elena-site-header {
		padding-top: 2rem;
	}

	.elena-site-identity {
		display: block;
		min-height: 0;
		padding: 0 1rem 1.8rem;
		text-align: center;
	}

	.elena-site-title {
		font-size: 1.55rem;
		line-height: 1.2;
	}

	.elena-site-tagline {
		max-width: 20rem;
		margin: 1.35rem auto 0;
		font-size: 1rem;
		letter-spacing: 0.22em;
		line-height: 1.6;
		overflow-wrap: anywhere;
		text-align: center;
	}

	.elena-site-navigation .nav {
		min-height: 3.75rem;
		width: 100%;
		text-align: center;
	}

	.elena-site-navigation {
		justify-content: center;
	}

	.elena-site-navigation .mobile-nav-trigger {
		border: 0;
		display: inline-block;
		float: none;
		margin: 0 auto;
		padding: 1.1rem 0;
		color: #35718e;
		font-size: 1rem;
		letter-spacing: 0.15em;
	}

	.elena-front-page-row,
	.elena-front-page-row > .col-12 {
		margin-inline: 0;
		padding-inline: 0;
	}

	.elena-front-page-entry .elena-home {
		margin-inline: 0;
	}

  .elena-home > * + * {
    margin-block-start: 1.75rem;
  }

  .elena-home__intro {
    grid-template-columns: 1fr !important;
  }

  .elena-home__intro .wp-block-media-text__media {
    grid-column: 1 !important;
    grid-row: 1 !important;
  }

  .elena-home__intro .wp-block-media-text__content {
    grid-column: 1 !important;
    grid-row: 2 !important;
    padding-top: 1.25rem;
  }

  .elena-home__cards,
  .elena-home__posts .wp-block-post-template {
    grid-template-columns: 1fr;
  }

	.elena-site-footer .site-logo h3 {
		font-size: 18px;
	}
}
