/*
Theme Name: The Learning Desk
Template: twentytwentyfour
Description: Child theme for The Learning Desk (IELTS coaching). Minimal, fast-loading, one goal per page: get the visitor to book a free evaluation.
Author: The Learning Desk
Version: 1.0.0
Text Domain: thelearningdesk
*/

/* ==========================================================================
   Design tokens
   ========================================================================== */
:root {
	--tld-blue: #1c6ea4;
	--tld-blue-deep: #124f79;
	--tld-orange: #f5821f;
	--tld-orange-deep: #d96f12;
	--tld-ink: #1a1a1a;
	--tld-bg: #ffffff;
	--tld-bg-soft: #f6f9fb;
	--tld-border: rgba(28, 110, 164, 0.14);
	--tld-radius: 8px;
	--tld-max-width: 68rem;
}

/* ==========================================================================
   Base
   ========================================================================== */
body {
	background-color: var(--tld-bg);
	color: var(--tld-ink);
}

.wp-site-blocks {
	max-width: 100%;
}

/* Alternate section backgrounds without needing per-block color pickers */
.tld-section-soft {
	background-color: var(--tld-bg-soft);
}

/* ==========================================================================
   Links & focus states (accessibility: visible keyboard focus everywhere)
   ========================================================================== */
a {
	color: var(--tld-blue);
	text-decoration-thickness: 1px;
}

a:hover {
	color: var(--tld-blue-deep);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--tld-orange);
	outline-offset: 2px;
}

/* ==========================================================================
   Buttons
   Primary CTA = orange (used sparingly, only for the main action on a page).
   Everything else stays blue/ink so the CTA is never competing for attention.
   ========================================================================== */
.wp-block-button__link {
	border-radius: var(--tld-radius);
	font-weight: 600;
	padding: 0.85em 1.6em;
}

.wp-block-button.is-style-fill .wp-block-button__link {
	background-color: var(--tld-orange);
	color: #ffffff;
}

.wp-block-button.is-style-fill .wp-block-button__link:hover {
	background-color: var(--tld-orange-deep);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	border: 2px solid var(--tld-blue);
	color: var(--tld-blue);
}

.wp-block-button.is-style-outline .wp-block-button__link:hover {
	background-color: var(--tld-blue);
	color: #ffffff;
}

/* ==========================================================================
   Reassurance microcopy (used under every CTA, per site content plan)
   ========================================================================== */
.tld-reassurance {
	font-size: 0.9rem;
	color: var(--tld-ink);
	opacity: 0.75;
	margin-top: 0.5em;
}

/* ==========================================================================
   Testimonial quote styling
   ========================================================================== */
.wp-block-quote.tld-testimonial {
	border-left: 4px solid var(--tld-orange);
	padding-left: 1.2em;
	font-style: normal;
}

.wp-block-quote.tld-testimonial cite {
	display: block;
	margin-top: 0.5em;
	font-size: 0.9rem;
	color: var(--tld-blue);
	font-style: normal;
}

/* ==========================================================================
   Signature element: the "path" diagram used on Home under "How it works".
   A plain, static SVG (no JS, no animation) showing Assessment -> Focus ->
   Progress, since the core USP is a personalised path rather than a fixed
   syllabus. Respects prefers-reduced-motion by having no motion at all.
   ========================================================================== */
.tld-path {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	max-width: 40rem;
	margin: 2rem auto;
}

.tld-path__node {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	flex: 1;
}

.tld-path__dot {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	background-color: var(--tld-blue);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 700;
	margin-bottom: 0.5rem;
}

.tld-path__node:last-child .tld-path__dot {
	background-color: var(--tld-orange);
}

.tld-path__line {
	flex: 1;
	height: 2px;
	background-color: var(--tld-border);
	margin: 0 0.25rem;
	margin-bottom: 2rem;
}

.tld-path__label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--tld-ink);
}

@media (max-width: 599px) {
	.tld-path {
		flex-direction: column;
		align-items: flex-start;
	}

	.tld-path__line {
		width: 2px;
		height: 2rem;
		margin: 0 0 0 1.25rem;
	}

	.tld-path__node {
		flex-direction: row;
		text-align: left;
		gap: 0.75rem;
	}

	.tld-path__dot {
		margin-bottom: 0;
	}
}

/* ==========================================================================
   Skill picker (tappable buttons on the lead form, replacing a dropdown
   per the mobile-first CRO review)
   ========================================================================== */
.tld-skill-picker {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tld-skill-picker__option {
	border: 2px solid var(--tld-border);
	border-radius: var(--tld-radius);
	padding: 0.6em 1em;
	background: var(--tld-bg);
	color: var(--tld-ink);
	font-weight: 600;
	cursor: pointer;
}

.tld-skill-picker__option[aria-pressed="true"] {
	border-color: var(--tld-blue);
	background: var(--tld-blue);
	color: #ffffff;
}

/* ==========================================================================
   Reduced motion: belt-and-braces, in case any parent-theme transitions
   are inherited on interactive elements
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
	* {
		animation-duration: 0.001ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.001ms !important;
	}
}
