/*
Theme Name: Nook
Theme URI: https://wordpress.com/themes/nook/
Description: Nook is a classic blogging theme offering a delightful canvas for your DIY projects, delicious recipes, and creative inspirations.
Version: 1.0.2
Author: Automattic
Author URI: https://automattic.com/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nook
*/

/*
 * Control the hover stylings of outline block style.
 * Unnecessary once block styles are configurable via theme.json
 * https://github.com/WordPress/gutenberg/issues/42794
 */
.wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover {
	background-color: var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--background);
	border-color: var(--wp--preset--color--secondary);
}

.wp-block-table figcaption {
	font-size: var(--wp--preset--font-size--small);
	text-align: center;
}

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

/*
 * Navigation Block
 * Reset the padding from List block
 * https://github.com/WordPress/gutenberg/issues/50486
 */
.wp-block-navigation ul {
	padding: unset;
}

h1, h2, h3, h4, h5, h6 {
	font-family: inherit !important;
}

.wp-block-template-part  .alignwide {
	align-items: center !important;
}
.wp-site-blocks > .wp-block-template-part {
	background: url('./assets/images/main-bg.jpg') no-repeat center center;
	background-size: cover;
}
.wp-block-template-part,
.wp-block-template-part p {
	font-size: 12px !important;
	line-height: 18px !important;
}
.wp-block-template-part p {
	margin-bottom: 5px !important;
}
footer .wp-block-template-part .wp-block-group {
	margin-top: 5px !important;
	gap: 5px !important;
}

.gallery-columns-4 {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: space-between;
	align-items: center;
}
.home  .gallery-columns-4 img {
	max-width: 150px;
	height: auto;
}

/* Steps blocks styling */
.steps-container {
	display: flex;
	gap: 20px;
	margin: 40px 0;
}

.step-block {
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	flex: 1;
	background-color: #ffffff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-header {
	background-color: #62a7c7;
	color: #ffffff;
	font-weight: 700;
	text-transform: uppercase;
	padding: 20px;
	margin: 0;
	text-align: center;
	font-size: 16px;
	line-height: 1.4;
}

.step-header span {
	display: block;
}

.step-content {
	background-color: #ffffff;
	color: #333333;
	padding: 20px;
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
}

.step-content span {
	display: block;
}

@media (max-width: 768px) {
	.steps-container {
		flex-direction: column;
	}
}

.askedToggleTitle .askedToggleBox {
	border-left: 5px solid #62a7c7;
    margin-bottom: 30px;
	padding: 10px;
}

.askedToggleTitle .askedToggleBox h4 {
	margin: 0 !important;
}
.askedToggleTitle .askedToggleTitle {
	margin-bottom: 15px;
	padding-bottom: 0;
	border-bottom: 1px solid #62a7c7;
}
.askedToggleTitle p {
	margin-bottom: 5px;
}

/* Contact Form 7 - Universal Styles */
.wpcf7 {
	max-width: 100%;
	margin: 30px 0;
}

.wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.wpcf7-form p {
	margin: 0;
}

.wpcf7-form label {
	display: block;
	font-weight: 500;
	margin-bottom: 8px;
	color: #333;
	font-size: 14px;
	line-height: 1.5;
}

.wpcf7-form-control-wrap {
	display: block;
	width: 100%;
}

.wpcf7-form-control {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
	color: #333;
	background-color: #fff;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	box-sizing: border-box;
}

.wpcf7-form-control:focus {
	outline: none;
	border-color: #62a7c7;
	box-shadow: 0 0 0 3px rgba(98, 167, 199, 0.1);
}

.wpcf7-form-control.wpcf7-validates-as-required {
	border-left: 3px solid #62a7c7;
}

.wpcf7-form-control[aria-invalid="true"] {
	border-color: #dc3545;
	background-color: #fff5f5;
}

.wpcf7-form-control[aria-invalid="true"]:focus {
	border-color: #dc3545;
	box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.wpcf7-textarea {
	min-height: 120px;
	resize: vertical;
	font-family: inherit;
}

.wpcf7-submit {
	background-color: #62a7c7;
	color: #fff;
	border: none;
	padding: 14px 32px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
	text-transform: none;
	display: inline-block;
	align-self: flex-start;
}

.wpcf7-submit:hover {
	background-color: #4d8ba8;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(98, 167, 199, 0.3);
}

.wpcf7-submit:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(98, 167, 199, 0.2);
}

.wpcf7-submit:disabled {
	background-color: #ccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

.wpcf7-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	margin-left: 8px;
	vertical-align: middle;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: wpcf7-spin 0.6s linear infinite;
}

@keyframes wpcf7-spin {
	to {
		transform: rotate(360deg);
	}
}

.wpcf7-response-output {
	margin: 20px 0 0;
	padding: 12px 16px;
	border-radius: 4px;
	font-size: 14px;
	line-height: 1.5;
}

.wpcf7-form.sent .wpcf7-response-output {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
}

.wpcf7-form.failed .wpcf7-response-output,
.wpcf7-form.aborted .wpcf7-response-output {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
}

.wpcf7-form.spam .wpcf7-response-output {
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.wpcf7-form.invalid .wpcf7-response-output,
.wpcf7-form.unaccepted .wpcf7-response-output {
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
}

.wpcf7-not-valid-tip {
	color: #dc3545;
	font-size: 12px;
	margin-top: 5px;
	display: block;
}

.wpcf7-validation-errors {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	padding: 12px 16px;
	border-radius: 4px;
	margin: 20px 0 0;
	font-size: 14px;
}

.wpcf7-mail-sent-ok {
	background-color: #d4edda;
	color: #155724;
	border: 1px solid #c3e6cb;
	padding: 12px 16px;
	border-radius: 4px;
	margin: 20px 0 0;
	font-size: 14px;
}

.wpcf7-mail-sent-ng,
.wpcf7-aborted {
	background-color: #f8d7da;
	color: #721c24;
	border: 1px solid #f5c6cb;
	padding: 12px 16px;
	border-radius: 4px;
	margin: 20px 0 0;
	font-size: 14px;
}

.wpcf7-spam-blocked {
	background-color: #fff3cd;
	color: #856404;
	border: 1px solid #ffeaa7;
	padding: 12px 16px;
	border-radius: 4px;
	margin: 20px 0 0;
	font-size: 14px;
}

.hidden-fields-container {
	display: none;
}

.screen-reader-response {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Responsive styles for Contact Form 7 */
@media (max-width: 768px) {
	.wpcf7-form {
		gap: 16px;
	}

	.wpcf7-form-control {
		padding: 10px 14px;
		font-size: 16px; /* Prevents zoom on iOS */
	}

	.wpcf7-submit {
		width: 100%;
		padding: 12px 24px;
	}
}

/* Language Switcher Styles */
.wrap-lang {
	margin: 20px 0;
	padding: 0;
}

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

.wrap-lang .lang li {
	margin: 0;
	padding: 0;
	display: inline-block;
}

.wrap-lang .lang li a {
	display: inline-block;
	padding: 8px 16px;
	text-decoration: none;
	color: #333;
	background-color: #f5f5f5;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-weight: 500;
	transition: all 0.3s ease;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.wrap-lang .lang li a:hover {
	background-color: #62a7c7;
	color: #fff;
	border-color: #62a7c7;
	transform: translateY(-2px);
	box-shadow: 0 2px 8px rgba(98, 167, 199, 0.3);
}

.wrap-lang .lang li a:active {
	transform: translateY(0);
	box-shadow: 0 1px 4px rgba(98, 167, 199, 0.2);
}

.wrap-lang .lang li a:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(98, 167, 199, 0.2);
}

/* Active language state (if needed) */
.wrap-lang .lang li a.active,
.wrap-lang .lang li a:active {
	background-color: #62a7c7;
	color: #fff;
	border-color: #62a7c7;
}

/* Responsive styles for language switcher */
@media (max-width: 768px) {
	.wrap-lang .lang {
		gap: 6px;
	}

	.wrap-lang .lang li a {
		padding: 6px 12px;
		font-size: 12px;
	}
}

@media (max-width: 480px) {
	.wrap-lang .lang {
		gap: 4px;
		justify-content: center;
	}

	.wrap-lang .lang li a {
		padding: 6px 10px;
		font-size: 11px;
	}
}