/*
Theme Name: rettX Child
Theme URI:  https://rettx.eu
Description: rettX child theme for Twenty Twenty-Five. Adds Chillax font, brand colors, and rettX-specific design tokens via theme.json.
Author:     Rett Syndrome Europe
Author URI: https://rettsyndrome.eu
Template:   twentytwentyfive
Version:    0.1.0
License:    GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: rettx-child
*/

/* All design tokens are defined in theme.json. Add overrides here only if absolutely necessary. */

/* Skip-to-content: visually hidden until keyboard-focused. */
.rettx-skip-link {
	position: absolute;
	top: -100px;
	left: 1rem;
	background: #4E4BBF;
	color: #fff !important;
	padding: 0.65rem 1rem;
	border-radius: 0 0 8px 8px;
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	z-index: 10000;
	transition: top 0.15s ease;
}
.rettx-skip-link:focus {
	top: 0;
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* Visible focus rings on keyboard navigation. */
a:focus-visible,
button:focus-visible,
.wp-block-button__link:focus-visible,
.wp-block-navigation-item a:focus-visible {
	outline: 2px solid #4E4BBF;
	outline-offset: 3px;
	border-radius: 4px;
}

/* Mark the active nav item via aria-current (set per page in templates or by JS later). */
.wp-block-navigation-item a[aria-current="page"] {
	color: #4E4BBF;
	font-weight: 600;
}

/* ---------------------------------------------------------------------------
 * Page-level helper classes
 * ---------------------------------------------------------------------------
 * These classes are added via the block editor's "Additional CSS class" field
 * (or the `className` attribute when authoring via API). They let us style
 * pages without using inline `style` attributes — which avoids Gutenberg's
 * "Block contains unexpected or invalid content" warnings on save.
 * ---------------------------------------------------------------------------*/

/* Eyebrow label above page H1 (uppercase, spaced, brand purple). */
.rettx-eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.15em;
	font-weight: 600;
	margin-bottom: var(--wp--preset--spacing--20, 0.75rem);
}

/* Page-hero H1: bigger on desktop, fluid down to mobile. */
.rettx-page-title {
	font-size: clamp(2.25rem, 5vw, 3.5rem);
	line-height: 1.1;
	font-weight: 600;
	margin-bottom: var(--wp--preset--spacing--30, 1rem);
}

/* Page-hero lede paragraph. */
.rettx-lede {
	line-height: 1.55;
	margin-bottom: 0;
}

/* Section heading (H2) at the start of a content band. */
.rettx-section-title {
	font-weight: 600;
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--30, 1rem);
}

/* Section intro paragraph below a section heading. */
.rettx-section-intro {
	line-height: 1.6;
	margin-bottom: var(--wp--preset--spacing--40, 1.5rem);
}

/* FAQ accordion cards: soft border, rounded, padded. */
.is-style-rettx-faq {
	border: 1px solid #E8E8F0;
	border-radius: 8px;
	padding: var(--wp--preset--spacing--30, 1rem) var(--wp--preset--spacing--40, 1.5rem);
}
.wp-block-group > .is-style-rettx-faq + .is-style-rettx-faq {
	margin-top: var(--wp--preset--spacing--20, 0.75rem);
}

/* CTA section heading + paragraph spacing. */
.rettx-cta-title {
	font-weight: 600;
	margin-bottom: var(--wp--preset--spacing--30, 1rem);
}
.rettx-cta-text {
	margin-bottom: var(--wp--preset--spacing--40, 1.5rem);
}

/* CTA button: comfortable padding (preserves old look). */
.rettx-cta .wp-block-button__link {
	padding: 0.75rem 1.5rem;
}

/* Larger CTA button variant (e.g. "Join the registry"). */
.rettx-cta-lg .wp-block-button__link {
	padding: 0.85rem 1.75rem;
}

/* Card: bordered, rounded box used for contact info, feature tiles, etc. */
.rettx-card {
	border: 1px solid #E8E8F0;
	border-radius: 12px;
	padding: var(--wp--preset--spacing--40, 1.5rem);
}

/* Section heading inside a card: small, uppercase, spaced. */
.rettx-card-label {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-weight: 600;
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--20, 0.75rem);
}

/* Primary contact line inside a card (the email link). */
.rettx-card-lead {
	font-weight: 500;
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--20, 0.75rem);
}

/* Big number badge at top of a step card ("01", "02"...). */
.rettx-step-number {
	font-size: 2rem;
	font-weight: 700;
	line-height: 1;
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--20, 0.75rem);
}

/* Heading inside a step card (h3). */
.rettx-step-title {
	font-size: 1.25rem;
	font-weight: 600;
	margin-top: 0;
	margin-bottom: var(--wp--preset--spacing--20, 0.75rem);
}

/* Hero band: bigger H1 (used on the homepage). */
.rettx-hero-title {
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1.05;
	font-weight: 600;
	margin-bottom: var(--wp--preset--spacing--30, 1rem);
}

/* Outline button styled with brand purple border (used in hero pairs). */
.rettx-btn-outline.wp-block-button.is-style-outline .wp-block-button__link,
.rettx-btn-outline .wp-block-button__link {
	border: 1px solid #4E4BBF;
}

