/*
Theme Name: Inbetween Leader
Theme URI: https://inbetweenleader.ca
Author: Inbetween Leader
Author URI: https://inbetweenleader.ca
Description: An elegant, modern block theme for The Inbetween Leader — a book by Jody Wilson-Raybould and Roshan Danesh. Clean literary design with a four-section homepage.
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: inbetweenleader
Tags: full-site-editing, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, featured-images, one-column, wide-blocks, translation-ready
*/

/*
 * Additional styles beyond theme.json.
 * Keep light — design tokens live in theme.json.
 */

/* Smooth scrolling for in-page nav anchors */
html {
	scroll-behavior: smooth;
}

/* Book cover shadow for depth */
.ibl-book-cover img,
.ibl-book-cover .wp-block-image img {
	box-shadow:
		0 4px 6px rgba(26, 36, 30, 0.06),
		0 20px 40px rgba(26, 36, 30, 0.12);
	border-radius: 2px;
}

/* Author portrait polish */
.ibl-author-photo img {
	object-fit: cover;
	aspect-ratio: 4 / 5;
}

/* Subtle section divider accent */
.ibl-section-label {
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

/* Navigation polish */
.wp-block-navigation a {
	transition: color 0.2s ease;
}

.wp-block-navigation a.wp-block-navigation-item__content:hover {
	color:#C4A35A;
}

/*
 * Keep the header free of transform / filter / backdrop-filter.
 * Those create a containing block so the Core Navigation modal
 * (position: fixed) only covers the header height instead of the viewport.
 */
.site-header-bar {
	position: relative;
	z-index: 100;
	/* No backdrop-filter, filter, or transform here. */
}

/* Default WordPress mobile overlay: full-viewport modal, not header-height drawer */
.wp-block-navigation__responsive-container.is-menu-open {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	max-width: none;
	z-index: 100000;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: var(--wp--preset--spacing--50, 2rem);
}

/* Podcast guest image frames */
.ibl-photo-frame img {
	border-radius: 4px;
}

/* Workshop cards */
.ibl-card {
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ibl-card:hover {
	transform: translateY(-3px);
}

/* Footer subtle top rule */
.site-footer-wrap {
	border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent);
}

footer.wp-block-template-part {
	margin-block-start: 0;
}

/* Contact form — Contact Form 7, styled to the theme */
.ibl-contact-card {
	box-shadow: 0 12px 32px rgba(26, 36, 30, 0.05);
}

.ibl-contact-form .wpcf7 {
	margin: 0;
}

.ibl-contact-form .wpcf7-form > p,
.ibl-contact-form .wpcf7-form .wpcf7-form-control-wrap {
	margin: 0 0 1.15rem;
}

.ibl-contact-form label {
	display: block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--wp--preset--color--forest, #2f4a3c);
	margin-bottom: 0.45rem;
}

.ibl-contact-form input[type="text"],
.ibl-contact-form input[type="email"],
.ibl-contact-form input[type="tel"],
.ibl-contact-form input[type="url"],
.ibl-contact-form input[type="number"],
.ibl-contact-form select,
.ibl-contact-form textarea {
	width: 100%;
	max-width: 100%;
	display: block;
	box-sizing: border-box;
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: 1.0625rem;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast, #1a241e);
	background: var(--wp--preset--color--base, #faf8f4);
	border: 1px solid var(--wp--preset--color--parchment, #e8e2d6);
	border-radius: 2px;
	padding: 0.85rem 1rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ibl-contact-form textarea {
	min-height: 10rem;
	resize: vertical;
}

.ibl-contact-form input:focus,
.ibl-contact-form select:focus,
.ibl-contact-form textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--forest, #2f4a3c);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--forest, #2f4a3c) 16%, transparent);
}

.ibl-contact-form input[type="submit"],
.ibl-contact-form .wpcf7-submit {
	appearance: none;
	font-family: var(--wp--preset--font-family--body, inherit);
	font-size: var(--wp--preset--font-size--small, 0.875rem);
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	line-height: 1.2;
	background: var(--wp--preset--color--forest, #2f4a3c);
	color: var(--wp--preset--color--white, #fff);
	border: 0;
	border-radius: 2px;
	padding: 0.95rem 1.75rem;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.ibl-contact-form input[type="submit"]:hover,
.ibl-contact-form .wpcf7-submit:hover {
	background: var(--wp--preset--color--contrast, #1a241e);
}

.ibl-contact-form .wpcf7-not-valid-tip {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.85rem;
	color: #8a2f2f;
}

.ibl-contact-form .wpcf7-response-output {
	margin: 1.25rem 0 0;
	padding: 0.85rem 1rem;
	border-radius: 2px;
	border-width: 1px;
	font-size: 0.95rem;
}

.ibl-contact-form .wpcf7-spinner {
	margin-left: 0.75rem;
}

@media (max-width: 781px) {
	.ibl-contact-card {
		padding-left: var(--wp--preset--spacing--40, 1.5rem) !important;
		padding-right: var(--wp--preset--spacing--40, 1.5rem) !important;
	}
}

@media screen and (max-width: 960px) {  /* Change 1024px to your desired breakpoint */
  /* Show the hamburger button */
  .wp-block-navigation__responsive-container-open {
    display: block !important;
  }

  /* Hide the full menu, but only when the modal is closed */
  .wp-block-navigation__responsive-container:not(.is-menu-open.has-modal-open) {
    display: none !important;
  }

  .wp-block-buttons.hide-on-mobile-book-button {
	display: none;
  }
}

