/*
Theme Name: Sigal Naim
Author: Zook Kessler
Description: Sigal Naim theme
Version: 1
Text Domain: twentytwentyfive
*/

/************ fonts ***************/
@font-face {
    font-family: Alef-Bold;
    src: url(assets/fonts/alef/Alef-Bold.ttf);
}
@font-face {
    font-family: Alef-Regular;
    src: url(assets/fonts/alef/Alef-Regular.ttf);
}

html {
	scroll-behavior: smooth;
	font-size: 12px;
} /* 1rem = 10px */

body {
	font-size: 1.6rem;
}

/* CSS variables for spacing */
:root {
	--horizontal-spacing: 25px;
	--vertical-spacing: 40px;
}

/*
 * Link styles
 * https://github.com/WordPress/gutenberg/issues/42319
 */
a {
	text-decoration-thickness: 1px !important;
	text-underline-offset: .1em;
}

/* Focus styles */
:where(.wp-site-blocks *:focus) {
	outline-width: 2px;
	outline-style: solid;
}

/* Increase the bottom margin on submenus, so that the outline is visible. */
.wp-block-navigation .wp-block-navigation-submenu .wp-block-navigation-item:not(:last-child) {
	margin-bottom: 3px;
}

/* Increase the outline offset on the parent menu items, so that the outline does not touch the text. */
.wp-block-navigation .wp-block-navigation-item .wp-block-navigation-item__content {
	outline-offset: 4px;
}

/* Remove outline offset from the submenus, otherwise the outline is visible outside the submenu container. */
.wp-block-navigation .wp-block-navigation-item ul.wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	outline-offset: 0;
}

/*
 * Progressive enhancement to reduce widows and orphans
 * https://github.com/WordPress/gutenberg/issues/55190
 */
h1, h2, h3, h4, h5, h6, blockquote, caption, figcaption {
	text-wrap: pretty;
	font-family: Alef-Bold, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/*
 * Change the position of the more block on the front, by making it a block level element.
 * https://github.com/WordPress/gutenberg/issues/65934
*/
.more-link {
	display: block;
}

body {
	background: #ffffff;
	color: #1a1a1a;
	font-family: Alef-Regular, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	direction: rtl;
}

.sigalnaim-seperator::after {
	content: '';
	bottom: 0;
	width: 70px;
	height: 3px;
	background: #ef3d09;
	display: block;
	margin: calc(var(--vertical-spacing) * 3/4) 0 calc(var(--vertical-spacing) / 2);
}

.sigalnaim-centered-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
}

.sigalnaim-floating-header,
.sigalnaim-home__floating-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 12px 18px;
	background: transparent;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	box-shadow: none;
	direction: ltr;
}

.sigalnaim-floating-header__menu-toggle,
.sigalnaim-home__menu-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: transparent;
	color: #111111;
	cursor: pointer;
	flex: 0 0 auto;
}

.sigalnaim-floating-header__menu-toggle:hover,
.sigalnaim-floating-header__menu-toggle:focus-visible,
.sigalnaim-home__menu-toggle:hover,
.sigalnaim-home__menu-toggle:focus-visible {
	color: red;
}

.sigalnaim-floating-header__menu-toggle-icon,
.sigalnaim-home__menu-toggle-icon {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 10px;
	width: 25px;
	height: 20px;
}

.sigalnaim-floating-header__menu-toggle-icon span,
.sigalnaim-home__menu-toggle-icon span {
	display: block;
	height: 2px;
	width: 100%;
	border-radius: 999px;
	background: currentColor;
}

.sigalnaim-floating-header__menu-panel,
.sigalnaim-home__menu-panel {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	height: auto; /* size to content height */
	z-index: 1100; /* sit above floating controls */
	padding: 0;
	margin: 0;
	background: rgba(255, 255, 255, 0.98);
	display: flex;
	align-items: flex-start;
	justify-content: center;
	overflow: visible;
	direction: rtl;
}

/* Hidden by default via translate/opacity so we can animate a slide from top */
.sigalnaim-floating-header__menu-panel,
.sigalnaim-home__menu-panel {
	display: flex; /* keep layout but hide visually */
	transform: translateY(-100%);
	pointer-events: none;
	transition: transform 320ms cubic-bezier(.2,.8,.2,1), opacity 220ms ease;
	will-change: transform, opacity;
	justify-content: center;
	flex-direction: column;
	align-items: center;
}

.sigalnaim-floating-header__menu-panel.is-open,
.sigalnaim-home__menu-panel.is-open {
	transform: translateY(0);
	pointer-events: auto;
}

/* When closing, animate back up */
.sigalnaim-floating-header__menu-panel.is-closing,
.sigalnaim-home__menu-panel.is-closing {
	transform: translateY(-100%);
	pointer-events: none;
}

.sigalnaim-floating-header__menu-panel .sigalnaim-floating-header__menu-list,
.sigalnaim-floating-header__menu-panel .sigalnaim-home__menu-list,
.sigalnaim-floating-header__menu-panel ul,
.sigalnaim-home__menu-panel .sigalnaim-floating-header__menu-list,
.sigalnaim-home__menu-panel .sigalnaim-home__menu-list,
.sigalnaim-home__menu-panel ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: calc(var(--vertical-spacing) / 2);
	align-items: center;
}

.sigalnaim-floating-header__menu-panel li,
.sigalnaim-home__menu-panel li {
	margin: 0;
}

.sigalnaim-floating-header__menu-panel a,
.sigalnaim-home__menu-panel a {
	display: block;
	text-decoration: none;
	font-family: Alef-Bold, Alef-Regular, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	transition: color 0.15s ease;
	font-size: 1.8rem;
	text-align: center;
}

.sigalnaim-floating-header__menu-panel a:hover,
.sigalnaim-floating-header__menu-panel a:focus-visible,
.sigalnaim-home__menu-panel a:hover,
.sigalnaim-home__menu-panel a:focus-visible {
	color: red;
}

.sigalnaim-floating-header__spacer,
.sigalnaim-home__floating-header-spacer {
	height: 82px;
}

/* Drawer close button */
.sigalnaim-floating-header__menu-close {
	margin: calc(var(--vertical-spacing) / 2) 0;
	background: transparent;
	border: none;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	width: 25px;
	height: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1200; /* ensure above floating header buttons */
}

.sigalnaim-floating-header__menu-close:hover {
	color: red
}

.sigalnaim-floating-header__menu-inner {
	width: 100%;
	max-width: 720px;
	padding: calc(var(--vertical-spacing) / 2);
	margin-bottom: calc(var(--vertical-spacing) / 2);
}

.sigalnaim-home__header {
	position: relative;
	background: #ffffff;
}


.sigalnaim-home__header-visual {
	position: relative;
	overflow: hidden;
	min-height: 220px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	background-repeat: no-repeat;
	background-size: cover;
}

.sigalnaim-home__header-visual-inner {
	position: relative;
	padding-top: 86px;
	padding-bottom: 56px;
	max-width: none;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.sigalnaim-home__header-title {
	position: relative;
	z-index: 1;
	margin: 0;
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.1;
	pointer-events: none;
	width: 30vw;
	max-width: 300px;
	min-width: 200px;
}

.sigalnaim-home__header-description {
	max-width: 830px;
	margin: var(--vertical-spacing) auto;
	padding: 0 24px;
	font-size: 1.6rem;
	text-align: center;
}

.sigalnaim-container {
	max-width: 1200px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* Use Alef-Bold for headings and main titles */
.sigalnaim-home h1,
.sigalnaim-home h2,
.sigalnaim-home h3,
.sigalnaim-home h4,
.sigalnaim-home h5,
.sigalnaim-home h6,
.sigalnaim-home__header-title,
.sigalnaim-home__section-title,
.sigalnaim-home__book-card-title,
.sigalnaim-home__about-title {
    font-family: Alef-Bold, Alef-Regular, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Ensure strong elements within the theme use a bold weight */
.sigalnaim-home strong {
	font-weight: 700;
}

.sigalnaim-home__header-title-main {
	color: #111111;
}

.sigalnaim-home__header-title-accent {
	color: #ef3d09;
}

.sigalnaim-home__books {
	background: #e7eef0;
	padding: var(--vertical-spacing);
	padding-bottom: calc(var(--vertical-spacing) * 1.5);
}

.sigalnaim-home__section-title {
	margin: 0 0 40px;
	font-size: 2.4rem;
	font-weight: 700;
	text-align: center;
}

.sigalnaim-home__section-title span {
	position: relative;
	display: inline-block;
	padding-bottom: 8px;
}

.sigalnaim-home__section-title span::after {
	content: '';
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 100%;
	height: 3px;
	background: #ef3d09;
	transform: translateX(-50%);
}

.sigalnaim-home__section {
	scroll-margin-top: 110px;
}

.sigalnaim-home__books-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 34px;
}

.sigalnaim-home__book-card {
	background: #ffffff;
	padding: 30px 28px 32px;
	box-shadow: 0 10px 28px rgba(12, 31, 41, 0.05);
	border: 1px solid rgba(0, 0, 0, 0.03);
}

.sigalnaim-home__book-card-top {
	display: flex;
	flex-direction: row;
	gap: var(--horizontal-spacing);
	align-items: stretch;
	margin-bottom: calc(var(--vertical-spacing) * 0.75);
}

.sigalnaim-home__book-card-meta {
	flex: 1 1 auto;
	max-width: 58%;
	display: flex;
	flex-direction: column;
	padding-top: 8px;
	text-align: right;
}

.sigalnaim-home__book-card-kicker {
	margin: 0;
	line-height: 0.6;
}

.sigalnaim-home__book-card-title {
	margin: 0;
	font-family: Alef-Bold, Alef-Regular, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	line-height: 1.45;
	font-size: 2rem;
}

.sigalnaim-home__book-card-year {
	margin: 0;
	margin-bottom: calc(var(--vertical-spacing) / 2);
	font-size: 1.4rem;
}

.sigalnaim-home__book-card-image {
	flex: 0 0 145px;
	max-width: 145px;
	height: 225px;
	border-radius: 2px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sigalnaim-home__book-card-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.sigalnaim-home__book-card-actions {
	display: flex;
	flex-direction: column;
	gap: calc(var(--vertical-spacing) / 2);
	align-items: flex-start;
	margin-top: auto;
}

.sigalnaim-home__book-card-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: Alef-Bold, Alef-Regular, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	padding: 8px 26px;
	border-radius: 999px;
	background: #ff2e17;
	color: #ffffff;
	text-decoration: none;
	font-size: 1.2rem;
	line-height: 1;
}

.sigalnaim-home__book-card-button:hover,
.sigalnaim-home__book-card-button:focus-visible {
	color: inherit;
}

.sigalnaim-home__book-card-description {
	margin: 0;
	text-align: justify;
}

.sigalnaim-home__about {
	padding: var(--vertical-spacing);
}

.sigalnaim-home__about-grid {
	display: grid;
	grid-template-columns: 310px minmax(0, 1fr);
	gap: var(--horizontal-spacing);
	align-items: center;
	max-width: 900px;
	margin: 0 auto;
}

.sigalnaim-home__about-content {
	text-align: justify;
}

.sigalnaim-home__about-heading {
	margin: 0 0 12px;
	font-size: 2.4rem;
	font-family: Alef-Bold, Alef-Regular, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.sigalnaim-home__about-text {
	margin: 0 auto;
	max-width: 470px;
}

.sigalnaim-home__about-image {
	justify-self: start;
	max-width: 280px;
	border: 2px solid #e6e6e6;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	padding: 12px;
}

.sigalnaim-home__about-image img {
	display: block;
	width: 100%;
	height: auto;
}

/* Story single styles */
.sigalnaim-story {
	overflow-x: hidden;
}

.sigalnaim-story__main {
	max-width: 1280px;
	margin: 0 auto;
	padding-inline: 24px;
}

.sigalnaim-story__page-header {
	width: 100vw;
	margin-inline: calc(50% - 50vw);
	margin-bottom: var(--vertical-spacing);
	min-height: 200px;
	padding: 24px 16px;
	background: #ffe9e1;
	text-align: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.sigalnaim-story__page-title {
	font-size: 3rem;
	margin: 0;
}

.sigalnaim-story__article {
	display: grid;
	justify-items: start;
}

.sigalnaim-story__layout {
	display: grid;
	grid-template-columns: 280px minmax(0, 1fr);
	gap: var(--vertical-spacing);
	align-items: start;
}

.sigalnaim-story__sidebar {
	position: sticky;
	top: 24px;
	padding-top: 10px;
	justify-self: end;
	text-align: left;
	width: 100%;
}

.sigalnaim-story__sidebar-title {
	margin: 0 0 14px;
	font-size: 1.8rem;
	line-height: 1.2;
	font-weight: 700;
}

.sigalnaim-story__nav-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 0;
}

.sigalnaim-story__nav-item {
	border-top: 1px solid #ddd;
}

.sigalnaim-story__nav-item:last-child {
	border-bottom: 1px solid #ddd;
}

.sigalnaim-story__nav-link {
	display: block;
	padding: 13px 0;
	color: inherit;
	text-decoration: none;
	font-size: 1.7rem;
	line-height: 1.3;
	font-weight: 700;
	text-align: left;
}

.sigalnaim-story__nav-item.is-current .sigalnaim-story__nav-link,
.sigalnaim-story__nav-link[aria-current='page'],
.sigalnaim-story__nav-link:hover {
	color: #ef2d14;
}

.sigalnaim-story__featured-image {
	width: 100%;
	max-width: 720px;
}

.sigalnaim-story__featured-image img {
	display: block;
	width: 100%;
	height: auto;
}

.sigalnaim-story__header {
	text-align: center;
}

.sigalnaim-story__title {
	margin: 0;
	font-size: 3rem;
	margin-bottom: calc(var(--vertical-spacing) / 3);
}

.sigalnaim-story__content {
	width: 100%;
	max-width: 720px;
	margin-bottom: calc(var(--vertical-spacing) / 2);
}

/* Footer styles */
.sigalnaim-footer {
	background: #0b0b0b;
	color: #fff;
	padding: var(--vertical-spacing) 0;
	font-size: 1.2rem;
}

.sigalnaim-footer a,
	.sigalnaim-footer a:hover {
	text-decoration: none;
}

	.sigalnaim-footer a:hover {
		color: red;
 }

.sigalnaim-footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	max-width: 1600px;
	margin: 0 auto;
	padding-left: 24px;
	padding-right: 24px;
}

.sigalnaim-footer-left small,
.sigalnaim-footer-right small {
	font-size: 0.85rem;
	opacity: 0.8;
}

.sigalnaim-footer-links {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: center;
	direction: rtl;
	list-style: none;
	margin: 0;
	padding: 0;
}

.sigalnaim-footer-links li::marker {
	content: '';
}

.sigalnaim-footer-links a {
	text-decoration: none;
	padding: 6px 8px;
	font-size: 1.6rem;
}

.sigalnaim-footer-links li:not(:last-child)::after {
	content: '|';
	color: #fff;
	margin-inline-start: 10px;
	margin-inline-end: 0;
}

@media (max-width: 640px) {
	.sigalnaim-story__layout {
		grid-template-columns: 1fr;
	}

	.sigalnaim-story__sidebar {
		position: static;
		justify-self: stretch;
	}

	.sigalnaim-story__main {
		padding-inline: 16px;
	}

	.sigalnaim-footer-inner {
		flex-direction: column;
		text-align: center;
		gap: 12px;
	}

	.sigalnaim-footer-inner .footer-credits {
		margin-top: calc(var(--vertical-spacing) / 2);
		order: 2;
	}

	.sigalnaim-footer-links {
		flex-direction: column;
		gap: 8px;
	}

	.sigalnaim-footer-links li:not(:last-child)::after {
		content: none;
	}
}

@media (max-width: 960px) {
	.sigalnaim-home__books-grid,
	.sigalnaim-home__about-grid {
		grid-template-columns: 1fr;
	}

	.sigalnaim-home__book-card-meta {
		max-width: none;
	}

	.sigalnaim-home__about-image {
		justify-self: center;
	}

	.sigalnaim-footer-inner {
		justify-content: center;
		text-align: center;
	}
}

@media (max-width: 720px) {
	.sigalnaim-floating-header,
	.sigalnaim-home__floating-header {
		padding: 10px 14px;
	}

	.sigalnaim-floating-header__spacer,
	.sigalnaim-home__floating-header-spacer {
		height: 74px;
	}

	.sigalnaim-home__header-visual {
		min-height: 260px;
	}

	.sigalnaim-home__books {
		padding: var(--vertical-spacing) calc(var(--horizontal-spacing) / 2);
	}

	.sigalnaim-home__book-card-top {
		flex-direction: column;
	}

	.sigalnaim-home__book-card-image {
		margin-inline-start: 0;
		align-self: center;
		height: 350px;
		flex: unset;
		max-width: 100%;
	}

	.sigalnaim-story__main {
		padding-inline: 16px;
		padding-top: 32px;
	}
}

/************ accessibility button ************/
button.toggle.accessibility-toggle {
	height: 35px;
	width: 35px;
	background: unset;
	border: unset;
	z-index: 10;
	cursor: pointer;
	color: #fff;
}
button.toggle.accessibility-toggle:hover {
	color: red;
}
/* hide the plugin default button */
.yydev-warp .yy-button {
    display: none;
}
.yydev-accessibility {
    top: 90px !important;
	right: 0;
	left: unset !important;
	direction: ltr;
}
.yydev-accessibility .yydev-warp .yy-box {
    top: 0;
}