/*
Theme Name: The Life Notebook
Theme URI: https://example.com
Author: Based on Style Quest HTML export
Description: Minimal blog theme based on a static HTML template (Tailwind + custom colors). See README-WP.txt for setup instructions.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: the-life-notebook
*/

body {
	font-family: 'Quicksand', sans-serif;
	background: #fafafa;
	color: #1f2937;
}

h1, h2, h3, .brand-font {
	font-family: 'Playfair Display', serif;
}

.bg-primary { background-color: #A78BFA; }
.text-primary { color: #A78BFA; }
.border-primary { border-color: #A78BFA; }
.bg-secondary { background-color: #1f2937; }
.text-secondary { color: #1f2937; }

.hero-overlay {
	background: linear-gradient(
		to right,
		rgba(15, 20, 30, 0.75) 0%,
		rgba(15, 20, 30, 0.45) 50%,
		rgba(15, 20, 30, 0.10) 100%
	);
}

@keyframes scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.animate-scroll {
	animation: scroll 40s linear infinite;
}

/* Seamless logos marquee (two tracks). */
@keyframes sq-marquee-scroll {
	0% { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

.sq-marquee {
	display: flex;
	width: max-content;
	animation: sq-marquee-scroll 140s linear infinite;
}

.sq-marquee-track {
	display: inline-flex;
	align-items: center;
	gap: 5rem;
	padding-right: 5rem;
	flex-shrink: 0;
	min-width: max-content;
}

.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.line-clamp-3 {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Base content typography (prose-like without Tailwind Typography plugin). */
.entry-content > p,
.prose-static > p {
	font-size: 1.125rem;
	line-height: 1.75;
	color: #4b5563;
	margin-bottom: 1rem;
}

.entry-content > h2,
.prose-static > h2 {
	font-size: 1.5rem;
	font-weight: 700;
	color: #1f2937;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	position: absolute !important;
	height: 1px;
	width: 1px;
	overflow: hidden;
	word-wrap: normal !important;
}

.alignwide { max-width: 100%; }
.alignfull { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }

/* ---------- Contact Form 7 styling to match theme demo ---------- */
.sq-contact-form .wpcf7 {
	margin: 0;
}

.sq-contact-form .wpcf7-form {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.sq-contact-form .wpcf7-form p {
	margin: 0;
}

.sq-contact-form .wpcf7-form label .wpcf7-form-control-wrap {
	display: block;
	margin-top: 0.75rem;
}

.sq-contact-form .wpcf7-form-control:not(.wpcf7-submit) {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 1rem;
	padding: 1.25rem 2rem;
	font-family: 'Quicksand', sans-serif;
	font-size: 1rem;
	color: #1f2937;
	outline: none;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Same styles when fields use explicit CF7 classes. */
.sq-contact-form .sq-cf7-input,
.sq-contact-form .sq-cf7-textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #f3f4f6;
	border-radius: 1rem;
	padding: 1.25rem 2rem;
	font-family: 'Quicksand', sans-serif;
	font-size: 1rem;
	color: #1f2937;
	outline: none;
	transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.sq-contact-form .wpcf7-form-control:not(.wpcf7-submit):focus {
	border-color: rgba(167, 139, 250, 0.35);
	box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1);
}

.sq-contact-form .sq-cf7-input:focus,
.sq-contact-form .sq-cf7-textarea:focus {
	border-color: rgba(167, 139, 250, 0.35);
	box-shadow: 0 0 0 4px rgba(167, 139, 250, 0.1);
}

.sq-contact-form textarea.wpcf7-form-control {
	min-height: 10rem;
	resize: vertical;
	border-radius: 1rem;
}

.sq-contact-form .sq-cf7-textarea {
	min-height: 10rem;
	resize: vertical;
	border-radius: 1rem;
}

.sq-contact-form .wpcf7-submit,
.sq-contact-form input[type="submit"].wpcf7-submit,
.sq-contact-form .sq-cf7-submit {
	width: 100%;
	margin-top: 0.5rem;
	padding: 1.5rem 1.25rem;
	background-color: #A78BFA;
	color: #fff;
	border: none;
	border-radius: 9999px;
	font-family: 'Quicksand', sans-serif;
	font-size: 1.125rem;
	font-weight: 700;
	cursor: pointer;
	box-shadow: 0 10px 15px -3px rgba(167, 139, 250, 0.25);
	transition: transform 0.12s ease, opacity 0.12s ease;
}

.sq-contact-form .wpcf7-submit:hover,
.sq-contact-form input[type="submit"].wpcf7-submit:hover,
.sq-contact-form .sq-cf7-submit:hover {
	opacity: 0.95;
}

.sq-contact-form .wpcf7-submit:active,
.sq-contact-form input[type="submit"].wpcf7-submit:active,
.sq-contact-form .sq-cf7-submit:active {
	transform: scale(0.99);
}

/* Field labels styled to match the mockup. */
.sq-contact-form .wpcf7-form label {
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	color: #1f2937;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0;
}

.sq-contact-form .wpcf7-not-valid-tip {
	font-size: 0.8125rem;
	color: #dc2626;
	margin-top: 0.375rem;
}

.sq-contact-form .wpcf7-not-valid {
	border-color: #fca5a5 !important;
}

.sq-contact-form .wpcf7-response-output {
	margin: 1.5rem 0 0;
	padding: 1rem 1.25rem;
	border-radius: 1rem;
	font-size: 0.9375rem;
}

.sq-contact-form .wpcf7-mail-sent-ok {
	background: #ecfdf5;
	color: #047857;
	border: 1px solid #a7f3d0;
}

.sq-contact-form .wpcf7-validation-errors,
.sq-contact-form .wpcf7-acceptance-missing {
	background: #fef2f2;
	color: #b91c1c;
	border: 1px solid #fecaca;
}

.sq-contact-form .wpcf7-spinner {
	margin: 0 auto;
}
