/*
 * BoltPress child theme — base styles.
 * Generated by Launchpad. Customise freely; your changes survive parent updates.
 * All visual weight comes from the design tokens at boltpress_design_tokens.json.
 */

:root {
	--bp-max-width: 1200px;
}

body {
	font-family: var(--boltpress-typography-font-family-body, 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif);
	font-size: var(--boltpress-typography-font-size-base, 1rem);
	line-height: var(--boltpress-typography-line-height-normal, 1.6);
	color: var(--boltpress-colors-text, #2D3748);
	background: var(--boltpress-colors-background, #FFFFFF);
	margin: 0;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--boltpress-typography-font-family-heading, 'Urbanist', sans-serif);
	font-weight: var(--boltpress-typography-font-weight-bold, 700);
	color: var(--boltpress-colors-primary, #001F3F);
	letter-spacing: -0.015em;
	line-height: var(--boltpress-typography-line-height-tight, 1.2);
	margin: 0 0 .5em;
}

h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.25vw, 1.5rem); }

p { margin: 0 0 1em; }

a {
	color: var(--boltpress-colors-primary, #001F3F);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color 150ms ease;
}
a:hover { color: var(--boltpress-colors-accent, #FFDC00); }

button, .wp-element-button, .wp-block-button__link {
	background: var(--boltpress-colors-primary, #001F3F);
	color: #ffffff;
	border: 1px solid var(--boltpress-colors-primary, #001F3F);
	border-radius: var(--boltpress-border-radius-md, 6px);
	padding: 12px 22px;
	font-family: var(--boltpress-typography-font-family-body, 'Nunito Sans', sans-serif);
	font-weight: var(--boltpress-typography-font-weight-semibold, 600);
	font-size: 0.9375rem;
	text-decoration: none;
	cursor: pointer;
	display: inline-block;
	transition: background-color 160ms ease, transform 160ms ease;
}
button:hover, .wp-element-button:hover, .wp-block-button__link:hover {
	background: var(--boltpress-colors-accent, #FFDC00);
	color: var(--boltpress-colors-primary, #001F3F);
	border-color: var(--boltpress-colors-accent, #FFDC00);
	transform: translateY(-1px);
}

.wp-block-button.is-style-outline .wp-block-button__link {
	background: transparent;
	color: var(--boltpress-colors-primary, #001F3F);
}

/* Site container — constrain normal content, but let Gutenberg `.alignfull`
 * blocks (cover heroes, dark CTA bands) bleed edge-to-edge. We do NOT target
 * the `main` element here because doing so pinches alignfull cover blocks on
 * wide viewports. */
.entry-content {
	max-width: var(--bp-max-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

@media (min-width: 768px) {
	.entry-content {
		padding-left: 40px;
		padding-right: 40px;
	}
}

/* Gutenberg block defaults */
.wp-block-cover {
	min-height: 420px;
	margin-block: 2rem;
}
.wp-block-cover .wp-block-cover__inner-container {
	max-width: 800px;
	text-align: center;
}
.wp-block-cover h1,
.wp-block-cover h2 {
	color: #ffffff;
}

.wp-block-image img {
	border-radius: var(--boltpress-border-radius-md, 6px);
}

.wp-block-columns {
	gap: 2rem;
	margin-block: 3rem;
}

.wp-block-group {
	margin-block: 2rem;
}

.wp-block-separator {
	border-color: var(--boltpress-colors-border, #E2E8F0);
	max-width: 100px;
	margin: 3rem auto;
}

/* Site header + footer (theme-agnostic defaults) */

/* Header brand: text wordmark only — hide the Therapist starter's terracotta
   donut mark (.site-branding::before from starter-templates/therapist/site.css).
   Extra `.site-header` raises specificity above the starter rule so this wins
   regardless of stylesheet load order. A custom logo added later via Customizer
   still renders fine: the parent swaps in the_custom_logo() and the starter
   already hides the donut when .custom-logo is present. */
body.starter-therapist .site-header .site-branding::before {
	display: none;
}

.wp-block-site-title a,
.wp-block-site-title {
	font-family: var(--boltpress-typography-font-family-heading, 'Urbanist', sans-serif);
	font-weight: var(--boltpress-typography-font-weight-bold, 700);
	color: var(--boltpress-colors-primary, #001F3F);
	text-decoration: none;
}

.wp-block-navigation .wp-block-navigation-item__content {
	font-family: var(--boltpress-typography-font-family-body, 'Nunito Sans', sans-serif);
	font-weight: 500;
	color: var(--boltpress-colors-text, #2D3748);
}
.wp-block-navigation .wp-block-navigation-item__content:hover {
	color: var(--boltpress-colors-primary, #001F3F);
}

/* Utility — accent chip */
.bp-chip {
	display: inline-block;
	background: var(--boltpress-colors-accent, #FFDC00);
	color: var(--boltpress-colors-primary, #001F3F);
	padding: 4px 12px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

/* Cal.com inline booking widget — used by template-parts/cal-embed.php.
   Only rendered once a real handle is configured (the partial returns early on
   the CLIENT-HANDLE placeholder), so the min-height reservation against load
   shift is safe and never produces an empty gap. */
.t-cal-inline {
	min-height: 600px;
	max-width: 880px;
	margin: 0 auto;
}

/* ======================================================================
 * Reusable service cards — unified module.
 *
 * Used on /paslaugos/ and / via template-parts/service-cards-grid.php +
 * service-card.php. Replaces the older .t-home .t-card-* rules in
 * therapist-pages.css and the .t-service rules on the services index.
 *
 * Spec: docs/specs/2026-05-12-reusable-service-cards-admin-design.md §6
 * ====================================================================== */

.t-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
	margin: 0;
}
@media (max-width: 1023px) {
	.t-card-grid { grid-template-columns: 1fr; }
}

.t-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: var(--t-cream);
	border: 1px solid var(--t-border);
	border-radius: 6px;
	padding: clamp(1.75rem, 3vw, 2.5rem);
	padding-top: clamp(3rem, 4.5vw, 3.75rem);
	overflow: hidden;
	isolation: isolate;
	transition: transform .5s var(--t-ease), box-shadow .5s var(--t-ease), border-color .5s var(--t-ease);
}
.t-card::before {
	content: '';
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 85% 0%, rgba(176, 84, 58, 0.06), transparent 55%);
	opacity: 0;
	transition: opacity .6s var(--t-ease);
	pointer-events: none;
	z-index: -1;
}
.t-card:hover {
	transform: translateY(-3px);
	border-color: rgba(176, 84, 58, 0.35);
	box-shadow:
		0 1px 2px rgba(31, 27, 23, 0.04),
		0 22px 50px -28px rgba(31, 27, 23, 0.22);
}
.t-card:hover::before { opacity: 1; }

.t-card-num {
	position: absolute;
	top: clamp(1.25rem, 2.2vw, 1.75rem);
	left: clamp(1.75rem, 3vw, 2.5rem);
	font-family: 'Fraunces', Georgia, serif;
	font-style: italic;
	font-variation-settings: "opsz" 144, "SOFT" 80;
	font-weight: 500;
	font-size: 1.15rem;
	color: var(--t-terra);
	letter-spacing: 0.04em;
	z-index: 1;
}

.t-card-pill {
	position: absolute;
	top: clamp(1.25rem, 2.2vw, 1.75rem);
	right: clamp(1.75rem, 3vw, 2.5rem);
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .35rem .7rem;
	border-radius: 999px;
	background: var(--t-cream-alt);
	font-family: 'Geist', system-ui, sans-serif;
	font-size: .72rem;
	font-weight: 500;
	letter-spacing: 0.04em;
	color: var(--t-muted);
	z-index: 1;
}
.t-card-pill .dot {
	width: 5px; height: 5px; border-radius: 50%;
	background: var(--t-terra);
}

.t-card-title {
	font-family: 'Fraunces', Georgia, serif;
	font-weight: 500;
	font-size: clamp(1.6rem, 2.6vw, 2rem);
	letter-spacing: -0.018em;
	line-height: 1.1;
	margin: 0 0 1rem;
	font-optical-sizing: auto;
	text-wrap: balance; /* nicer multi-line break for "Porų / šeimų terapija" */
	/* Equal-height alignment (min-height) is applied only in the 3-up desktop
	   grid — see the @media (min-width: 1024px) block below. */
}
.t-card-title em {
	font-style: italic;
	color: var(--t-terra);
	font-weight: 500;
}

.t-card-lede {
	color: var(--t-muted);
	line-height: 1.65;
	margin: 0 0 1.75rem;
	font-size: 1rem;
}

.t-card-divider {
	display: flex;
	align-items: center;
	gap: .75rem;
	margin: 0 0 1rem;
	font-family: 'Geist', system-ui, sans-serif;
	font-size: .68rem;
	font-weight: 600;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--t-subtle);
}
.t-card-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: var(--t-border);
}

.t-card-tags {
	list-style: none;
	padding: 0;
	margin: 0 0 1.75rem;
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
}
.t-card-tags li {
	font-family: 'Geist', system-ui, sans-serif;
	font-size: .85rem;
	font-weight: 500;
	color: var(--t-muted);
	padding: .4rem .8rem;
	border: 1px solid var(--t-border);
	border-radius: 999px;
	background: transparent;
	transition: border-color .3s var(--t-ease), color .3s var(--t-ease), background .3s var(--t-ease);
}
.t-card:hover .t-card-tags li { border-color: rgba(176, 84, 58, 0.22); }

.t-card-foot {
	margin-top: auto;
	padding-top: 1.5rem;
	border-top: 1px solid var(--t-border);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: nowrap; /* keep "Plačiau" beside the meta even when audience wraps */
}
.t-card-meta {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	font-family: 'Geist', system-ui, sans-serif;
	font-size: .85rem;
	color: var(--t-muted);
	font-weight: 500;
	min-width: 0; /* lets long audience strings wrap inside the left column
	                 instead of pushing the CTA below */
	flex: 1;
}
.t-card-meta-audience {
	color: var(--t-subtle);
	font-size: .78rem;
	letter-spacing: 0.02em;
}

.t-card-cta {
	font-family: 'Geist', system-ui, sans-serif;
	font-size: .9rem;
	font-weight: 600;
	color: var(--t-ink);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	transition: color .3s var(--t-ease), gap .3s var(--t-ease);
}
.t-card-cta .t-arrow { color: var(--t-terra); transition: transform .4s var(--t-ease); }
.t-card-cta:hover { color: var(--t-terra); gap: .65rem; }
.t-card-cta:hover .t-arrow { transform: translateX(3px); }

/* ======================================================================
 * Polish pass (v1.1.0)
 *   - card equal-height alignment scoped to the desktop 3-up grid
 *   - shared dark-CTA action row + eyebrow tint (template-parts/cta-section.php)
 *   - keyboard focus states (the theme shipped hover-only affordances)
 * ====================================================================== */

/* The min-heights only buy alignment in the 3-column desktop grid; on the
   single-column mobile layout they just add dead vertical space. */
@media (min-width: 1024px) {
	.t-card-title { min-height: 2.2em; } /* 2 lines @ line-height 1.1 */
	.t-card-lede  { min-height: 6.5em; } /* ~4 lines — chips align across the row */
}

/* Shared dark CTA band (template-parts/cta-section.php). Replaces the inline
   flex styles that used to live on each duplicated CTA <div>. */
.t-cta-actions {
	margin-top: 2.5rem;
	display: inline-flex;
	gap: 1rem;
	flex-wrap: wrap;
	justify-content: center;
}
.t-cta-dark .t-eyebrow { color: #E8A896; }

/* Keyboard focus states. Hover-only styling left keyboard users with no
   visible focus ring; :focus-visible restores one without affecting mouse
   users. var(--t-terra) resolves from the .t-root scope. */
.t-root a:focus-visible,
.t-root button:focus-visible,
.t-root summary:focus-visible {
	outline: 2px solid var(--t-terra);
	outline-offset: 3px;
}
/* Coral ring reads better on the dark CTA band (equal specificity, declared
   later, so it wins for links inside .t-cta-dark). */
.t-cta-dark a:focus-visible {
	outline-color: #E8A896;
}
/* Echo the focus on the card shell when its CTA link is keyboard-focused. */
.t-card:focus-within {
	border-color: rgba(176, 84, 58, 0.45);
}